wlan-ap-Telecominfraproject/feeds/ipq95xx/mac80211/patches/qca/565-ieee80211-add-macro-for-EHT-RU-bitmask-position.patch
John Crispin b9b03a6e38 ipq95xx: add Qualcomm wifi-7 support
Signed-off-by: John Crispin <john@phrozen.org>
2023-04-10 14:25:48 +02:00

39 lines
1.5 KiB
Diff

From 8ec2a1488ca01532181324c687d2b92a62b3f9ce Mon Sep 17 00:00:00 2001
From: Aloka Dixit <quic_alokad@quicinc.com>
Date: Tue, 22 Jun 2021 12:56:14 -0700
Subject: [PATCH 03/27] ieee80211: add macro for EHT RU bitmask position
EHT RU bitmask starts at bit 4, add a macro for it to be used
by the drivers during configuration/parsing.
Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com>
---
include/linux/ieee80211.h | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h
index 27f94d531961..7af56731cba9 100644
--- a/include/linux/ieee80211.h
+++ b/include/linux/ieee80211.h
@@ -2825,11 +2825,12 @@ ieee80211_eht_mcs_nss_size(const struct ieee80211_he_cap_elem *he_cap,
}
/* 802.11be EHT PPE Thresholds */
-#define IEEE80211_EHT_PPE_THRES_NSS_POS 0
-#define IEEE80211_EHT_PPE_THRES_NSS_MASK 0xf
-#define IEEE80211_EHT_PPE_THRES_RU_INDEX_BITMASK_MASK 0x1f0
-#define IEEE80211_EHT_PPE_THRES_INFO_PPET_SIZE 3
-#define IEEE80211_EHT_PPE_THRES_INFO_HEADER_SIZE 9
+#define IEEE80211_EHT_PPE_THRES_NSS_POS 0
+#define IEEE80211_EHT_PPE_THRES_NSS_MASK 0xf
+#define IEEE80211_EHT_PPE_THRES_RU_INDEX_BITMASK_MASK 0x1f0
+#define IEEE80211_EHT_PPE_THRES_RU_INDEX_BITMASK_POS 4
+#define IEEE80211_EHT_PPE_THRES_INFO_PPET_SIZE 3
+#define IEEE80211_EHT_PPE_THRES_INFO_HEADER_SIZE 9
/*
* Calculate 802.11be EHT capabilities IE EHT field size
--
2.31.1