staging: wfx: fix scan with WFM200 and WW regulation
authorRiccardo Ferrazzo <rferrazzo@came.com>
Fri, 18 Feb 2022 10:53:58 +0000 (11:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Feb 2022 17:03:41 +0000 (18:03 +0100)
commit1f3c2a776a370d8388e9958c94d13494388089b0
treea90c9feb13712987d6a2879dcacbce75ecd99830
parent695eac3c62b8141f3e0f474677bb390a0eeee023
staging: wfx: fix scan with WFM200 and WW regulation

Some variants of the WF200 disallow active scan on channel 12 and 13.
For these parts, the channels 12 and 13 are marked IEEE80211_CHAN_NO_IR.

However, the beacon hint procedure was removing the flag
IEEE80211_CHAN_NO_IR from channels where a BSS is discovered. This was
making subsequent scans to fail because the driver was trying active
scans on prohibited channels.

Signed-off-by: Riccardo Ferrazzo <rferrazzo@came.com>
Reviewed-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20220218105358.283769-1-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/main.c