Skip to content

Commit

Permalink
mac80211: in AP mode, set bss_conf::he_supported
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shaul Triebitz authored and Johannes Berg committed Sep 5, 2018
1 parent 244eb9a commit 34fb190
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/mac80211/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 34fb190

Please sign in to comment.