Commit 87016f5e authored by James Minor's avatar James Minor Committed by Kalle Valo

wlcore: Allow scans when in AP mode

When in AP mode, scans can be done without changing firmware to
the multi-role firmware. Allow the interface to scan if forced
in the scan request.
Signed-off-by: default avatarJames Minor <james.minor@ni.com>
Signed-off-by: default avatarXander Huff <xander.huff@ni.com>
Reviewed-by: default avatarBen Shelton <ben.shelton@ni.com>
Reviewed-by: default avatarJaeden Amero <jaeden.amero@ni.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 1b489326
...@@ -6122,6 +6122,8 @@ static int wl1271_init_ieee80211(struct wl1271 *wl) ...@@ -6122,6 +6122,8 @@ static int wl1271_init_ieee80211(struct wl1271 *wl)
WIPHY_FLAG_SUPPORTS_SCHED_SCAN | WIPHY_FLAG_SUPPORTS_SCHED_SCAN |
WIPHY_FLAG_HAS_CHANNEL_SWITCH; WIPHY_FLAG_HAS_CHANNEL_SWITCH;
wl->hw->wiphy->features |= NL80211_FEATURE_AP_SCAN;
/* make sure all our channels fit in the scanned_ch bitmask */ /* make sure all our channels fit in the scanned_ch bitmask */
BUILD_BUG_ON(ARRAY_SIZE(wl1271_channels) + BUILD_BUG_ON(ARRAY_SIZE(wl1271_channels) +
ARRAY_SIZE(wl1271_channels_5ghz) > ARRAY_SIZE(wl1271_channels_5ghz) >
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment