将 wpa_supplicant 设置为 5GHz 接入点在所有通道上都失败

问题描述

我试图在安装了 ubuntu 20.04 LTS 的 NUC 上将 wpa_supplicant 作为 5GHz 接入点运行。 - 但我尝试使用的每一个频道,总是以 wlp2s0: Failed to start AP functionality 失败。

我的wpa_supplicant.conf

network={
    ssid="TESTAP5g"
    mode=2
    key_mgmt=WPA-PSK
    psk="secretpass"
    frequency=5825
}

当我尝试使用 iw reg get 检查可用频道时:

global
country DK: DFS-ETSI
    (2400 - 2483 @ 40),(N/A,20),(N/A)
    (5150 - 5250 @ 80),23),(N/A),NO-OUTDOOR,AUTO-BW
    (5250 - 5350 @ 80),(0 ms),DFS,AUTO-BW
    (5470 - 5725 @ 160),26),DFS
    (5725 - 5875 @ 80),13),(N/A)
    (57000 - 66000 @ 2160),40),(N/A)

以及 iw list 显示的频率:

        Frequencies:
            * 5180 MHz [36] (22.0 dBm) (no IR)
            * 5200 MHz [40] (22.0 dBm) (no IR)
            * 5220 MHz [44] (22.0 dBm) (no IR)
            * 5240 MHz [48] (22.0 dBm) (no IR)
            * 5260 MHz [52] (22.0 dBm) (no IR,radar detection)
            * 5280 MHz [56] (22.0 dBm) (no IR,radar detection)
            * 5300 MHz [60] (22.0 dBm) (no IR,radar detection)
            * 5320 MHz [64] (22.0 dBm) (no IR,radar detection)
            * 5500 MHz [100] (22.0 dBm) (no IR,radar detection)
            * 5520 MHz [104] (22.0 dBm) (no IR,radar detection)
            * 5540 MHz [108] (22.0 dBm) (no IR,radar detection)
            * 5560 MHz [112] (22.0 dBm) (no IR,radar detection)
            * 5580 MHz [116] (22.0 dBm) (no IR,radar detection)
            * 5600 MHz [120] (22.0 dBm) (no IR,radar detection)
            * 5620 MHz [124] (22.0 dBm) (no IR,radar detection)
            * 5640 MHz [128] (22.0 dBm) (no IR,radar detection)
            * 5660 MHz [132] (22.0 dBm) (no IR,radar detection)
            * 5680 MHz [136] (22.0 dBm) (no IR,radar detection)
            * 5700 MHz [140] (22.0 dBm) (no IR,radar detection)
            * 5720 MHz [144] (22.0 dBm) (no IR,radar detection)
            * 5745 MHz [149] (22.0 dBm) (no IR)
            * 5765 MHz [153] (22.0 dBm) (no IR)
            * 5785 MHz [157] (22.0 dBm) (no IR)
            * 5805 MHz [161] (22.0 dBm) (no IR)
            * 5825 MHz [165] (22.0 dBm) (no IR)

这是从 wpa_supplicant -dd 日志中截取的:

nl80211: Set freq 5825 (ht_enabled=0,vht_enabled=0,he_enabled=0,bandwidth=0 MHz,cf1=0 MHz,cf2=0 MHz)
  * freq=5825
  * he_enabled=0
  * vht_enabled=0
  * ht_enabled=0
  * channel_type=0
nl80211: Failed to set channel (freq=5825): -22 (Invalid argument)
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Failed to set interface 3 to mode 2: -16 (Device or resource busy)
nl80211: Try mode change after setting interface down
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Mode change succeeded while interface is down

“资源忙?”我知道在启动之前没有 wpa_supplicant 运行,而且 wifi 接口可用并且可以很好地扫描(也能够看到其他使用 5GHz 信道的接入点,我也不能使用)。

在我的笔记本电脑上,我遇到了类似的问题。 iw list 频率还显示所有频道[无 IR],但我仍然能够毫无问题地在频道 165 上运行接入点。

如果我在 freq_list= 中放入 channel=0wpa_supplicant.conf,它只会回退到每次都成为信道 11 上的接入点(即 2.4GHz),即使只有列出了 5GHz 频率。 - 2.4GHz 上的 BTW 接入点工作正常。

你们中的任何人对我做错了什么或我如何进一步调查有任何指示吗?会不会是硬件限制?如果需要更多信息,请告诉我,我会更新。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)