aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorWinkler, Tomas <tomas.winkler@intel.com>2008-12-18 21:37:03 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 15:58:52 -0500
commitb936d9be05d66172b2c035eaca002a134f078c64 (patch)
tree50af2a51bab74b30eec7fc7a4e76cdcd7f0745ac /drivers/net/wireless
parent69d00d2722e7478e590e40b1a8b791b4aeea195f (diff)
iwlwifi: 3945 remove current_rate from station entry.
This patch removes current_rate from station_entry it was write only variable Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Acked-by: Samuel Ortiz <sameo@linux.intel.com> 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>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945.c13
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945.h7
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c2
3 files changed, 0 insertions, 22 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c
index 5a316d501c32..c16640ddd3d6 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945.c
+++ b/drivers/net/wireless/iwlwifi/iwl-3945.c
@@ -831,7 +831,6 @@ void iwl3945_hw_build_tx_cmd_rate(struct iwl3945_priv *priv,
831 struct ieee80211_tx_info *info, 831 struct ieee80211_tx_info *info,
832 struct ieee80211_hdr *hdr, int sta_id, int tx_id) 832 struct ieee80211_hdr *hdr, int sta_id, int tx_id)
833{ 833{
834 unsigned long flags;
835 u16 hw_value = ieee80211_get_tx_rate(priv->hw, info)->hw_value; 834 u16 hw_value = ieee80211_get_tx_rate(priv->hw, info)->hw_value;
836 u16 rate_index = min(hw_value & 0xffff, IWL_RATE_COUNT - 1); 835 u16 rate_index = min(hw_value & 0xffff, IWL_RATE_COUNT - 1);
837 u16 rate_mask; 836 u16 rate_mask;
@@ -848,17 +847,6 @@ void iwl3945_hw_build_tx_cmd_rate(struct iwl3945_priv *priv,
848 * in this running context */ 847 * in this running context */
849 rate_mask = IWL_RATES_MASK; 848 rate_mask = IWL_RATES_MASK;
850 849
851 spin_lock_irqsave(&priv->sta_lock, flags);
852
853 priv->stations[sta_id].current_rate.rate_n_flags = rate;
854
855 if ((priv->iw_mode == NL80211_IFTYPE_ADHOC) &&
856 (sta_id != priv->hw_setting.bcast_sta_id) &&
857 (sta_id != IWL_MULTICAST_ID))
858 priv->stations[IWL_STA_ID].current_rate.rate_n_flags = rate;
859
860 spin_unlock_irqrestore(&priv->sta_lock, flags);
861
862 if (tx_id >= IWL_CMD_QUEUE_NUM) 850 if (tx_id >= IWL_CMD_QUEUE_NUM)
863 rts_retry_limit = 3; 851 rts_retry_limit = 3;
864 else 852 else
@@ -921,7 +909,6 @@ u8 iwl3945_sync_sta(struct iwl3945_priv *priv, int sta_id, u16 tx_rate, u8 flags
921 909
922 station->sta.sta.modify_mask = STA_MODIFY_TX_RATE_MSK; 910 station->sta.sta.modify_mask = STA_MODIFY_TX_RATE_MSK;
923 station->sta.rate_n_flags = cpu_to_le16(tx_rate); 911 station->sta.rate_n_flags = cpu_to_le16(tx_rate);
924 station->current_rate.rate_n_flags = tx_rate;
925 station->sta.mode = STA_CONTROL_MODIFY_MSK; 912 station->sta.mode = STA_CONTROL_MODIFY_MSK;
926 913
927 spin_unlock_irqrestore(&priv->sta_lock, flags_spin); 914 spin_unlock_irqrestore(&priv->sta_lock, flags_spin);
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.h b/drivers/net/wireless/iwlwifi/iwl-3945.h
index d8f40bdb3167..d07aafe5ccc5 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945.h
+++ b/drivers/net/wireless/iwlwifi/iwl-3945.h
@@ -481,13 +481,6 @@ struct iwl3945_qos_info {
481struct iwl3945_station_entry { 481struct iwl3945_station_entry {
482 struct iwl3945_addsta_cmd sta; 482 struct iwl3945_addsta_cmd sta;
483 struct iwl3945_tid_data tid[MAX_TID_COUNT]; 483 struct iwl3945_tid_data tid[MAX_TID_COUNT];
484 union {
485 struct {
486 u8 rate;
487 u8 flags;
488 } s;
489 u16 rate_n_flags;
490 } current_rate;
491 u8 used; 484 u8 used;
492 u8 ps_status; 485 u8 ps_status;
493 struct iwl3945_hw_key keyinfo; 486 struct iwl3945_hw_key keyinfo;
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 541cdbe8172f..d5fb65e54343 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -462,8 +462,6 @@ u8 iwl3945_add_station(struct iwl3945_priv *priv, const u8 *addr, int is_ap, u8
462 /* Turn on both antennas for the station... */ 462 /* Turn on both antennas for the station... */
463 station->sta.rate_n_flags = 463 station->sta.rate_n_flags =
464 iwl3945_hw_set_rate_n_flags(rate, RATE_MCS_ANT_AB_MSK); 464 iwl3945_hw_set_rate_n_flags(rate, RATE_MCS_ANT_AB_MSK);
465 station->current_rate.rate_n_flags =
466 le16_to_cpu(station->sta.rate_n_flags);
467 465
468 spin_unlock_irqrestore(&priv->sta_lock, flags_spin); 466 spin_unlock_irqrestore(&priv->sta_lock, flags_spin);
469 467