projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bef4d1
)
wifi: mac80211: set EHT support flag in AP mode
author
Aloka Dixit
<quic_alokad@quicinc.com>
Mon, 10 Apr 2023 20:03:32 +0000
(13:03 -0700)
committer
Johannes Berg
<johannes.berg@intel.com>
Tue, 11 Apr 2023 13:37:40 +0000
(15:37 +0200)
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>
net/mac80211/cfg.c
patch
|
blob
|
history
diff --git
a/net/mac80211/cfg.c
b/net/mac80211/cfg.c
index 47391560671544a0f6ce784df44a3c53374f58d0..7317e4a5d1ff0af2d1b79bd3fa4b0e79bf875a9b 100644
(file)
--- 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;