]> git.ipfire.org Git - thirdparty/hostap.git/commit
WNM: Extend workaround for broken AP operating class behavior
authorYu Zhang(Yuriy) <quic_yuzha@quicinc.com>
Thu, 1 Aug 2024 10:37:25 +0000 (18:37 +0800)
committerJouni Malinen <j@w1.fi>
Thu, 8 Aug 2024 19:26:53 +0000 (22:26 +0300)
commit72ac0ee026d9f6f9cd031d7859ea0b343b34e61d
treec489b94a38d14835e489d12f51f9865ec042d8fe
parente900bcb149122135d85a16231680b07b37f77695
WNM: Extend workaround for broken AP operating class behavior

Some APs do not advertise operating classes correctly for BSS Transition
Management. Try to determine the most likely operating frequency based
on the channel number (1..14 --> 2.4 GHz; 36..177 --> 5 GHz) if invalid
op_class == 255 is received in a BSS Transition Management Request. This
speeds up the following operating by avoiding a full scan due to an
unknown channel.

This extends the workaround that was added in commit 80ce804e8824 ("WNM:
Workaround for broken AP operating class behavior") for invalid
operating class 0 to cover another observed case with invalid operating
class 255.

Signed-off-by: Yu Zhang(Yuriy) <quic_yuzha@quicinc.com>
wpa_supplicant/wnm_sta.c