diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-01-19 21:04:28 +0300 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-03-10 03:03:53 +0300 |
commit | e99f168c7cc2f78c07c23250fe933362847cb3e0 (patch) | |
tree | 7bde44ba2bbe267a6ea2a9219129c6d9bb3d6302 /drivers/net/wireless/iwlwifi/iwl-3945-rs.c | |
parent | a4c8b2a692601de0a7bcb032b69f806050944dff (diff) | |
download | linux-e99f168c7cc2f78c07c23250fe933362847cb3e0.tar.xz |
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) spin_unlock_irqrestore(&rs_sta->lock, flags); - rssi = priv->last_rx_rssi; + rssi = priv->_3945.last_rx_rssi; if (rssi == 0) rssi = IWL_MIN_RSSI_VAL; |