diff options
author | Aloka Dixit <quic_alokad@quicinc.com> | 2023-04-10 23:03:32 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2023-04-11 16:37:40 +0300 |
commit | e3e0ca32cf478e78c579b02cd9c1657d93c97add (patch) | |
tree | 2a2839689df7012e1aa8521bd48b41ba34536206 /net/mac80211 | |
parent | 2bef4d1fb8b3401d70f28e5d62380a25cefc9d3e (diff) | |
download | linux-e3e0ca32cf478e78c579b02cd9c1657d93c97add.tar.xz |
wifi: mac80211: set EHT support flag in AP mode
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>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/cfg.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 473915606715..7317e4a5d1ff 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -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; |