wifi: nl80211: Add EHT fixed Tx rate support
PATCH v2 1/1 wifi: nl80211: Add EHT fixed Tx rate support
Add new attributes to support EHT MCS/NSS Tx rates and EHT GI/LTF. Parse EHT fixed MCS/NSS Tx rates and EHT GI/LTF values passed by the userspace, validate and add as part of cfg80211_bitrate_mask.
MCS mask is constructed by new function, eht_build_mcs_mask(). Max NSS supported for MCS rates of 7, 9, 11 and 13 is utilized to set MCS bitmask for each NSS. MCS rates 14, and 15 if supported, are set only for NSS = 0.
---
v2:
- Added necessary EHT additions to validate_beacon_tx_rate()
- Added new Enum for EHT beacon rate:
NL80211_EXT_FEATURE_BEACON_RATE_EHT
- Removed MCS 15 checks as that is only for MRUs
- Moved setting MCS 14 and 15 outside of NSS loop since it is only applicable for NSS 0
- Moved checks out of eht_build_mcs_mask() in order to have no possible errors for this function.
--- include/net/cfg80211.h | 3 + include/uapi/linux/nl80211.h | 41 ++++++- net/wireless/nl80211.c | 229 ++++++++++++++++++++++++++++++++++- 3 files changed, 266 insertions(+), 7 deletions(-)
include/net/cfg80211.h +3 -0
@@ -841,9 +841,12 @@ struct cfg80211_bitrate_mask {u8 ht_mcs[IEEE80211_HT_MCS_MASK_LEN ];u16 vht_mcs[NL80211_VHT_NSS_MAX ];u16 he_mcs[NL80211_HE_NSS_MAX ]; +u16 eht_mcs[NL80211_EHT_NSS_MAX ];enum nl80211_txrate_gi gi;enum nl80211_he_gi he_gi; +enum nl80211_eht_gi eht_gi;enum nl80211_he_ltf he_ltf; +enum nl80211_eht_ltf eht_ltf; } control[NUM_NL80211_BANDS ]; };
include/uapi/linux/nl80211.h +39 -2
83 lines not on this page · raw message
net/wireless/nl80211.c +224 -5
288 lines not on this page · raw message
base-commit: d9104cec3e8fe4b458b74709853231385779001f
Signature · 1 line
2.34.1