LinuxKPI: 80211: scanning code updates
authorBjoern A. Zeeb <bz@FreeBSD.org>
Sat, 3 Sep 2022 23:40:51 +0000 (23:40 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Sat, 3 Sep 2022 23:40:51 +0000 (23:40 +0000)
commita486fbbd7876bed81d738a32274953c89906edb5
tree3ce0a5ee5abb18df8c50dc8a2d21edcee33d9af0
parent527687a9e30aef2e5e0c0c5b5e64e6059f1a37a4
LinuxKPI: 80211: scanning code updates

For consistency rename LKPI_SCAN_RUNNING adding a LHW_ prefix.
Add a local flag LKPI_LHW_SCAN_HW mirroring the net80211
IEEE80211_FEXT_SCAN_OFFLOAD flag.
Slightly simplify the code.
Overload (*ic_scan_curchan) and (*ic_scan_mindwell) so that we can
call the net80211 implementation in case of software scan but skip it
in case of full-offload scans.
Also add a bandaid to our (*ic_set_channel) implementation to not siwtch
channels if we have an active hw_scan running.

Obtained from: bz/wireless-dev
Sponsored by: The FreeBSD Foundation (partially)
MFC after: 4 days
sys/compat/linuxkpi/common/src/linux_80211.c
sys/compat/linuxkpi/common/src/linux_80211.h
sys/compat/linuxkpi/common/src/linux_80211_macops.c