]> git.karo-electronics.de Git - linux-beck.git/commitdiff
iwlwifi: mvm: fix typo in WARNING in rs.c
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 3 Feb 2014 20:17:19 +0000 (22:17 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 6 Feb 2014 19:02:23 +0000 (21:02 +0200)
The current WARNING isn't very helpful.

Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/rs.c

index 9ec8eca21f500c4e950a2bfb14e3409fb2c870b0..3b73241db24d1809e87df0a7ad2d13f8dbeceb2a 100644 (file)
@@ -905,7 +905,7 @@ static void rs_get_lower_rate_down_column(struct iwl_lq_sta *lq_sta,
 
                rate->bw = RATE_MCS_CHAN_WIDTH_20;
 
-               WARN_ON_ONCE(rate->index < IWL_RATE_MCS_0_INDEX &&
+               WARN_ON_ONCE(rate->index < IWL_RATE_MCS_0_INDEX ||
                             rate->index > IWL_RATE_MCS_9_INDEX);
 
                rate->index = rs_ht_to_legacy[rate->index];