iwlwifi: remove never-changing priv->rates_mask variable
authorJohannes Berg <johannes.berg@intel.com>
Thu, 21 Jan 2010 19:23:30 +0000 (11:23 -0800)
committerReinette Chatre <reinette.chatre@intel.com>
Wed, 10 Mar 2010 00:04:40 +0000 (16:04 -0800)
It's always just IWL_RATES_MASK.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl-dev.h
drivers/net/wireless/iwlwifi/iwl3945-base.c

index d0fab876df05c41438b4debf8f20b2369bfadaa4..e7e4bf71568c8e94ca0ad5ba716a821a89184696 100644 (file)
@@ -2103,8 +2103,8 @@ static void iwl_alive_start(struct iwl_priv *priv)
 
        ieee80211_wake_queues(priv->hw);
 
-       priv->active_rate = priv->rates_mask;
-       priv->active_rate_basic = priv->rates_mask & IWL_BASIC_RATES_MASK;
+       priv->active_rate = IWL_RATES_MASK;
+       priv->active_rate_basic = IWL_RATES_MASK & IWL_BASIC_RATES_MASK;
 
        /* Configure Tx antenna selection based on H/W config */
        if (priv->cfg->ops->hcmd->set_tx_ant)
@@ -3392,7 +3392,6 @@ static int iwl_init_drv(struct iwl_priv *priv)
        priv->qos_data.qos_active = 0;
        priv->qos_data.qos_cap.val = 0;
 
-       priv->rates_mask = IWL_RATES_MASK;
        /* Set the tx_power_user_lmt to the lowest power level
         * this value will get overwritten by channel max power avg
         * from eeprom */
index c277e4e8cf877bf74c8e856c0d62b7f27f00d6d2..4d6558fbebe569f110624d678064ed793f51e05c 100644 (file)
@@ -1217,8 +1217,6 @@ struct iwl_priv {
 #endif
 
        /* context information */
-       u16 rates_mask;
-
        u8 bssid[ETH_ALEN];
        u16 rts_threshold;
        u8 mac_addr[ETH_ALEN];
index 2b2c96bf5a538ee87d50ada213bbf559f34cd0bf..b2b050592bc1f68ce9f1c8ee7f602f98366b9db1 100644 (file)
@@ -2508,8 +2508,8 @@ static void iwl3945_alive_start(struct iwl_priv *priv)
 
        ieee80211_wake_queues(priv->hw);
 
-       priv->active_rate = priv->rates_mask;
-       priv->active_rate_basic = priv->rates_mask & IWL_BASIC_RATES_MASK;
+       priv->active_rate = IWL_RATES_MASK;
+       priv->active_rate_basic = IWL_RATES_MASK & IWL_BASIC_RATES_MASK;
 
        iwl_power_update_mode(priv, true);
 
@@ -3855,7 +3855,6 @@ static int iwl3945_init_drv(struct iwl_priv *priv)
        priv->qos_data.qos_active = 0;
        priv->qos_data.qos_cap.val = 0;
 
-       priv->rates_mask = IWL_RATES_MASK;
        priv->tx_power_user_lmt = IWL_DEFAULT_TX_POWER;
 
        if (eeprom->version < EEPROM_3945_EEPROM_VERSION) {