Skip to content

Commit

Permalink
wifi: mac80211: set EHT support flag in AP mode
Browse files Browse the repository at this point in the history
Set 'eht_support' flag if EHT capabilities are present.

Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com>
Link: https://lore.kernel.org/r/20230410200332.32265-1-quic_alokad@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Aloka Dixit authored and Johannes Berg committed Apr 11, 2023
1 parent 2bef4d1 commit e3e0ca3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions net/mac80211/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1342,6 +1342,10 @@ static int ieee80211_start_ap(struct wiphy *wiphy, struct net_device *dev,
}

if (params->eht_cap) {
if (!link_conf->he_support)
return -EOPNOTSUPP;

link_conf->eht_support = true;
link_conf->eht_puncturing = params->punct_bitmap;
changed |= BSS_CHANGED_EHT_PUNCTURING;

Expand Down

0 comments on commit e3e0ca3

Please sign in to comment.