iwlwifi: revert to active table when rate is not valid
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 24 Jul 2009 18:13:00 +0000 (11:13 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 27 Jul 2009 19:24:20 +0000 (15:24 -0400)
commite3139fe741b25a0f8a27fd2cdf2ad11734c3d4d3
tree6691e85878072f6f4dd88a3457c30ededfdf39a0
parent21f5fc75deca63bc41c9d13007d35981d4485622
iwlwifi: revert to active table when rate is not valid

When performing rate scaling, if detected that the new rate
index is invalid, clear the search_better_tbl flag
so it will not be stuck in the loop.

Since the search table is already set up in uCode,
we need to empty out the the search table;
revert back to the "active" rate and throughput info.
Also pass the "active" table setup to uCode to make
sure the rate scale is functioning correctly.

Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn-rs.c