Make net80211 drop beacons received on secondary HT/VHT channels.
authorstsp <stsp@openbsd.org>
Sat, 7 Jan 2023 11:09:16 +0000 (11:09 +0000)
committerstsp <stsp@openbsd.org>
Sat, 7 Jan 2023 11:09:16 +0000 (11:09 +0000)
commitb5c5cec872990486cdfe9f0c2dd1c2410af32136
treed1b024ea2aaf09d9a31cbf40fe34abc16a3502ea
parent2074e18d3250360a5bdd6fe5748f57392a1a3e9f
Make net80211 drop beacons received on secondary HT/VHT channels.

Prevents iwm firmware panics and makes association work with 11ac APs
which transmit beacons on channels other than their primary channel.
We would use the wrong channel in such cases, and iwm would request
a bogus channel configuration, which made the firmware unhappy.

Tested by myself on iwm 8265 and florian on iwm 9260.
This issue did likely affect iwx devices, too.

ok mpi@
sys/net80211/ieee80211_input.c