diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2010-08-23 17:00:54 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-09-11 11:50:44 -0400 |
commit | cf6da94acb1e158c8efe0d184ac757829fbf9632 (patch) | |
tree | 4293eb497cce91c0b691c4d55908c9e5b6da5fe6 /drivers/net/wireless/iwlwifi/iwl-agn-rs.h | |
parent | 950094cb06f3cfd75338d8c197d1d3924724b1a8 (diff) |
iwlwifi: fix default LQ table in 5.2 band
The default LQ is filled decreasingly using
iwl_get_prev_ieee_rate from a starting rate.
Since the starting rate is already the lowest one for
a specific band it should be actually filled evenly with
the starting rate: 1M and 6M for 5.2GHZ and 2.4GH respectively.
The bug is that for for A or G-only it decreases to
CCK rates which are not supported.
iwl_get_prev_ieee_rate function is just not band aware.
This affects broadcast station which lq table
is not updated by rs algorithm
G-only scenario is not treated by this patch
iwl_get_prev_ieee_rate is removed completely as it
is not used in other contexts
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-rs.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rs.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.h b/drivers/net/wireless/iwlwifi/iwl-agn-rs.h index 3970ab1deaf9..357cdb26f16d 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.h +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.h | |||
@@ -453,15 +453,6 @@ static inline u8 first_antenna(u8 mask) | |||
453 | } | 453 | } |
454 | 454 | ||
455 | 455 | ||
456 | static inline u8 iwl_get_prev_ieee_rate(u8 rate_index) | ||
457 | { | ||
458 | u8 rate = iwl_rates[rate_index].prev_ieee; | ||
459 | |||
460 | if (rate == IWL_RATE_INVALID) | ||
461 | rate = rate_index; | ||
462 | return rate; | ||
463 | } | ||
464 | |||
465 | static inline u8 iwl3945_get_prev_ieee_rate(u8 rate_index) | 456 | static inline u8 iwl3945_get_prev_ieee_rate(u8 rate_index) |
466 | { | 457 | { |
467 | u8 rate = iwl3945_rates[rate_index].prev_ieee; | 458 | u8 rate = iwl3945_rates[rate_index].prev_ieee; |