diff mbox series

[v3] mac80211: set EHT support flag

Message ID 20230410200332.32265-1-quic_alokad@quicinc.com
State New
Headers show
Series [v3] mac80211: set EHT support flag | expand

Commit Message

Aloka Dixit April 10, 2023, 8:03 p.m. UTC
Set 'eht_support' flag if EHT capabilities are present.

Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com>
---

v3: This is the next version for the following patch,
https://patchwork.kernel.org/project/linux-wireless/patch/20220323225443.13947-3-quic_alokad@quicinc.com/
Retained only the must-have changes in this version from cfg.c.
Rebasing v2 added modifications from bss_conf to link_conf.

v2: Rebased on top of wireless-next git repository

 net/mac80211/cfg.c | 4 ++++
 1 file changed, 4 insertions(+)


base-commit: b536f32b5b034f592df0f0ba129ad59fa0f3e532
diff mbox series

Patch

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;