hostapd-config
##### hostapd configuration file ############################################## interface= wlan_interface // network name driver=nl80211 #bridge=br0 // 指定interface 所在的net_bridge name ssid=hoopoe_WFA1 // ssid wifi name wpa=0 // 加密类型 WPA/WPA2/WPA3 #wpa_passphrase=12345678 // WIFI Password #wpa_key_mgmt=NONE // WPA-PSK(WPA-Personal) WPA-EAP(WPA-Enterprise) SAE(WPA3-Personal) OAE(开放式WPA3) #wpa_pairwise=TKIP CCMP // 加密算法: TKIP/CCMP. wpa_pairwise:WPA RSN_pairwise:WPA2 #wpa_pairwise=CCMP // 如果TKIP/CMCC同时支持,TKIP负责组播/广播加密,CCMP负责单播加密 #rsn_pairwise=CCMP hw_mode=a // AP支持的协议类型: a(5G), g(2.4G),这里目前只有两个选择,ad(不常用) channel=149 ieee80211n=1 #ieee80211h=1 #ieee80211d=1 #ieee80211ax=1 #ieee80211ac=1 #ht_capab= #[HT40+][HT40-][SHORT-GI-20][SHORT-GI-40] #[TX-STBC][RX-STBC1][RX-STBC12][RX-STBC123][GF] #[MAX-AMSDU-7935] ht_capab=[MAX-AMSDU-7935][HT 40+][SHORT-GI-20][SHORT-GI-40] // hostapd相关element 配置,指定40M带宽,最大AMPDU组包数等等 #vht_capab= #[VHT160][VHT160-80PLUS80][RXLDPC][SHORT-GI-80][SHORT-GI-160][TX-STBC-2BY1] #[RX-STBC-1][RX-STBC-12][RX-STBC-123][RX-STBC-1234] #[MAX-A-MPDU-LEN-EXP0]..[MAX-A-MPDU-LEN-EXP7] #[MAX-MPDU-7991][MAX-MPDU-11454][HTC-VHT] #[SU-BEAMFORMER][SU-BEAMFORMEE][BF-ANTENNA-2][BF-ANTENNA-3][BF-ANTENNA-4] vht_capab=[MAX-MPDU-11454][RXLDPC][SHORT-GI-80] #vht_oper_chwidth=1 // 配置带宽: 0-20M/40M 1-80M 2-160M 3-80M+80M #vht_oper_centr_freq_seg0_idx=42 // 用于计算中心频率: center_freq = 5G + 5G * idx country_code=US #op_class=128 logger_syslog=-1 logger_syslog_level=2 logger_stdout=-1 logger_stdout_level=2 ctrl_interface=/var/run/hostapd // hostapd_cli 与hostapd交互的接口。默认 “/var.run/hostapd” ctrl_interface_group=0 // ctrl_interface_group类似ctrl_interface,由多用户组成的组来控制hostapd beacon_int=100 // beacon包的间隔时间 dtim_period=2 // HTMI周期数,当STA处于睡眠状态时,并不能直接接收,一般由AP暂存。该参数就是等待n个beacon时间后唤醒STA接收。理论值越大越省电 max_num_sta=128 #rts_threshold=-1 // RTS/CTS门限值,默认-1,disabled #fragm_threshold=-1 preamble=1 macaddr_acl=0 auth_algs=1 ignore_broadcast_ssid=0 wmm_enabled=1 // 多AC传输的相关配置 wmm_ac_bk_cwmin=4 wmm_ac_bk_cwmax=10 wmm_ac_bk_aifs=7 wmm_ac_bk_txop_limit=0 wmm_ac_bk_acm=0 wmm_ac_be_aifs=3 wmm_ac_be_cwmin=4 wmm_ac_be_cwmax=10 wmm_ac_be_txop_limit=0 wmm_ac_be_acm=0 wmm_ac_vi_aifs=2 wmm_ac_vi_cwmin=3 wmm_ac_vi_cwmax=4 wmm_ac_vi_txop_limit=94 wmm_ac_vi_acm=0 wmm_ac_vo_aifs=2 wmm_ac_vo_cwmin=2 wmm_ac_vo_cwmax=3 wmm_ac_vo_txop_limit=47 wmm_ac_vo_acm=0 #eapol_key_index_workaround=0 #eap_server=0 #own_ip_addr=127.0.0.1 //和DHCP服务器交互的本地地址