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
3112 * %NL80211_MAX_SUPP_RATES in a single array).3112 * %NL80211_MAX_SUPP_RATES in a single array).
3113 * @NL80211_TXRATE_HT: HT (MCS) rates allowed for TX rate selection3113 * @NL80211_TXRATE_HT: HT (MCS) rates allowed for TX rate selection
3114 * in an array of MCS numbers.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 * @__NL80211_TXRATE_AFTER_LAST: internal3117 * @__NL80211_TXRATE_AFTER_LAST: internal
3116 * @NL80211_TXRATE_MAX: highest TX rate attribute3118 * @NL80211_TXRATE_MAX: highest TX rate attribute
3117 */3119 */
@@ -3119,6 +3121,7 @@ enum nl80211_tx_rate_attributes { · 1 unmodified line
3119 __NL80211_TXRATE_INVALID,3121 __NL80211_TXRATE_INVALID,
3120 NL80211_TXRATE_LEGACY,3122 NL80211_TXRATE_LEGACY,
3121 NL80211_TXRATE_HT,3123 NL80211_TXRATE_HT,
3124 NL80211_TXRATE_VHT,
3122 3125
3123 /* keep last */3126 /* keep last */
3124 __NL80211_TXRATE_AFTER_LAST,3127 __NL80211_TXRATE_AFTER_LAST,
@@ -3126,6 +3129,15 @@ enum nl80211_tx_rate_attributes { · 1 unmodified line
3126};3129};
3127 3130
3128#define NL80211_TXRATE_MCS NL80211_TXRATE_HT3131#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 */
3138struct nl80211_txrate_vht {
3139 __u16 mcs[NL80211_VHT_NSS_MAX];
3140};
3129 3141
3130/**3142/**
3131 * enum nl80211_band - Frequency band3143 * enum nl80211_band - Frequency band