设置国家码为GB,然后将AP设置为100信道80MHz频宽,发现终端无法扫描到SSID热点
WPS: Converting display to virtual_display for WPS 2.0 compliance
WPS: Converting push_button to virtual_push_button for WPS 2.0 compliance
Failed to check if DFS is required; ret=-1
Device is trying to offload WPS Probe Response while not supporting this
Failed to check if DFS is required; ret=-1
wlan0: interface state COUNTRY_UPDATE->ENABLED
wlan0: AP-ENABLED
Failed to check if DFS is required; ret=-1
wlan0: IEEE 802.11 driver had channel switch: freq=5500, ht=1, vht_ch=0x0, he_ch=0x0, offset=1, width=3 (80 MHz), cf1=5530, cf2=0
wlan0: CTRL-EVENT-CHANNEL-SWITCH freq=5500 ht_enabled=1 ch_offset=1 ch_width=80 MHz cf1=5530 cf2=0 dfs=1
wlan0: AP-CSA-FINISHED freq=5500 dfs=1
wpa_driver_nld80211 vendor event recieved
wpa_driver_nld80211 vendor event recieved
wlan0: interface state ENABLED->DFS
wlan0: DFS-CAC-START freq=5500 chan=100 chan_offset=0 width=0 seg0=0 seg1=0 cac_time=60s
wpa_driver_nld80211 vendor event recieved
Failed to connect to hostapd - wpa_ctrl_open: No such file or directory
ash: bad number
wlan0: DFS-CAC-COMPLETED success=1 freq=5500 ht_enabled=0 chan_offset=0 chan_width=0 cf1=0 cf2=0
wlan0: interface state DFS->ENABLED
wlan0: AP-ENABLED
wpa_driver_nld80211 vendor event recieved
从以下日志可以看到,之所以无法扫到SSID,是由于信道100~165都属于DFS信道,
wlan0: IEEE 802.11 driver had channel switch: freq=5500, ht=1, vht_ch=0x0, he_ch=0x0, offset=1, width=3 (80 MHz), cf1=5530, cf2=0
wlan0: CTRL-EVENT-CHANNEL-SWITCH freq=5500 ht_enabled=1 ch_offset=1 ch_width=80 MHz cf1=5530 cf2=0 dfs=1
wlan0: AP-CSA-FINISHED freq=5500 dfs=1
wpa_driver_nld80211 vendor event recieved
wpa_driver_nld80211 vendor event recieved
wlan0: interface state ENABLED->DFS
wlan0: DFS-CAC-START freq=5500 chan=100 chan_offset=0 width=0 seg0=0 seg1=0 cac_time=60s
查看 WCNSS_qcom_cfg.ini文件,gindoor_channel_support配置项是可以指定为indoor channel支持,查看indoor channel说明如下
室外信道:100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 144, 149, 153, 157, 161, 165
室内信道:36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 144, 149, 153, 157, 161, 165
/*
*
* gindoor_channel_support - support to start sap in indoor channel
* @Min: 0
* @Max: 1
* @Default: 0
*
* This ini is to support to start sap in indoor channel.
* Customer can config this item to enable/disable sap in indoor channel
*
* Related: None
*
* Supported Feature: SAP
*
* Usage: External
*
*
*/
#define CFG_INDOOR_CHANNEL_SUPPORT CFG_INI_BOOL( \
"gindoor_channel_support", \
0, \
"enable/disable sap in indoor channel")
在 WCNSS_qcom_cfg.ini文件中增加
gindoor_channel_support=1即可