diff mbox series

[v3,1/6] wifi: radiotap: add bandwidth definition of EHT U-SIG

Message ID 20231011115256.6121-2-pkshih@realtek.com (mailing list archive)
State Accepted
Commit 61b546b1f3e24007bc39e31e332466725e7df470
Delegated to: Kalle Valo
Headers show
Series wifi: rtw89: handle EHT rate | expand

Commit Message

Ping-Ke Shih Oct. 11, 2023, 11:52 a.m. UTC
Define EHT U-SIG bandwidth used by radiotap according to Table 36-28
"U-SIG field of an EHT MU PPDU" in 802.11be (D3.0).

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
---
v3:
  - move to be first one patch
v2:
  - correct commit message about the source of bandwidth definition
    of EHT U-SIG suggested by Johannes
---
 include/net/ieee80211_radiotap.h | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Kalle Valo Oct. 12, 2023, 12:15 p.m. UTC | #1
Ping-Ke Shih <pkshih@realtek.com> wrote:

> Define EHT U-SIG bandwidth used by radiotap according to Table 36-28
> "U-SIG field of an EHT MU PPDU" in 802.11be (D3.0).
> 
> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>

6 patches applied to wireless-next.git, thanks.

61b546b1f3e2 wifi: radiotap: add bandwidth definition of EHT U-SIG
786a93c9b232 wifi: rtw89: parse EHT information from RX descriptor and PPDU status packet
1f3cd090b4b2 wifi: rtw89: Add EHT rate mask as parameters of RA H2C command
f456701201e2 wifi: rtw89: parse TX EHT rate selected by firmware from RA C2H report
e25ef743866c wifi: rtw89: show EHT rate in debugfs
f1f74dffdfb7 wifi: rtw89: add EHT radiotap in monitor mode
diff mbox series

Patch

diff --git a/include/net/ieee80211_radiotap.h b/include/net/ieee80211_radiotap.h
index 2338f8d2a8b3..925bac726a92 100644
--- a/include/net/ieee80211_radiotap.h
+++ b/include/net/ieee80211_radiotap.h
@@ -539,6 +539,12 @@  enum ieee80211_radiotap_eht_usig_common {
 	IEEE80211_RADIOTAP_EHT_USIG_COMMON_VALIDATE_BITS_OK	= 0x00000080,
 	IEEE80211_RADIOTAP_EHT_USIG_COMMON_PHY_VER		= 0x00007000,
 	IEEE80211_RADIOTAP_EHT_USIG_COMMON_BW			= 0x00038000,
+		IEEE80211_RADIOTAP_EHT_USIG_COMMON_BW_20MHZ		= 0,
+		IEEE80211_RADIOTAP_EHT_USIG_COMMON_BW_40MHZ		= 1,
+		IEEE80211_RADIOTAP_EHT_USIG_COMMON_BW_80MHZ		= 2,
+		IEEE80211_RADIOTAP_EHT_USIG_COMMON_BW_160MHZ		= 3,
+		IEEE80211_RADIOTAP_EHT_USIG_COMMON_BW_320MHZ_1		= 4,
+		IEEE80211_RADIOTAP_EHT_USIG_COMMON_BW_320MHZ_2		= 5,
 	IEEE80211_RADIOTAP_EHT_USIG_COMMON_UL_DL		= 0x00040000,
 	IEEE80211_RADIOTAP_EHT_USIG_COMMON_BSS_COLOR		= 0x01f80000,
 	IEEE80211_RADIOTAP_EHT_USIG_COMMON_TXOP			= 0xfe000000,