根据如何列出 Windows 上支持的 wifi 频率?在 Linux 中只需输入:
sudo iwlist wlp3s0 freq
输出类似以下内容:
wlp3s0 4 channels in total; available frequencies :
Channel 01 : 2.412 GHz
Channel 11 : 2.462 GHz
Channel 157 : 5.785 GHz
Channel 161 : 5.805 GHz
Current Frequency:5.805 GHz (Channel 161)
而在 Windows 中可以输入:
netsh wlan show networks mode=bssid
(无需| findstr /I /R "^ssid | channel | signal"
)
输出类似以下内容:
SSID 1 : Foo
Network type : Infrastructure
Authentication : WPA2-Personal
Encryption : CCMP
BSSID 1 : 09:17:e3:91:13:d3
Signal : 85%
Radio type : 802.11ac
Channel : 8
Basic rates (Mbps) : 1 2 5.5 11
Other rates (Mbps) : 6 9 12 18 24 36 48 54
SSID 2 : Bar
Network type : Infrastructure
Authentication : WPA2-Personal
Encryption : CCMP
BSSID 1 : ed:8f:a2:76:7a:27
Signal : 75%
Radio type : 802.11ac
Channel : 40
Basic rates (Mbps) : 6 12 24
Other rates (Mbps) : 9 18 36 48 54
我的问题是如何获得类似的东西:
SSID 1 : Foo
Frequency type : 2.4G
SSID 2 : Bar
Frequency type : 5G
?