mac80211: don't always advertise remain-on-channel
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / wl12xx / main.c
index b1555fb5815b48c4347126c4762cb84b7a8d599a..362ff1a7067ec732965350bd6b69f24fba7a4bc2 100644 (file)
@@ -5242,7 +5242,8 @@ static int wl1271_init_ieee80211(struct wl1271 *wl)
        wl->hw->wiphy->max_sched_scan_ie_len = WL1271_CMD_TEMPL_MAX_SIZE -
                sizeof(struct ieee80211_header);
 
-       wl->hw->wiphy->flags |= WIPHY_FLAG_AP_UAPSD;
+       wl->hw->wiphy->flags |= WIPHY_FLAG_AP_UAPSD |
+                               WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL;
 
        /* make sure all our channels fit in the scanned_ch bitmask */
        BUILD_BUG_ON(ARRAY_SIZE(wl1271_channels) +