Commit ead65aa2 authored by Johannes Berg's avatar Johannes Berg
Browse files

wifi: iwlwifi: mvm: send time sync only if needed



If there's no peer configured then there's no point in sending
the command down to the firmware with an invalid peer address.

Fixes: cf85123a ("wifi: iwlwifi: mvm: support enabling and disabling HW timestamping")
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarGregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230531194630.0fb9f81f1852.Idcc41b67d1fbb421e5ed9bac2177b948b7b4d1c9@changeid


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent fccf5ff1
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -1725,6 +1725,8 @@ int iwl_mvm_up(struct iwl_mvm *mvm)

	if (test_bit(IWL_MVM_STATUS_IN_HW_RESTART, &mvm->status)) {
		iwl_mvm_send_recovery_cmd(mvm, ERROR_RECOVERY_UPDATE_DB);

		if (mvm->time_sync.active)
			iwl_mvm_time_sync_config(mvm, mvm->time_sync.peer_addr,
						 IWL_TIME_SYNC_PROTOCOL_TM |
						 IWL_TIME_SYNC_PROTOCOL_FTM);