aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/cfg80211.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-01-06 06:09:08 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-01-12 13:50:11 -0500
commit37eb0b164cf9fa9f70c8500926f5cde7c652f48e (patch)
tree9260e7045f32268c8c4ded718677711d371cd5ed /include/net/cfg80211.h
parente00cfce0cb2a397859607bf515c6de9ce064b64a (diff)
cfg80211/mac80211: Use more generic bitrate mask for rate control
Extend struct cfg80211_bitrate_mask to actually use a bitfield mask instead of just a single fixed or maximum rate index. This change itself does not modify the behavior (except for debugfs files), but it prepares cfg80211 and mac80211 for a new nl80211 command for setting which rates can be used in TX rate control. Since frames are now going through the rate control algorithm unconditionally, the internal IEEE80211_TX_INTFL_RCALGO flag can now be removed. The RC implementations can use the rate_idx_mask value to optimize their behavior if only a single rate is enabled. The old max_rate_idx in struct ieee80211_tx_rate_control is maintained (but commented as deprecated) for backwards compatibility with existing RC implementations. Once these implementations have been updated to use the more generic rate_idx_mask, the max_rate_idx value can be removed. Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r--include/net/cfg80211.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index a8d5d04314b9..22e062afb5a1 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -857,20 +857,11 @@ enum tx_power_setting {
857 * cfg80211_bitrate_mask - masks for bitrate control 857 * cfg80211_bitrate_mask - masks for bitrate control
858 */ 858 */
859struct cfg80211_bitrate_mask { 859struct cfg80211_bitrate_mask {
860/*
861 * As discussed in Berlin, this struct really
862 * should look like this:
863
864 struct { 860 struct {
865 u32 legacy; 861 u32 legacy;
866 u8 mcs[IEEE80211_HT_MCS_MASK_LEN]; 862 /* TODO: add support for masking MCS rates; e.g.: */
863 /* u8 mcs[IEEE80211_HT_MCS_MASK_LEN]; */
867 } control[IEEE80211_NUM_BANDS]; 864 } control[IEEE80211_NUM_BANDS];
868
869 * Since we can always fix in-kernel users, let's keep
870 * it simpler for now:
871 */
872 u32 fixed; /* fixed bitrate, 0 == not fixed */
873 u32 maxrate; /* in kbps, 0 == no limit */
874}; 865};
875/** 866/**
876 * struct cfg80211_pmksa - PMK Security Association 867 * struct cfg80211_pmksa - PMK Security Association