wifi: iwlwifi: iwlmei: report disconnection as temporary
authorAvraham Stern <avraham.stern@intel.com>
Wed, 2 Nov 2022 14:59:57 +0000 (16:59 +0200)
committerGregory Greenman <gregory.greenman@intel.com>
Thu, 10 Nov 2022 11:27:07 +0000 (13:27 +0200)
Disconnections are reported to CSME as long link down. As a result,
CSME will take ownership right away so the host doesn't have a
chance to reconnect, although in many cases it could quickly reconnect
and preserve host connectivity.
Report disconnections as temporary so CSME will give the host some
grace time to reconnect.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20221102165239.401665457652.Ie5de9eacc5a51cf0965a08c202caf3fbc3a91ec4@changeid
drivers/net/wireless/intel/iwlwifi/mei/main.c

index ef5d2938deb56015cb7117919ade713c0cf1062d..9a49361cd059af122ac777b037fe9e8da9e92053 100644 (file)
@@ -1535,7 +1535,7 @@ void iwl_mei_host_disassociated(void)
        struct iwl_sap_notif_host_link_down msg = {
                .hdr.type = cpu_to_le16(SAP_MSG_NOTIF_HOST_LINK_DOWN),
                .hdr.len = cpu_to_le16(sizeof(msg) - sizeof(msg.hdr)),
-               .type = HOST_LINK_DOWN_TYPE_LONG,
+               .type = HOST_LINK_DOWN_TYPE_TEMPORARY,
        };
 
        mutex_lock(&iwl_mei_mutex);