wifi: iwlwifi: mvm: send time sync only if needed
authorJohannes Berg <johannes.berg@intel.com>
Wed, 31 May 2023 16:50:06 +0000 (19:50 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 6 Jun 2023 11:40:47 +0000 (13:40 +0200)
commitead65aa2d5155728baec90f6404cd02618ef29d0
tree546ce398dea920e3d033fe403faaaed453290b8a
parentfccf5ff14e00b264c03467186e6055dcb9959475
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: cf85123a210f ("wifi: iwlwifi: mvm: support enabling and disabling HW timestamping")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230531194630.0fb9f81f1852.Idcc41b67d1fbb421e5ed9bac2177b948b7b4d1c9@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/fw.c