diff options
author | Riccardo Ferrazzo <rferrazzo@came.com> | 2022-02-18 11:53:58 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-02-21 18:03:41 +0100 |
commit | 1f3c2a776a370d8388e9958c94d13494388089b0 (patch) | |
tree | a90c9feb13712987d6a2879dcacbce75ecd99830 | |
parent | staging: r8188eu: correct long line warnings near prior DBG_88E calls (diff) | |
download | wireguard-linux-1f3c2a776a370d8388e9958c94d13494388089b0.tar.xz wireguard-linux-1f3c2a776a370d8388e9958c94d13494388089b0.zip |
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>
-rw-r--r-- | drivers/staging/wfx/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/wfx/main.c b/drivers/staging/wfx/main.c index d832a22850c7..5999e81dc44d 100644 --- a/drivers/staging/wfx/main.c +++ b/drivers/staging/wfx/main.c @@ -381,6 +381,7 @@ int wfx_probe(struct wfx_dev *wdev) } if (wdev->hw_caps.region_sel_mode) { + wdev->hw->wiphy->regulatory_flags |= REGULATORY_DISABLE_BEACON_HINTS; wdev->hw->wiphy->bands[NL80211_BAND_2GHZ]->channels[11].flags |= IEEE80211_CHAN_NO_IR; wdev->hw->wiphy->bands[NL80211_BAND_2GHZ]->channels[12].flags |= |