![wpa_supplicant 在 802.11ac 的特定信道上工作](https://linux22.com/image/1149810/wpa_supplicant%20%E5%9C%A8%20802.11ac%20%E7%9A%84%E7%89%B9%E5%AE%9A%E4%BF%A1%E9%81%93%E4%B8%8A%E5%B7%A5%E4%BD%9C.png)
我的笔记本电脑上有QCA6174 802.11ac
无线网络适配器,运行的是 Ubuntu 16.10 和 Linux 内核版本 4.13。无线适配器使用ath10k
驱动程序。我正在尝试将笔记本电脑设置为使用 802.11ac 的接入点。为此,我使用wpa_supplicant
以下配置文件:
network={
frequency=5180
ssid="Test"
mode=2
key_mgmt=NONE
disable_ht=1
disable_vht=0
}
之前的配置运行完美,当我扫描频谱时,我在 AP 列表中找到了上述 SSID。但是,如果我将频率更改为其他频道,例如 [60] 即 5300 MHz 而不是 [36] 即 5180 MHz,wpa_supplicant 可以正确执行,但我看不到 SSID。那么我是否缺少任何配置?
我尝试使用hostapd
,其配置如下:
interface=wlan1
driver=nl80211
ctrl_interface=/var/run/hostapd
ssid=travelmate
hw_mode=a
channel=36
ht_capab=[HT40+]
ieee80211n=1
ieee80211ac=1
vht_oper_chwidth=1
vht_oper_centr_freq_seg0_idx=42
但我在所有频道上都收到以下错误:
Configuration file: /etc/hostapd/hostapd.conf
wlan1: IEEE 802.11 Configured channel (36) not found from the channel list of current mode (2) IEEE 802.11a
wlan1: IEEE 802.11 Hardware does not support configured channel
Could not select hw_mode and channel. (-3)
wlan1: interface state UNINITIALIZED->DISABLED
wlan1: AP-DISABLED
wlan1: Unable to setup interface.
wlan1: interface state DISABLED->DISABLED
wlan1: AP-DISABLED
hostapd_free_hapd_data: Interface wlan1 wasn't started
nl80211: deinit ifname=wlan1 disabled_11b_rates=0
这与监管领域有关。那么我该如何解决上述问题呢?
以下是更多附加信息:
1. 监管范围:
iw reg get
country US: DFS-FCC
(2402 - 2472 @ 40), (N/A, 30), (N/A)
(5170 - 5250 @ 80), (N/A, 17), (N/A)
(5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS
(5490 - 5730 @ 160), (N/A, 23), (0 ms), DFS
(5735 - 5835 @ 80), (N/A, 30), (N/A)
(57240 - 63720 @ 2160), (N/A, 40), (N/A)
dmesg | grep EEPROM
[ 9.056790] ath: EEPROM regdomain: 0x6c
[ 9.056791] ath: EEPROM indicates we should expect a direct regpair map
2.我的适配器在 5 GHz 频段支持的信道:
* 5180 MHz [36] (17.0 dBm) (no IR)
* 5200 MHz [40] (17.0 dBm) (no IR)
* 5220 MHz [44] (17.0 dBm) (no IR)
* 5240 MHz [48] (17.0 dBm) (no IR)
* 5260 MHz [52] (23.0 dBm) (no IR, radar detection)
DFS state: usable (for 208 sec)
DFS CAC time: 60000 ms
* 5280 MHz [56] (23.0 dBm) (no IR, radar detection)
DFS state: usable (for 208 sec)
DFS CAC time: 60000 ms
* 5300 MHz [60] (23.0 dBm) (no IR, radar detection)
DFS state: usable (for 208 sec)
DFS CAC time: 60000 ms
* 5320 MHz [64] (23.0 dBm) (no IR, radar detection)
DFS state: usable (for 208 sec)
DFS CAC time: 60000 ms
* 5500 MHz [100] (23.0 dBm) (no IR, radar detection)
DFS state: usable (for 208 sec)
DFS CAC time: 60000 ms
* 5520 MHz [104] (23.0 dBm) (no IR, radar detection)
DFS state: usable (for 208 sec)
DFS CAC time: 60000 ms
* 5540 MHz [108] (23.0 dBm) (no IR, radar detection)
DFS state: usable (for 208 sec)
DFS CAC time: 60000 ms
* 5560 MHz [112] (23.0 dBm) (no IR, radar detection)
DFS state: usable (for 208 sec)
DFS CAC time: 60000 ms
* 5580 MHz [116] (23.0 dBm) (no IR, radar detection)
DFS state: usable (for 208 sec)
DFS CAC time: 60000 ms
* 5600 MHz [120] (23.0 dBm) (no IR, radar detection)
DFS state: usable (for 208 sec)
DFS CAC time: 60000 ms
* 5620 MHz [124] (23.0 dBm) (no IR, radar detection)
DFS state: usable (for 208 sec)
DFS CAC time: 60000 ms
* 5640 MHz [128] (23.0 dBm) (no IR, radar detection)
DFS state: usable (for 208 sec)
DFS CAC time: 60000 ms
* 5660 MHz [132] (23.0 dBm) (no IR, radar detection)
DFS state: usable (for 208 sec)
DFS CAC time: 60000 ms
* 5680 MHz [136] (23.0 dBm) (no IR, radar detection)
DFS state: usable (for 208 sec)
DFS CAC time: 60000 ms
* 5700 MHz [140] (23.0 dBm) (no IR, radar detection)
DFS state: usable (for 208 sec)
DFS CAC time: 60000 ms
* 5720 MHz [144] (23.0 dBm) (no IR, radar detection)
DFS state: usable (for 208 sec)
DFS CAC time: 60000 ms
* 5745 MHz [149] (30.0 dBm) (no IR)
* 5765 MHz [153] (30.0 dBm) (no IR)
* 5785 MHz [157] (30.0 dBm) (no IR)
* 5805 MHz [161] (30.0 dBm) (no IR)
* 5825 MHz [165] (30.0 dBm) (no IR)
* 5845 MHz [169] (disabled)