Skip to content

Commit a7d9ac4

Browse files
AviSternjmberg-intel
authored andcommitted
wifi: iwlmei: send driver down SAP message only if wiamt is enabled
When wiamt is disabled the driver up SAP message is not sent, so there is no need to send the driver down message as well. Signed-off-by: Avraham Stern <[email protected]> Signed-off-by: Gregory Greenman <[email protected]> Link: https://lore.kernel.org/r/20230822103048.100f41b84656.I583d3e18ea65793f53aa710af13e47f8af82b53d@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent 3243aee commit a7d9ac4

File tree

1 file changed

+3
-1
lines changed
  • drivers/net/wireless/intel/iwlwifi/mei

1 file changed

+3
-1
lines changed

drivers/net/wireless/intel/iwlwifi/mei/main.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1832,7 +1832,9 @@ void iwl_mei_unregister_complete(void)
18321832
struct iwl_mei *mei =
18331833
mei_cldev_get_drvdata(iwl_mei_global_cldev);
18341834

1835-
iwl_mei_send_sap_msg(mei->cldev, SAP_MSG_NOTIF_WIFIDR_DOWN);
1835+
if (mei->amt_enabled)
1836+
iwl_mei_send_sap_msg(mei->cldev,
1837+
SAP_MSG_NOTIF_WIFIDR_DOWN);
18361838
mei->got_ownership = false;
18371839
}
18381840

0 commit comments

Comments
 (0)