diff options
author | Eyal Shapira <eyal@wizery.com> | 2014-03-31 15:37:39 -0400 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2014-04-13 09:51:03 -0400 |
commit | 198266a3c110e8a68895a24e937003f5da0c5f60 (patch) | |
tree | 05f862de53c0a649906785f7de1b7f3295002e16 /drivers/net/wireless/iwlwifi/mvm/rs.h | |
parent | 08a732f4e4a842f0101e5ea03d79e9d613ffadbe (diff) |
iwlwifi: mvm: rs: use correct max expected throughput figures
The selection of the max expected throughput for a column
didn't take into account the maximal allowed rate for the current
peer. This can cause unnecessary switches during the search cycle
to columns which have no chance of beating the current throughput.
Signed-off-by: Eyal Shapira <eyalx.shapira@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/rs.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/rs.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/rs.h b/drivers/net/wireless/iwlwifi/mvm/rs.h index 3332b396011e..9892d92d5901 100644 --- a/drivers/net/wireless/iwlwifi/mvm/rs.h +++ b/drivers/net/wireless/iwlwifi/mvm/rs.h | |||
@@ -314,9 +314,15 @@ struct iwl_lq_sta { | |||
314 | enum ieee80211_band band; | 314 | enum ieee80211_band band; |
315 | 315 | ||
316 | /* The following are bitmaps of rates; IWL_RATE_6M_MASK, etc. */ | 316 | /* The following are bitmaps of rates; IWL_RATE_6M_MASK, etc. */ |
317 | u16 active_legacy_rate; | 317 | unsigned long active_legacy_rate; |
318 | u16 active_siso_rate; | 318 | unsigned long active_siso_rate; |
319 | u16 active_mimo2_rate; | 319 | unsigned long active_mimo2_rate; |
320 | |||
321 | /* Highest rate per Tx mode */ | ||
322 | u8 max_legacy_rate_idx; | ||
323 | u8 max_siso_rate_idx; | ||
324 | u8 max_mimo2_rate_idx; | ||
325 | |||
320 | s8 max_rate_idx; /* Max rate set by user */ | 326 | s8 max_rate_idx; /* Max rate set by user */ |
321 | u8 missed_rate_counter; | 327 | u8 missed_rate_counter; |
322 | 328 | ||