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>
Sun, 1 Mar 2015 14:54:51 +0000 (16:54 +0200)
commit0b8d17f30304bedff77d47450839865048b1b626
treeb65e6a873602829f09e85eab899295fea4a88f81
parent929e6edea5ef8fd3d2324ba4ce5736be7d52b9d8
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")
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