wifi: iwlwifi: mei: don't send SAP commands if AMT is disabled
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 30 Oct 2022 17:17:42 +0000 (19:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:10 +0000 (13:32 +0100)
commit9829f3a5ae4b657dbf4b337fb1cb2a74e1b1c263
treed831fd12dd7df2f3cd7d5c3eb512ce18d9868289
parent39138cee7ab9d2bc178daf266e58395d78a69c8c
wifi: iwlwifi: mei: don't send SAP commands if AMT is disabled

[ Upstream commit 95170a46b7dddbc3ac31b20ef2e8fa9d556d783d ]

We should not send any SAP command to CSME if AMT is disabled.

Reported-by: Toke Høiland-Jørgensen <toke@toke.dk>
Fixes: 2da4366f9e2c ("iwlwifi: mei: add the driver to allow cooperation with CSME")
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20221030191011.ea222d41c781.Ifc90ddc3e35187683ff7f59371d792b61c8854c8@changeid
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/mei/main.c