summaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
authorShaul Triebitz2018-08-31 10:31:15 +0200
committerJohannes Berg2018-09-05 10:03:13 +0200
commit34fb190ec0e2284ef44b34ead88bc192b1212286 (patch)
treea07699e490199fa671d5b0f6be3e177cdf1c3416 /net/mac80211/cfg.c
parentcfg80211: add he_capabilities (ext) IE to AP settings (diff)
downloadkernel-qcow2-linux-34fb190ec0e2284ef44b34ead88bc192b1212286.tar.gz
kernel-qcow2-linux-34fb190ec0e2284ef44b34ead88bc192b1212286.tar.xz
kernel-qcow2-linux-34fb190ec0e2284ef44b34ead88bc192b1212286.zip
mac80211: in AP mode, set bss_conf::he_supported
In AP mode, If AP advertises HE capabilities, set to true bss_conf::he_supported so that the Driver knows about it. Signed-off-by: Shaul Triebitz <shaul.triebitz@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 1813c6f148bb..504627e2117f 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -909,6 +909,9 @@ static int ieee80211_start_ap(struct wiphy *wiphy, struct net_device *dev,
sdata->vif.bss_conf.beacon_int = params->beacon_interval;
+ if (params->he_cap)
+ sdata->vif.bss_conf.he_support = true;
+
mutex_lock(&local->mtx);
err = ieee80211_vif_use_channel(sdata, &params->chandef,
IEEE80211_CHANCTX_SHARED);