Add VHT MCS/NSS set support for nl80211_set_tx_bitrate_mask(). This should be used mainly for test purpose, to check different MCS/NSS VHT combinations.
Showing the changes to include/uapi/linux (1 of 3 files). Show all
Unified · Split
| @@ -3112,6 +3112,8 @@ enum nl80211_key_attributes { · 3111 unmodified lines | ||
| 3112 | 3112 | * %NL80211_MAX_SUPP_RATES in a single array). |
| 3113 | 3113 | * @NL80211_TXRATE_HT: HT (MCS) rates allowed for TX rate selection |
| 3114 | 3114 | * in an array of MCS numbers. |
| 3115 | + * @NL80211_TXRATE_VHT: VHT rates allowed for TX rate selection, | |
| 3116 | + * see &struct nl80211_txrate_vht | |
| 3115 | 3117 | * @__NL80211_TXRATE_AFTER_LAST: internal |
| 3116 | 3118 | * @NL80211_TXRATE_MAX: highest TX rate attribute |
| 3117 | 3119 | */ |
| @@ -3119,6 +3121,7 @@ enum nl80211_tx_rate_attributes { · 1 unmodified line | ||
| 3119 | 3121 | __NL80211_TXRATE_INVALID, |
| 3120 | 3122 | NL80211_TXRATE_LEGACY, |
| 3121 | 3123 | NL80211_TXRATE_HT, |
| 3124 | + NL80211_TXRATE_VHT, | |
| 3122 | 3125 | |
| 3123 | 3126 | /* keep last */ |
| 3124 | 3127 | __NL80211_TXRATE_AFTER_LAST, |
| @@ -3126,6 +3129,15 @@ enum nl80211_tx_rate_attributes { · 1 unmodified line | ||
| 3126 | 3129 | }; |
| 3127 | 3130 | |
| 3128 | 3131 | #define NL80211_TXRATE_MCS NL80211_TXRATE_HT |
| 3132 | +#define NL80211_VHT_NSS_MAX 8 | |
| 3133 | + | |
| 3134 | +/** | |
| 3135 | + * struct nl80211_txrate_vht - VHT MCS/NSS txrate bitmap | |
| 3136 | + * @mcs: MCS bitmap table for each NSS (array index 0 for 1 stream, etc.) | |
| 3137 | + */ | |
| 3138 | +struct nl80211_txrate_vht { | |
| 3139 | + __u16 mcs[NL80211_VHT_NSS_MAX]; | |
| 3140 | +}; | |
| 3129 | 3141 | |
| 3130 | 3142 | /** |
| 3131 | 3143 | * enum nl80211_band - Frequency band |