fix 40 MHz channel validation checks for the 2.4 GHz channel range
authorstsp <stsp@openbsd.org>
Sun, 22 Oct 2023 12:01:36 +0000 (12:01 +0000)
committerstsp <stsp@openbsd.org>
Sun, 22 Oct 2023 12:01:36 +0000 (12:01 +0000)
commit243d6ddeb623c1b9556b4b07fd89ab75de0466fc
treef9a3be14fdb896be416242037badd2fbc3d683f4
parent918cd63c4b4147ca50f32ff590096107e69581ef
fix 40 MHz channel validation checks for the 2.4 GHz channel range

Just like the 5 GHz channels, 2.4 GHz channels are spaced 5 MHz apart.
40 MHz wide channels hence span channels [N, N + 4] not [N, N + 1].
Adjust our secondary channel range checks accordingly.
sys/net80211/ieee80211_node.c