iwlwifi: mvm: rs: fix BT Coex check to look at the correct ant
authorEyal Shapira <eyal@wizery.com>
Mon, 2 Feb 2015 13:21:27 +0000 (15:21 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 23 Feb 2015 20:10:38 +0000 (22:10 +0200)
commit57bff1485096c53f943e26b1c5847f2a9dfe84db
tree39ebc822703b541065cc3a8e1aa4a582d66d641d
parent54331db99a2a7b621a83865608b2c59913291517
iwlwifi: mvm: rs: fix BT Coex check to look at the correct ant

The check to avoid the shared antenna was passed the wrong
antenna parameter. It should have checked whether the antenna of
the next column we're considering is allowed and instead it was
passed the current antenna.
This could lead to a wrong choice of the next column in the rs
algorithm and non optimal performance.

Fixes: commit 219fb66b49fac64bb ("iwlwifi: mvm: rs - don't use the shared antenna when BT load is high")
CC: <stable@vger.kernel.org> [3.19]
Signed-off-by: Eyal Shapira <eyalx.shapira@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/rs.c