aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/mvm/rx.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-02-05 12:10:04 -0500
committerJohannes Berg <johannes.berg@intel.com>2013-02-18 14:17:38 -0500
commitd2931bbd5471c35f55856e5a4f001160df9951dc (patch)
tree5f8a07ab95fd46caa54df7417f718ee2a9aa0ef6 /drivers/net/wireless/iwlwifi/mvm/rx.c
parentb18bf9733c4ca4db6fdb692895fabc9d934b7303 (diff)
iwlwifi: mvm: program DTIM timings properly
For the firmware to know when DTIM beacons arrive we have to program the DTIM time in TSF and system time in the MAC context. Since mac80211 now tracks the different times (on demand), this becomes easy. Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/rx.c')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/rx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/rx.c b/drivers/net/wireless/iwlwifi/mvm/rx.c
index 3f3ce91ad5c2..3f40ab05bbd8 100644
--- a/drivers/net/wireless/iwlwifi/mvm/rx.c
+++ b/drivers/net/wireless/iwlwifi/mvm/rx.c
@@ -267,6 +267,7 @@ int iwl_mvm_rx_rx_mpdu(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb,
267 267
268 /* rx_status carries information about the packet to mac80211 */ 268 /* rx_status carries information about the packet to mac80211 */
269 rx_status.mactime = le64_to_cpu(phy_info->timestamp); 269 rx_status.mactime = le64_to_cpu(phy_info->timestamp);
270 rx_status.device_timestamp = le32_to_cpu(phy_info->system_timestamp);
270 rx_status.band = 271 rx_status.band =
271 (phy_info->phy_flags & cpu_to_le16(RX_RES_PHY_FLAGS_BAND_24)) ? 272 (phy_info->phy_flags & cpu_to_le16(RX_RES_PHY_FLAGS_BAND_24)) ?
272 IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ; 273 IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ;