ILD

hostapd进程和配置
作者:Yuan Jianpeng 邮箱:yuanjp89@163.com
发布时间:2022-4-26 站点:Inside Linux Development

# ps ww | grep hostapd

 1689 root      3904 S    hostapd -g /var/run/hostapd/global -B -P /var/run/hostapd-global.pid

 1801 root      2544 S    /usr/sbin/hostapd_cli -i wl0 -p /var/run/hostapd-wifi1 -P /var/run/hostapd_cli-wl0.pid -a /lib/wifi/wps-hostapd-update-uci -B

 1948 root      2544 S    /usr/sbin/hostapd_cli -i wl1 -p /var/run/hostapd-wifi0 -P /var/run/hostapd_cli-wl1.pid -a /lib/wifi/wps-hostapd-update-uci -B

 3059 root      2520 S    /usr/sbin/hostapd_event


# cat /var/run/hostapd-wl0.conf

driver=nl80211

interface=wl0

#

logger_syslog=127

logger_syslog_level=2

logger_stdout=127

logger_stdout_level=2

channel=auto

ieee80211ac=1

ieee80211n=1

ieee80211ax=1

he_oper_chwidth=2

he_oper_centr_freq_seg0_idx=auto

ht_capab=[LDPC][SMPS-DYNAMIC][TX-STBC][RX-STBC-1][MAX-AMSDU-7935][DSSS_CCK-40] [SHORT-GI-40]

vht_capab=[MAX-MPDU-11454][VHT160-80PLUS80][RXLDPC][SHORT-GI-80][SHORT-GI-160][TX-STBC-2BY1][RX-STBC1][MAX-A-MPDU-LEN-EXP7][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]

hw_mode=a

wmm_enabled=1

dtim_period=1

ignore_broadcast_ssid=0

owe_ptk_workaround=1

ctrl_interface=/var/run/hostapd-wifi1

send_probe_response=0

wpa_passphrase=8a4tee6m

wpa_group_rekey=0

wpa_strict_rekey=0

wpa_ptk_rekey=0

wpa_gmk_rekey=0

auth_algs=1

wpa=2

wpa_pairwise=CCMP

wpa_group_rekey=0

wpa_strict_rekey=0

wds_sta=1

pbc_in_m1=1

eap_server=1

wps_state=2

ap_setup_locked=0

device_type=6-0050F204-1

device_name=XiaoMiRouter

manufacturer=xiaomi

model_name=CR8809

model_number=0002

serial_number=12345

config_methods=push_button

wps_independent=1

wps_rf_bands=ga

uuid=87654321-9abc-def0-1234-3ccd57fc3c4a

ssid=ChinaNet-55rf-5G

bridge=br-lan

ieee80211w=0

wpa_key_mgmt=WPA-PSK

multi_ap_profile=1

multi_ap=2

wps_cred_add_sae=0

multi_ap_backhaul_ssid="MiEasyMesh_9Z1O2qWi"

multi_ap_backhaul_wpa_passphrase=YoL0XbZheplDi5OQ




# cat /var/run/hostapd-wl1.conf

driver=nl80211

interface=wl1

#

logger_syslog=127

logger_syslog_level=2

logger_stdout=127

logger_stdout_level=2

channel=auto

ieee80211n=1

ieee80211ac=1

ieee80211ax=1

ht_capab=[LDPC][SMPS-DYNAMIC][TX-STBC][RX-STBC-1][MAX-AMSDU-7935][DSSS_CCK-40] [SHORT-GI-40]

vht_capab=[MAX-MPDU-11454][RXLDPC][TX-STBC-2BY1][RX-STBC1][MAX-A-MPDU-LEN-EXP7][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]

hw_mode=g

wmm_enabled=1

dtim_period=1

ignore_broadcast_ssid=0

owe_ptk_workaround=1

ctrl_interface=/var/run/hostapd-wifi0

send_probe_response=0

wpa_passphrase=8a4tee6m

wpa_group_rekey=0

wpa_strict_rekey=0

wpa_ptk_rekey=0

wpa_gmk_rekey=0

auth_algs=1

wpa=2

wpa_pairwise=CCMP

wpa_group_rekey=0

wpa_strict_rekey=0

wds_sta=1

pbc_in_m1=1

eap_server=1

wps_state=2

ap_setup_locked=0

device_type=6-0050F204-1

device_name=XiaoMiRouter

manufacturer=xiaomi

model_name=CR8809

model_number=0002

serial_number=12345

config_methods=push_button

wps_independent=1

wps_rf_bands=ga

uuid=87654321-9abc-def0-1234-3ccd57fc3c4a

ssid=ChinaNet-55rf

bridge=br-lan

ieee80211w=0

wpa_key_mgmt=WPA-PSK

multi_ap_profile=1

multi_ap=2

wps_cred_add_sae=0

multi_ap_backhaul_ssid="MiEasyMesh_9Z1O2qWi"

multi_ap_backhaul_wpa_passphrase=YoL0XbZheplDi5OQ



openwrt无线配置

# cat /etc/config/wireless


config wifi-device 'wifi0'

        option type 'qcawificfg80211'

        option channel 'auto'

        option macaddr '3c:cd:57:fc:3c:4c'

        option hwmode '11axg'

        option htmode 'HT40'

        option country 'CN'

        option disabled '0'

        option txbf '3'

        option ax '1'

        option bw '40'


config wifi-iface 'wl1'

        option device 'wifi0'

        option ifname 'wl1'

        option network 'lan'

        option mode 'ap'

        option ssid 'ChinaNet-55rf'

        option encryption 'psk2'

        option wpsdevicename 'XiaoMiRouter'

        option rrm '1'

        option wnm '1'

        option he_subfee '0'

        option he_subfer '0'

        option he_mubfee '0'

        option he_mubfer '0'

        option vhtsubfee '0'

        option vhtmubfee '0'

        option vhtsubfer '0'

        option he_ul_ofdma '0'

        option disabled '0'

        option key '8a4tee6m'

        option amsdu '2'

        option MapBSSType '32'

        option map '1'

        option wscconfigstatus '2'


config wifi-iface 'wl3'

        option device 'wifi0'

        option ifname 'wl3'

        option network 'lan'

        option mode 'ap'

        option ssid 'ChinaNet-55rf_AP1'

        option encryption 'none'

        option disabled '1'

        option wscconfigstatus '2'


config wifi-iface 'wl5'

        option device 'wifi0'

        option ifname 'wl5'

        option network 'lan'

        option mode 'ap'

        option ssid 'ChinaNet-55rf_AP2'

        option encryption 'none'

        option disabled '1'


config wifi-iface 'wl7'

        option device 'wifi0'

        option ifname 'wl7'

        option network 'lan'

        option mode 'ap'

        option ssid 'ChinaNet-55rf_AP3'

        option encryption 'none'

        option disabled '1'


config wifi-device 'wifi1'

        option type 'qcawificfg80211'

        option channel 'auto'

        option macaddr '3c:cd:57:fc:3c:4b'

        option hwmode '11axa'

        option htmode 'HT80'

        option country 'CN'

        option disabled '0'

        option txbf '3'

        option ax '1'

        option bw '0'


config wifi-iface 'wl0'

        option device 'wifi1'

        option ifname 'wl0'

        option network 'lan'

        option mode 'ap'

        option ssid 'ChinaNet-55rf-5G'

        option encryption 'psk2'

        option wpsdevicename 'XiaoMiRouter'

        option rrm '1'

        option wnm '1'

        option he_subfee '0'

        option he_subfer '0'

        option he_mubfee '0'

        option he_mubfer '0'

        option vhtsubfee '0'

        option vhtmubfee '0'

        option vhtsubfer '0'

        option he_ul_ofdma '0'

        option disabled '0'

        option key '8a4tee6m'

        option channel_block_list '52,56,60,64,100,104,108,112,116,120,124,128,132,136,140,165'

        option MapBSSType '32'

        option map '1'


config wifi-iface 'wl2'

        option device 'wifi1'

        option ifname 'wl2'

        option network 'lan'

        option mode 'ap'

        option ssid 'ChinaNet-55rf-5G_AP1'

        option encryption 'none'

        option disabled '1'


config wifi-iface 'wl4'

        option device 'wifi1'

        option ifname 'wl4'

        option network 'lan'

        option mode 'ap'

        option ssid 'ChinaNet-55rf-5G_AP2'

        option encryption 'none'

        option disabled '1'


config wifi-iface 'wl6'

        option device 'wifi1'

        option ifname 'wl6'

        option network 'lan'

        option mode 'ap'

        option ssid 'ChinaNet-55rf-5G_AP3'

        option encryption 'none'

        option disabled '1'


config wifi-iface 'miot_2G'

        option ifname 'wl13'

        option network 'miot'

        option encryption 'none'

        option device 'wifi0'

        option mode 'ap'

        option hidden '1'

        option maxsta '20'

        option ssid '25c829b1922d3123_miwifi'

        option bsd '0'

        option disabled '0'

        option ap_isolate '1'

        option userswitch '1'


config wifi-iface 'backhaul_2g'

        option device 'wifi0'

        option ifname 'wl6'

        option network 'lan'

        option mode 'ap'

        option hidden '1'

        option ssid 'MiEasyMesh_9Z1O2qWi'

        option encryption 'psk2'

        option key 'YoL0XbZheplDi5OQ'

        option MapBSSType '64'

        option map '1'

        option backhaul_ap '1'

        option backhaul '1'

        option he_ul_ofdma '0'

        option amsdu '2'

        option disabled '1'


config wifi-iface 'backhaul_5g'

        option device 'wifi1'

        option ifname 'wl5'

        option network 'lan'

        option mode 'ap'

        option hidden '1'

        option ssid 'MiEasyMesh_9Z1O2qWi'

        option encryption 'psk2'

        option key 'YoL0XbZheplDi5OQ'

        option MapBSSType '64'

        option map '1'

        option backhaul_ap '1'

        option backhaul '1'

        option he_ul_ofdma '0'

        option disabled '1'


config qcawifi 'qcawifi'

        option wds_ext '1'


Copyright © insidelinuxdev.net 2017-2021. Some Rights Reserved.