Skip to content

Commit

Permalink
iwlwifi: mvm: rs: fix a WARNING in case of STBC and VHT
Browse files Browse the repository at this point in the history
This was taken care of in case we're doing STBC with HT
but not when working with VHT.

Signed-off-by: Eyal Shapira <eyalx.shapira@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
  • Loading branch information
Eyal Shapira authored and Emmanuel Grumbach committed Nov 11, 2014
1 parent b93b1fe commit 1507fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/iwlwifi/mvm/rs.c
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ static int rs_rate_from_ucode_rate(const u32 ucode_rate,

if (nss == 1) {
rate->type = LQ_VHT_SISO;
WARN_ON_ONCE(num_of_ant != 1);
WARN_ON_ONCE(!rate->stbc && num_of_ant != 1);
} else if (nss == 2) {
rate->type = LQ_VHT_MIMO2;
WARN_ON_ONCE(num_of_ant != 2);
Expand Down

0 comments on commit 1507fb7

Please sign in to comment.