diff --git a/drivers/net/wireless/apple/centauri/centauri_wifi.c b/drivers/net/wireless/apple/centauri/centauri_wifi.c index 69b21b3d2adc4..bb8ff60fa866f 100644 --- a/drivers/net/wireless/apple/centauri/centauri_wifi.c +++ b/drivers/net/wireless/apple/centauri/centauri_wifi.c @@ -93,15 +93,6 @@ static bool station_link_addresses; module_param(station_link_addresses, bool, 0400); MODULE_PARM_DESC(station_link_addresses, "Diagnostic: use the netdev address for each firmware link in this single-link WPA2 client"); -/* - * Alpha's host-power and ACIPC sleep handshake, for a deep sleep. Without it the firmware never - * hears the host is going to sleep and aborts the deep sleep about a minute in; it runs through - * full deep sleeps and wakes on J813 and J815 (MacBook Air 13" and 15" M5). =0 skips it. - */ -static bool alpha_sleep_untested = true; -module_param(alpha_sleep_untested, bool, 0600); -MODULE_PARM_DESC(alpha_sleep_untested, "Alpha host-power and ACIPC sleep handshake (default 1)"); - struct centauri_rx_snapshot { __le32 version, count; struct { @@ -4942,8 +4933,13 @@ int centauri_wifi_suspend(struct centauri *c) struct centauri_wifi *wifi = c->wifi; int ret, restore; - /* Only for a deep sleep: across s2idle the firmware keeps running as before. */ - if (!wifi || !READ_ONCE(alpha_sleep_untested) || !pm_suspend_via_firmware()) + /* + * Alpha's host-power and ACIPC sleep handshake, only for a deep sleep: across s2idle the + * firmware keeps running as before. Without it the firmware never hears the host is going + * to sleep and aborts the deep sleep about a minute in; it runs through full deep sleeps + * and wakes on J813 and J815 (MacBook Air 13" and 15" M5). + */ + if (!wifi || !pm_suspend_via_firmware()) return 0; mutex_lock(&wifi->lock); if (wifi->transport_paused || wifi->connected || wifi->connecting || wifi->scan_request ||