diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-01-19 13:04:28 -0500 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-03-09 19:03:53 -0500 |
commit | e99f168c7cc2f78c07c23250fe933362847cb3e0 (patch) | |
tree | 7bde44ba2bbe267a6ea2a9219129c6d9bb3d6302 /drivers/net/wireless/iwlwifi/iwl-3945-rs.c | |
parent | a4c8b2a692601de0a7bcb032b69f806050944dff (diff) |
iwlagn: remove write-only variables
Updating the variables last_rx_rssi, last_tsf
and last_beacon_time needs a lot of code but
they are not actually used in iwlagn (only in
3945) so we can move them to the 3945 specific
data.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-3945-rs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945-rs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945-rs.c b/drivers/net/wireless/iwlwifi/iwl-3945-rs.c index effdd3670da4..b588cb69536a 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945-rs.c | |||
@@ -946,7 +946,7 @@ void iwl3945_rate_scale_init(struct ieee80211_hw *hw, s32 sta_id) | |||
946 | 946 | ||
947 | spin_unlock_irqrestore(&rs_sta->lock, flags); | 947 | spin_unlock_irqrestore(&rs_sta->lock, flags); |
948 | 948 | ||
949 | rssi = priv->last_rx_rssi; | 949 | rssi = priv->_3945.last_rx_rssi; |
950 | if (rssi == 0) | 950 | if (rssi == 0) |
951 | rssi = IWL_MIN_RSSI_VAL; | 951 | rssi = IWL_MIN_RSSI_VAL; |
952 | 952 | ||