iwlwifi: mvm: set assoc_beacon_arrive_time
authorAvraham Stern <avraham.stern@intel.com>
Tue, 9 May 2017 13:40:01 +0000 (16:40 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 23 Jun 2017 09:08:34 +0000 (12:08 +0300)
When updating the mac context after association,
assoc_beacon_arrive_time is not being set, which causes the FW to
set a wrong TSF to the MAC.

Fix this by setting the assoc_beacon_arrive_time when updating the
mac context after association.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c

index 50a71da2e96e332cb56bf73c16ea5f3baea3f46a..f06751598fb8dbd7187d4f36286fc6518b3b4a8a 100644 (file)
@@ -846,6 +846,8 @@ static int iwl_mvm_mac_ctxt_cmd_sta(struct iwl_mvm *mvm,
                        cpu_to_le64(vif->bss_conf.sync_tsf + dtim_offs);
                ctxt_sta->dtim_time =
                        cpu_to_le32(vif->bss_conf.sync_device_ts + dtim_offs);
+               ctxt_sta->assoc_beacon_arrive_time =
+                       cpu_to_le32(vif->bss_conf.sync_device_ts);
 
                IWL_DEBUG_INFO(mvm, "DTIM TBTT is 0x%llx/0x%x, offset %d\n",
                               le64_to_cpu(ctxt_sta->dtim_tsf),