History

nl80211: add VHT support for set_bitrate_mask

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.

Janusz Dziedzic committed 12 years ago

Commit 204e35a1 parent 31f1f4e3 files · +99 −6Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/nl80211.h+12−0
@@ -3112,6 +3112,8 @@ enum nl80211_key_attributes { · 3111 unmodified lines
31123112 * %NL80211_MAX_SUPP_RATES in a single array).
31133113 * @NL80211_TXRATE_HT: HT (MCS) rates allowed for TX rate selection
31143114 * in an array of MCS numbers.
3115+ * @NL80211_TXRATE_VHT: VHT rates allowed for TX rate selection,
3116+ * see &struct nl80211_txrate_vht
31153117 * @__NL80211_TXRATE_AFTER_LAST: internal
31163118 * @NL80211_TXRATE_MAX: highest TX rate attribute
31173119 */
@@ -3119,6 +3121,7 @@ enum nl80211_tx_rate_attributes { · 1 unmodified line
31193121 __NL80211_TXRATE_INVALID,
31203122 NL80211_TXRATE_LEGACY,
31213123 NL80211_TXRATE_HT,
3124+ NL80211_TXRATE_VHT,
31223125
31233126 /* keep last */
31243127 __NL80211_TXRATE_AFTER_LAST,
@@ -3126,6 +3129,15 @@ enum nl80211_tx_rate_attributes { · 1 unmodified line
31263129 };
31273130
31283131 #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+};
31293141
31303142 /**
31313143 * enum nl80211_band - Frequency band