Search Linux Wireless

[PATCH v3] mac80211: set EHT support flag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Set 'eht_support' flag if EHT capabilities are present.

Signed-off-by: Aloka Dixit <quic_alokad@xxxxxxxxxxx>
---

v3: This is the next version for the following patch,
https://patchwork.kernel.org/project/linux-wireless/patch/20220323225443.13947-3-quic_alokad@xxxxxxxxxxx/
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(+)

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;
 

base-commit: b536f32b5b034f592df0f0ba129ad59fa0f3e532
-- 
2.39.0




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux