"band" doesn't always restrict Wi-Fi band
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
Triaged
|
Undecided
|
Unassigned |
Bug Description
I have a netplan config that looks like this:
network:
wifis:
wlan0:
It's rendered as this:
ctrl_
network={
ssid=
freq_
key_
psk=
}
netplan documentation claims that band setting restricts the network band. However, wpa_supplicant still connects to the 2Ghz network. My hardware is Raspberry Pi 4.
It's hard to tell whose bug it is. wpa_supplicant documentation also kinda implies that this should work for restricting the band ("If set, scan results that do not match any of the specified frequencies are not considered when selecting a BSS").
I've found this claim on wpa_supplicant mailing list (http://
Partial workaround: use "bssid" to restrict BSSID to the one of 5 GHz band. I'm not sure if it's always the case, but my dual-band access point uses different BSSID for 2.4 GHz and 5 GHz (they differ in the last digit). This unfortunately won't help if your network has multiple access points.