]> Pileus Git - ~andy/linux/commitdiff
iwlwifi: change rate number to a constant
authorTomas Winkler <tomas.winkler@intel.com>
Tue, 11 Mar 2008 23:17:20 +0000 (16:17 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 13 Mar 2008 23:32:33 +0000 (19:32 -0400)
This patch moves a number to an understandable define

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl4965-base.c

index d84a7f296d90c090cba4e38c3fe8079a2e226128..b78ca7720bdf36c85dd8f69aa92145b722446e8c 100644 (file)
@@ -5450,8 +5450,9 @@ static void iwl4965_init_hw_rates(struct iwl4965_priv *priv,
                        /*
                         * If CCK != 1M then set short preamble rate flag.
                         */
-                       rates[i].flags |= (iwl4965_rates[i].plcp == 10) ?
-                               0 : IEEE80211_RATE_SHORT_PREAMBLE;
+                       rates[i].flags |=
+                               (iwl4965_rates[i].plcp == IWL_RATE_1M_PLCP) ?
+                                       0 : IEEE80211_RATE_SHORT_PREAMBLE;
                }
        }
 }