0

我正在尝试在安装了 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), (N/A, 23), (N/A), NO-OUTDOOR, AUTO-BW
    (5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS, AUTO-BW
    (5470 - 5725 @ 160), (N/A, 26), (0 ms), DFS
    (5725 - 5875 @ 80), (N/A, 13), (N/A)
    (57000 - 66000 @ 2160), (N/A, 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频率也显示所有频道 [no IR],但我仍然能够毫无问题地在频道 165 上运行接入点。

如果我放入freq_list=channel=0放入wpa_supplicant.conf,即使只列出了 5GHz 频率,它也只是每次都成为通道 11 上的接入点(即 2.4GHz)。- 顺便说一句,2.4GHz 上的接入点工作得很好。

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

4

0 回答 0