diff options
-rw-r--r-- | drivers/net/wireless/iwlegacy/common.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rxon.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00config.c | 2 | ||||
-rw-r--r-- | include/net/mac80211.h | 5 | ||||
-rw-r--r-- | net/mac80211/driver-trace.h | 2 | ||||
-rw-r--r-- | net/mac80211/mlme.c | 2 |
6 files changed, 8 insertions, 7 deletions
diff --git a/drivers/net/wireless/iwlegacy/common.c b/drivers/net/wireless/iwlegacy/common.c index b42052b47d8e..e5ac04739bcc 100644 --- a/drivers/net/wireless/iwlegacy/common.c +++ b/drivers/net/wireless/iwlegacy/common.c | |||
@@ -5355,7 +5355,7 @@ il_mac_bss_info_changed(struct ieee80211_hw *hw, struct ieee80211_vif *vif, | |||
5355 | if (changes & BSS_CHANGED_ASSOC) { | 5355 | if (changes & BSS_CHANGED_ASSOC) { |
5356 | D_MAC80211("ASSOC %d\n", bss_conf->assoc); | 5356 | D_MAC80211("ASSOC %d\n", bss_conf->assoc); |
5357 | if (bss_conf->assoc) { | 5357 | if (bss_conf->assoc) { |
5358 | il->timestamp = bss_conf->timestamp; | 5358 | il->timestamp = bss_conf->last_tsf; |
5359 | 5359 | ||
5360 | if (!il_is_rfkill(il)) | 5360 | if (!il_is_rfkill(il)) |
5361 | il->ops->post_associate(il); | 5361 | il->ops->post_associate(il); |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c b/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c index 36909077f994..2e1a31797a9e 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c | |||
@@ -822,7 +822,7 @@ void iwlagn_bss_info_changed(struct ieee80211_hw *hw, | |||
822 | 822 | ||
823 | if (changes & BSS_CHANGED_ASSOC) { | 823 | if (changes & BSS_CHANGED_ASSOC) { |
824 | if (bss_conf->assoc) { | 824 | if (bss_conf->assoc) { |
825 | priv->timestamp = bss_conf->timestamp; | 825 | priv->timestamp = bss_conf->last_tsf; |
826 | ctx->staging.filter_flags |= RXON_FILTER_ASSOC_MSK; | 826 | ctx->staging.filter_flags |= RXON_FILTER_ASSOC_MSK; |
827 | } else { | 827 | } else { |
828 | /* | 828 | /* |
diff --git a/drivers/net/wireless/rt2x00/rt2x00config.c b/drivers/net/wireless/rt2x00/rt2x00config.c index d7c0f86c9e43..293676bfa571 100644 --- a/drivers/net/wireless/rt2x00/rt2x00config.c +++ b/drivers/net/wireless/rt2x00/rt2x00config.c | |||
@@ -102,7 +102,7 @@ void rt2x00lib_config_erp(struct rt2x00_dev *rt2x00dev, | |||
102 | 102 | ||
103 | /* Update the AID, this is needed for dynamic PS support */ | 103 | /* Update the AID, this is needed for dynamic PS support */ |
104 | rt2x00dev->aid = bss_conf->assoc ? bss_conf->aid : 0; | 104 | rt2x00dev->aid = bss_conf->assoc ? bss_conf->aid : 0; |
105 | rt2x00dev->last_beacon = bss_conf->timestamp; | 105 | rt2x00dev->last_beacon = bss_conf->last_tsf; |
106 | 106 | ||
107 | /* Update global beacon interval time, this is needed for PS support */ | 107 | /* Update global beacon interval time, this is needed for PS support */ |
108 | rt2x00dev->beacon_int = bss_conf->beacon_int; | 108 | rt2x00dev->beacon_int = bss_conf->beacon_int; |
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 44e4dfcb5722..9a012be615ff 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -229,7 +229,8 @@ enum ieee80211_rssi_event { | |||
229 | * valid in station mode only while @assoc is true and if also | 229 | * valid in station mode only while @assoc is true and if also |
230 | * requested by %IEEE80211_HW_NEED_DTIM_PERIOD (cf. also hw conf | 230 | * requested by %IEEE80211_HW_NEED_DTIM_PERIOD (cf. also hw conf |
231 | * @ps_dtim_period) | 231 | * @ps_dtim_period) |
232 | * @timestamp: beacon timestamp | 232 | * @last_tsf: last beacon's/probe response's TSF timestamp (could be old |
233 | * as it may have been received during scanning long ago) | ||
233 | * @beacon_int: beacon interval | 234 | * @beacon_int: beacon interval |
234 | * @assoc_capability: capabilities taken from assoc resp | 235 | * @assoc_capability: capabilities taken from assoc resp |
235 | * @basic_rates: bitmap of basic rates, each bit stands for an | 236 | * @basic_rates: bitmap of basic rates, each bit stands for an |
@@ -276,7 +277,7 @@ struct ieee80211_bss_conf { | |||
276 | u8 dtim_period; | 277 | u8 dtim_period; |
277 | u16 beacon_int; | 278 | u16 beacon_int; |
278 | u16 assoc_capability; | 279 | u16 assoc_capability; |
279 | u64 timestamp; | 280 | u64 last_tsf; |
280 | u32 basic_rates; | 281 | u32 basic_rates; |
281 | int mcast_rate[IEEE80211_NUM_BANDS]; | 282 | int mcast_rate[IEEE80211_NUM_BANDS]; |
282 | u16 ht_operation_mode; | 283 | u16 ht_operation_mode; |
diff --git a/net/mac80211/driver-trace.h b/net/mac80211/driver-trace.h index 7034209ad3f4..21d6f5290a1c 100644 --- a/net/mac80211/driver-trace.h +++ b/net/mac80211/driver-trace.h | |||
@@ -296,7 +296,7 @@ TRACE_EVENT(drv_bss_info_changed, | |||
296 | __entry->dtimper = info->dtim_period; | 296 | __entry->dtimper = info->dtim_period; |
297 | __entry->bcnint = info->beacon_int; | 297 | __entry->bcnint = info->beacon_int; |
298 | __entry->assoc_cap = info->assoc_capability; | 298 | __entry->assoc_cap = info->assoc_capability; |
299 | __entry->timestamp = info->timestamp; | 299 | __entry->timestamp = info->last_tsf; |
300 | __entry->basic_rates = info->basic_rates; | 300 | __entry->basic_rates = info->basic_rates; |
301 | __entry->enable_beacon = info->enable_beacon; | 301 | __entry->enable_beacon = info->enable_beacon; |
302 | __entry->ht_operation_mode = info->ht_operation_mode; | 302 | __entry->ht_operation_mode = info->ht_operation_mode; |
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 39c13939008b..90d1db36cdef 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -1318,7 +1318,7 @@ static void ieee80211_set_associated(struct ieee80211_sub_if_data *sdata, | |||
1318 | bss_info_changed |= BSS_CHANGED_ASSOC; | 1318 | bss_info_changed |= BSS_CHANGED_ASSOC; |
1319 | /* set timing information */ | 1319 | /* set timing information */ |
1320 | bss_conf->beacon_int = cbss->beacon_interval; | 1320 | bss_conf->beacon_int = cbss->beacon_interval; |
1321 | bss_conf->timestamp = cbss->tsf; | 1321 | bss_conf->last_tsf = cbss->tsf; |
1322 | 1322 | ||
1323 | bss_info_changed |= BSS_CHANGED_BEACON_INT; | 1323 | bss_info_changed |= BSS_CHANGED_BEACON_INT; |
1324 | bss_info_changed |= ieee80211_handle_bss_capability(sdata, | 1324 | bss_info_changed |= ieee80211_handle_bss_capability(sdata, |