wifi: iwlmei: don't send nic info with invalid mac address
authorAvraham Stern <avraham.stern@intel.com>
Tue, 22 Aug 2023 07:33:19 +0000 (10:33 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 22 Aug 2023 11:19:53 +0000 (13:19 +0200)
commit6d2c360b4badf78fb778afe1f5b85196ff18383e
treec9b19a2f3e3ebb31b1191a77b86add36d9eeea59
parenta7d9ac48a6512acdb81bb3d1f55c7b30d9b9d1c0
wifi: iwlmei: don't send nic info with invalid mac address

In case the SAP connection is established before the interface is
added, the mac address is still not set. Don't send the nic info
SAP message in this case since it will result in sending an invalid
mac address. The nic info message will be sent with a valid mac
address when the interface is added.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230822103048.a49436bed387.I0ca88d72456e6e9f939bbc2e0c52ffb173fbc97e@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mei/main.c