OSDN Git Service

iwlwifi: mvm: rs: choose correct expected tpt table
authorEyal Shapira <eyal@wizery.com>
Wed, 30 Apr 2014 22:28:48 +0000 (01:28 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 6 May 2014 17:39:59 +0000 (20:39 +0300)
commit049e0c330c42c22b6c8f1e190e039ae484307fbd
tree73b4372a7172c9858590d25e699938c68fd09310
parente6c8d602dc6302a1564617f7596181ac460f2845
iwlwifi: mvm: rs: choose correct expected tpt table

The expected throughput table used when estimating a new column
depends on the channel bandwidth. When switching from legacy to
siso or mimo the wrong expected throughput table was used as it
was chosen based on the the channel bandwidth in legacy which is
always 20Mhz. Instead it should be chosen based on the current sta
bandwidth which could be also 40Mhz or 80Mhz.
When enabling MCS9 this bug leads to a problem where the max
expected throughput of the siso or mimo column is 0 as MCS9 isn't
supported in 20Mhz. This in turns prevents switching to siso or mimo.

Fix this by using the sta bandwidth when deciding which table to choose.

Signed-off-by: Eyal Shapira <eyalx.shapira@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/rs.c