]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: fix default LQ table in 5.2 band
authorTomas Winkler <tomas.winkler@intel.com>
Mon, 23 Aug 2010 21:00:54 +0000 (14:00 -0700)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Sat, 11 Sep 2010 15:50:44 +0000 (08:50 -0700)
commit8c023a65d62fa48b6c687573b9a254faab499ede
tree4293eb497cce91c0b691c4d55908c9e5b6da5fe6
parent9e22642fc7c264b86c8235d5498e4234b07bdd9a
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>
drivers/net/wireless/iwlwifi/iwl-agn-rs.h
drivers/net/wireless/iwlwifi/iwl-sta.c