]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: wfx: add missing PROBE_RESP_OFFLOAD feature
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Wed, 15 Jan 2020 13:54:06 +0000 (13:54 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Jan 2020 19:59:45 +0000 (20:59 +0100)
Some userspace tools (hostapd) rely on probe_resp_offload fields for
certain features.

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

index 45c9939b7e620d9b420fd5b7ca334609cae56544..1904890c03feee1259d6e99c6d19b0884c1caac6 100644 (file)
@@ -298,6 +298,11 @@ struct wfx_dev *wfx_init_common(struct device *dev,
        hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) |
                                     BIT(NL80211_IFTYPE_ADHOC) |
                                     BIT(NL80211_IFTYPE_AP);
+       hw->wiphy->probe_resp_offload = NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS |
+                                       NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2 |
+                                       NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P |
+                                       NL80211_PROBE_RESP_OFFLOAD_SUPPORT_80211U;
+       hw->wiphy->flags |= WIPHY_FLAG_AP_PROBE_RESP_OFFLOAD;
        hw->wiphy->flags |= WIPHY_FLAG_AP_UAPSD;
        hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT;
        hw->wiphy->max_ap_assoc_sta = WFX_MAX_STA_IN_AP_MODE;