我正在尝试将 wifi 频道更改为使用 5GHz 频率的频道。
iwconfig
lo no wireless extensions.
wlo1 IEEE 802.11abg ESSID:off/any
Mode:Managed Frequency:5.2 GHz Access Point: Not-Associated
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
eno1 no wireless extensions.
一旦我连接到 Wifi,频率就会切换到 2.4GHz
lo no wireless extensions.
wlo1 IEEE 802.11abg ESSID:"PiotryStephy"
Mode:Managed Frequency:2.412 GHz Access Point: C0:05:C2:BF:6F:79
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
eno1 no wireless extensions.
我的路由器设置允许使用 2GHz 和 5GHz 频率。没有选项可以更改“模式:管理”。
这些是我可用的频道:
iwlist channel
lo no frequency information.
wlo1 29 channels in total; available frequencies :
Channel 01 : 2.412 GHz
Channel 02 : 2.417 GHz
Channel 03 : 2.422 GHz
Channel 04 : 2.427 GHz
Channel 05 : 2.432 GHz
Channel 06 : 2.437 GHz
Channel 07 : 2.442 GHz
Channel 08 : 2.447 GHz
Channel 09 : 2.452 GHz
Channel 10 : 2.457 GHz
Channel 11 : 2.462 GHz
Channel 12 : 2.467 GHz
Channel 13 : 2.472 GHz
Channel 36 : 5.18 GHz
Channel 38 : 5.19 GHz
Channel 40 : 5.2 GHz
Channel 42 : 5.21 GHz
Channel 44 : 5.22 GHz
Channel 46 : 5.23 GHz
Channel 48 : 5.24 GHz
Channel 52 : 5.26 GHz
Channel 56 : 5.28 GHz
Channel 60 : 5.3 GHz
Channel 64 : 5.32 GHz
Channel 149 : 5.745 GHz
Channel 153 : 5.765 GHz
Channel 157 : 5.785 GHz
Channel 161 : 5.805 GHz
Channel 165 : 5.825 GHz
Current Frequency:2.412 GHz (Channel 1)
eno1 no frequency information.
当我尝试更换频道时:
sudo iwconfig wlo1 channel 40
Error for wireless request "Set Frequency" (8B04) :
SET failed on device wlo1 ; Operation not supported.
答案1
接口必须处于监控模式。首先使用ifconfig wlo1 关闭 然后将其更改为iwconfig wlo1 模式监视器 把它带回来ifconfig wlo1 启动 更改频道iwconfig wlo1 通道 40