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/iwl3945-base.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/iwl3945-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 1b3a1ba4ed9..a825092fff9 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -753,7 +753,7 @@ static int iwl3945_get_measurement(struct iwl_priv *priv, | |||
753 | if (iwl_is_associated(priv)) | 753 | if (iwl_is_associated(priv)) |
754 | add_time = | 754 | add_time = |
755 | iwl3945_usecs_to_beacons( | 755 | iwl3945_usecs_to_beacons( |
756 | le64_to_cpu(params->start_time) - priv->last_tsf, | 756 | le64_to_cpu(params->start_time) - priv->_3945.last_tsf, |
757 | le16_to_cpu(priv->rxon_timing.beacon_interval)); | 757 | le16_to_cpu(priv->rxon_timing.beacon_interval)); |
758 | 758 | ||
759 | memset(&spectrum, 0, sizeof(spectrum)); | 759 | memset(&spectrum, 0, sizeof(spectrum)); |
@@ -767,7 +767,7 @@ static int iwl3945_get_measurement(struct iwl_priv *priv, | |||
767 | 767 | ||
768 | if (iwl_is_associated(priv)) | 768 | if (iwl_is_associated(priv)) |
769 | spectrum.start_time = | 769 | spectrum.start_time = |
770 | iwl3945_add_beacon_time(priv->last_beacon_time, | 770 | iwl3945_add_beacon_time(priv->_3945.last_beacon_time, |
771 | add_time, | 771 | add_time, |
772 | le16_to_cpu(priv->rxon_timing.beacon_interval)); | 772 | le16_to_cpu(priv->rxon_timing.beacon_interval)); |
773 | else | 773 | else |
@@ -3590,7 +3590,7 @@ static ssize_t store_measurement(struct device *d, | |||
3590 | struct iwl_priv *priv = dev_get_drvdata(d); | 3590 | struct iwl_priv *priv = dev_get_drvdata(d); |
3591 | struct ieee80211_measurement_params params = { | 3591 | struct ieee80211_measurement_params params = { |
3592 | .channel = le16_to_cpu(priv->active_rxon.channel), | 3592 | .channel = le16_to_cpu(priv->active_rxon.channel), |
3593 | .start_time = cpu_to_le64(priv->last_tsf), | 3593 | .start_time = cpu_to_le64(priv->_3945.last_tsf), |
3594 | .duration = cpu_to_le16(1), | 3594 | .duration = cpu_to_le16(1), |
3595 | }; | 3595 | }; |
3596 | u8 type = IWL_MEASURE_BASIC; | 3596 | u8 type = IWL_MEASURE_BASIC; |