aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorWinkler, Tomas <tomas.winkler@intel.com>2009-01-19 18:30:29 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 16:01:00 -0500
commit62ea9c5b9e531dbf6b2601e6c9e2705a56983b6e (patch)
treee4091a98432c3c28059d79726565ec188f73827d /drivers
parent805cee5b81f1e493820601fe7990aef935c2c621 (diff)
iwlwifi: remove unused or twice defined members in iwl_priv
This patch removes user_txpower_limit and max_channel_txpower_limit and use tx_power_user_lmt and tx_power_channel_lmt instead call_post_assoc_from_beacon is not used Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945.c6
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-dev.h5
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-eeprom.c2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c15
5 files changed, 12 insertions, 18 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c
index 1f3305b36d0..fe907f35336 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945.c
+++ b/drivers/net/wireless/iwlwifi/iwl-3945.c
@@ -1675,7 +1675,7 @@ static void iwl3945_hw_reg_set_scan_power(struct iwl_priv *priv, u32 scan_tbl_in
1675 /* further limit to user's max power preference. 1675 /* further limit to user's max power preference.
1676 * FIXME: Other spectrum management power limitations do not 1676 * FIXME: Other spectrum management power limitations do not
1677 * seem to apply?? */ 1677 * seem to apply?? */
1678 power = min(power, priv->user_txpower_limit); 1678 power = min(power, priv->tx_power_user_lmt);
1679 scan_power_info->requested_power = power; 1679 scan_power_info->requested_power = power;
1680 1680
1681 /* find difference between new scan *power* and current "normal" 1681 /* find difference between new scan *power* and current "normal"
@@ -1947,14 +1947,14 @@ int iwl3945_hw_reg_set_txpower(struct iwl_priv *priv, s8 power)
1947 u8 a_band; 1947 u8 a_band;
1948 u8 i; 1948 u8 i;
1949 1949
1950 if (priv->user_txpower_limit == power) { 1950 if (priv->tx_power_user_lmt == power) {
1951 IWL_DEBUG_POWER("Requested Tx power same as current " 1951 IWL_DEBUG_POWER("Requested Tx power same as current "
1952 "limit: %ddBm.\n", power); 1952 "limit: %ddBm.\n", power);
1953 return 0; 1953 return 0;
1954 } 1954 }
1955 1955
1956 IWL_DEBUG_POWER("Setting upper limit clamp to %ddBm.\n", power); 1956 IWL_DEBUG_POWER("Setting upper limit clamp to %ddBm.\n", power);
1957 priv->user_txpower_limit = power; 1957 priv->tx_power_user_lmt = power;
1958 1958
1959 /* set up new Tx powers for each and every channel, 2.4 and 5.x */ 1959 /* set up new Tx powers for each and every channel, 2.4 and 5.x */
1960 1960
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index 31315decc07..b2985e25dc8 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -1306,7 +1306,7 @@ static int iwl4965_fill_txpower_tbl(struct iwl_priv *priv, u8 band, u16 channel,
1306 s32 factory_actual_pwr[2]; 1306 s32 factory_actual_pwr[2];
1307 s32 power_index; 1307 s32 power_index;
1308 1308
1309 /* user_txpower_limit is in dBm, convert to half-dBm (half-dB units 1309 /* tx_power_user_lmt is in dBm, convert to half-dBm (half-dB units
1310 * are used for indexing into txpower table) */ 1310 * are used for indexing into txpower table) */
1311 user_target_power = 2 * priv->tx_power_user_lmt; 1311 user_target_power = 2 * priv->tx_power_user_lmt;
1312 1312
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h
index 5b5e011497c..75ef8d87c18 100644
--- a/drivers/net/wireless/iwlwifi/iwl-dev.h
+++ b/drivers/net/wireless/iwlwifi/iwl-dev.h
@@ -1068,9 +1068,6 @@ struct iwl_priv {
1068 1068
1069 /*For 3945*/ 1069 /*For 3945*/
1070#define IWL_DEFAULT_TX_POWER 0x0F 1070#define IWL_DEFAULT_TX_POWER 0x0F
1071 s8 user_txpower_limit;
1072 s8 max_channel_txpower_limit;
1073
1074 /* We declare this const so it can only be 1071 /* We declare this const so it can only be
1075 * changed via explicit cast within the 1072 * changed via explicit cast within the
1076 * routines that actually update the physical 1073 * routines that actually update the physical
@@ -1088,8 +1085,6 @@ struct iwl_priv {
1088 struct iwl3945_eeprom eeprom39; 1085 struct iwl3945_eeprom eeprom39;
1089 1086
1090 u32 sta_supp_rates; 1087 u32 sta_supp_rates;
1091 u8 call_post_assoc_from_beacon;
1092
1093}; /*iwl_priv */ 1088}; /*iwl_priv */
1094 1089
1095static inline void iwl_txq_ctx_activate(struct iwl_priv *priv, int txq_id) 1090static inline void iwl_txq_ctx_activate(struct iwl_priv *priv, int txq_id)
diff --git a/drivers/net/wireless/iwlwifi/iwl-eeprom.c b/drivers/net/wireless/iwlwifi/iwl-eeprom.c
index c8afcd1ed2c..cebfb8fa5da 100644
--- a/drivers/net/wireless/iwlwifi/iwl-eeprom.c
+++ b/drivers/net/wireless/iwlwifi/iwl-eeprom.c
@@ -520,7 +520,7 @@ int iwl_init_channel_map(struct iwl_priv *priv)
520 flags & EEPROM_CHANNEL_RADAR)) 520 flags & EEPROM_CHANNEL_RADAR))
521 ? "" : "not "); 521 ? "" : "not ");
522 522
523 /* Set the user_txpower_limit to the highest power 523 /* Set the tx_power_user_lmt to the highest power
524 * supported by any channel */ 524 * supported by any channel */
525 if (eeprom_ch_info[ch].max_power_avg > 525 if (eeprom_ch_info[ch].max_power_avg >
526 priv->tx_power_user_lmt) 526 priv->tx_power_user_lmt)
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 9df3eef10c2..0301df58148 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -3949,11 +3949,11 @@ static int iwl3945_init_channel_map(struct iwl_priv *priv)
3949 flags & EEPROM_CHANNEL_RADAR)) 3949 flags & EEPROM_CHANNEL_RADAR))
3950 ? "" : "not "); 3950 ? "" : "not ");
3951 3951
3952 /* Set the user_txpower_limit to the highest power 3952 /* Set the tx_power_user_lmt to the highest power
3953 * supported by any channel */ 3953 * supported by any channel */
3954 if (eeprom_ch_info[ch].max_power_avg > 3954 if (eeprom_ch_info[ch].max_power_avg >
3955 priv->user_txpower_limit) 3955 priv->tx_power_user_lmt)
3956 priv->user_txpower_limit = 3956 priv->tx_power_user_lmt =
3957 eeprom_ch_info[ch].max_power_avg; 3957 eeprom_ch_info[ch].max_power_avg;
3958 3958
3959 ch_info++; 3959 ch_info++;
@@ -4228,8 +4228,8 @@ static int iwl3945_init_geos(struct iwl_priv *priv)
4228 if (ch->flags & EEPROM_CHANNEL_RADAR) 4228 if (ch->flags & EEPROM_CHANNEL_RADAR)
4229 geo_ch->flags |= IEEE80211_CHAN_RADAR; 4229 geo_ch->flags |= IEEE80211_CHAN_RADAR;
4230 4230
4231 if (ch->max_power_avg > priv->max_channel_txpower_limit) 4231 if (ch->max_power_avg > priv->tx_power_channel_lmt)
4232 priv->max_channel_txpower_limit = 4232 priv->tx_power_channel_lmt =
4233 ch->max_power_avg; 4233 ch->max_power_avg;
4234 } else { 4234 } else {
4235 geo_ch->flags |= IEEE80211_CHAN_DISABLED; 4235 geo_ch->flags |= IEEE80211_CHAN_DISABLED;
@@ -6307,7 +6307,6 @@ static void iwl3945_mac_reset_tsf(struct ieee80211_hw *hw)
6307 spin_lock_irqsave(&priv->lock, flags); 6307 spin_lock_irqsave(&priv->lock, flags);
6308 priv->assoc_id = 0; 6308 priv->assoc_id = 0;
6309 priv->assoc_capability = 0; 6309 priv->assoc_capability = 0;
6310 priv->call_post_assoc_from_beacon = 0;
6311 6310
6312 /* new association get rid of ibss beacon skb */ 6311 /* new association get rid of ibss beacon skb */
6313 if (priv->ibss_beacon) 6312 if (priv->ibss_beacon)
@@ -6451,7 +6450,7 @@ static ssize_t show_tx_power(struct device *d,
6451 struct device_attribute *attr, char *buf) 6450 struct device_attribute *attr, char *buf)
6452{ 6451{
6453 struct iwl_priv *priv = (struct iwl_priv *)d->driver_data; 6452 struct iwl_priv *priv = (struct iwl_priv *)d->driver_data;
6454 return sprintf(buf, "%d\n", priv->user_txpower_limit); 6453 return sprintf(buf, "%d\n", priv->tx_power_user_lmt);
6455} 6454}
6456 6455
6457static ssize_t store_tx_power(struct device *d, 6456static ssize_t store_tx_power(struct device *d,
@@ -6974,7 +6973,7 @@ static int iwl3945_init_drv(struct iwl_priv *priv)
6974 priv->rates_mask = IWL_RATES_MASK; 6973 priv->rates_mask = IWL_RATES_MASK;
6975 /* If power management is turned on, default to AC mode */ 6974 /* If power management is turned on, default to AC mode */
6976 priv->power_mode = IWL39_POWER_AC; 6975 priv->power_mode = IWL39_POWER_AC;
6977 priv->user_txpower_limit = IWL_DEFAULT_TX_POWER; 6976 priv->tx_power_user_lmt = IWL_DEFAULT_TX_POWER;
6978 6977
6979 ret = iwl3945_init_channel_map(priv); 6978 ret = iwl3945_init_channel_map(priv);
6980 if (ret) { 6979 if (ret) {