我试图强制 Wi-Fi 适配器在连接到支持 2.4 GHz 和 5 GHz(WPA 身份验证)的接入点时使用特定通道。
我正在使用以下配置:
操作系统:Raspbian
型号:Raspberry Pi 2 Model B
Wi-Fi 适配器:Edimax EW-7811UTC
驱动程序:8812au
我还尝试使用不同的 Wi-Fi 适配器:使用驱动程序 rt2800 的 Asus USB-N53。
尝试用iwconfig哪个给予SET failed on device wlan0 ; Operation not supported。
也尝试过wpa_supplicant。
wpa_cli需要向或实用程序提供哪些额外参数wpa_supplicant,以便 Wi-Fi 适配器仅连接到特定频段?
寻找你的界面
sudo iwconfig
Run Code Online (Sandbox Code Playgroud)看看你的频道
sudo iwlist {interface} channel
Run Code Online (Sandbox Code Playgroud)关闭无线网络
sudo iwconfig {interface} power off
Run Code Online (Sandbox Code Playgroud)设置您想要的频道
sudo iwconfig {interface} channel {channel, ex. "23"}
Run Code Online (Sandbox Code Playgroud)设置您想要的频率
sudo iwconfig {interface} freq {frequency, ex. "5.00G"}
Run Code Online (Sandbox Code Playgroud)打开无线网络
sudo iwconfig {interface} power on
Run Code Online (Sandbox Code Playgroud)