]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
wlcore: Allow scans when in AP mode
authorJames Minor <james.minor@ni.com>
Fri, 7 Oct 2016 15:45:57 +0000 (10:45 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 17 Nov 2016 06:43:05 +0000 (08:43 +0200)
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: James Minor <james.minor@ni.com>
Signed-off-by: Xander Huff <xander.huff@ni.com>
Reviewed-by: Ben Shelton <ben.shelton@ni.com>
Reviewed-by: Jaeden Amero <jaeden.amero@ni.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ti/wlcore/main.c

index 5438975c7ff2a6a310680f6497b280d44772bd74..2f056923a5697dbee3bb4d606fb0e6811708cc2e 100644 (file)
@@ -6122,6 +6122,8 @@ static int wl1271_init_ieee80211(struct wl1271 *wl)
                                WIPHY_FLAG_SUPPORTS_SCHED_SCAN |
                                WIPHY_FLAG_HAS_CHANNEL_SWITCH;
 
+       wl->hw->wiphy->features |= NL80211_FEATURE_AP_SCAN;
+
        /* make sure all our channels fit in the scanned_ch bitmask */
        BUILD_BUG_ON(ARRAY_SIZE(wl1271_channels) +
                     ARRAY_SIZE(wl1271_channels_5ghz) >