iwlwifi/iwl3945: remove data_retry_limit
authorAbhijeet Kolekar <abhijeet.kolekar@intel.com>
Fri, 9 Oct 2009 20:20:32 +0000 (13:20 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 27 Oct 2009 20:48:00 +0000 (16:48 -0400)
Remove the ununsed variable data_retry_limit
from priv.

Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-3945.c
drivers/net/wireless/iwlwifi/iwl-core.c
drivers/net/wireless/iwlwifi/iwl-dev.h
drivers/net/wireless/iwlwifi/iwl-tx.c
drivers/net/wireless/iwlwifi/iwl3945-base.c

index a6944bc53fec8478d000d040d60229a334d36cda..eb874e08ba53265b7f08850c680e9eeead611e04 100644 (file)
@@ -806,9 +806,6 @@ void iwl3945_hw_build_tx_cmd_rate(struct iwl_priv *priv,
        } else
                data_retry_limit = IWL_DEFAULT_TX_RETRY;
 
-       if (priv->data_retry_limit != -1)
-               data_retry_limit = priv->data_retry_limit;
-
        if (ieee80211_is_mgmt(fc)) {
                switch (fc & cpu_to_le16(IEEE80211_FCTL_STYPE)) {
                case cpu_to_le16(IEEE80211_STYPE_AUTH):
index 1e0021f9681cd8348cc4271a34661e77c3a3506b..2ae168af0f2c0887b591bba4f41898798482a4b5 100644 (file)
@@ -1524,7 +1524,6 @@ int iwl_init_drv(struct iwl_priv *priv)
        /* Clear the driver's (not device's) station table */
        iwl_clear_stations_table(priv);
 
-       priv->data_retry_limit = -1;
        priv->ieee_channels = NULL;
        priv->ieee_rates = NULL;
        priv->band = IEEE80211_BAND_2GHZ;
index 8d087f0455def8581497633a41ada50420d8e010..451aa65b1a5621da292c5f1ccc7ef7dd2fa1698a 100644 (file)
@@ -1092,7 +1092,6 @@ struct iwl_priv {
        u8 last_phy_res[100];
 
        /* Rate scaling data */
-       s8 data_retry_limit;
        u8 retry_rate;
 
        wait_queue_head_t wait_command_queue;
index 625da63d01ee99e294da86f2594744a2dff66d2e..d0bd7cd024ad9802c4e3285c48aac3b875c21150 100644 (file)
@@ -591,9 +591,7 @@ static void iwl_tx_cmd_build_rate(struct iwl_priv *priv,
        u8 rate_plcp;
 
        /* Set retry limit on DATA packets and Probe Responses*/
-       if (priv->data_retry_limit != -1)
-               data_retry_limit = priv->data_retry_limit;
-       else if (ieee80211_is_probe_resp(fc))
+       if (ieee80211_is_probe_resp(fc))
                data_retry_limit = 3;
        else
                data_retry_limit = IWL_DEFAULT_TX_RETRY;
index 03612b3945910e5b1f6e8b0cfbde4a6a7612f7de..515f29b8a7a7bbd78c9a95ed85b775da4726d416 100644 (file)
@@ -3797,7 +3797,6 @@ static int iwl3945_init_drv(struct iwl_priv *priv)
        /* Clear the driver's (not device's) station table */
        iwl_clear_stations_table(priv);
 
-       priv->data_retry_limit = -1;
        priv->ieee_channels = NULL;
        priv->ieee_rates = NULL;
        priv->band = IEEE80211_BAND_2GHZ;