Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3577778pxb; Mon, 24 Jan 2022 12:39:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJxHmLqC7nSBvXScMma2rMda6h4Zg71PZ9ncLuJFJIBBs0W7PEGr8KLsoHJHEDDnqS2ooS3L X-Received: by 2002:a17:902:6b05:b0:14a:b331:d07b with SMTP id o5-20020a1709026b0500b0014ab331d07bmr16003014plk.172.1643056775633; Mon, 24 Jan 2022 12:39:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643056775; cv=none; d=google.com; s=arc-20160816; b=E5rASPHbiUryQO+B6QYJbZsssCojkq5xCtz7ooVIBh7fThQb6ohBlP6FApJzTK7Mql otk1wEkhNaXt3WCqfKSUEJE89rZWUGYjNLBS2wsgT2R9AKahqKWdo5mYeg6ksaYN+yaV WjS1ZLrjl9p5J8/Yj1Xx8qkczyrSLpidhCCAcyuVc7DRm7TEh9aAVMdHM7GIw2T63hiU U9SmHtZlU8U3HwttULnFsNUk4+E0nFN0z+vHZkOWtS2Rg38ox52qFxr391FyZReHaI9e cX6RIliRTd+R5CobZ9ZWrJ6zLUkCu8ca5btmO77lnVl8LTw9BOsF2nWV/COwwmzUeo8r AOpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=lXqulOYOdLfleB2Yku/Smwld5pSL0g9+HkFsnArDFTo=; b=IF+E6uF1H8HOrfcA8epnkqM1UA7xoVEg7jtwaRUP78y0fJUt6vQV+8wJIAxm8ZjT5D 7I5dakfyRZlmqAqxANTfis1OQaW7Ee/vR9jhttEMsgxHGk1DSwQM1oMmQyMEF4J44UPd GejMRkiqCQWf4v1VRKS/ytpuVSeW5kw2rAALOOPYVhWx520gRw3Jq13d39K97TJ9AIbN p3h6gYSN1p6myyaibwDzW8kJIh4TOUZE2xPEo7dwP/vDZsyUJ4+RLavRNRpApzu+3vXb gCMYuinbwoWtkVpyRSFJaPTh6gE1TyxO3dMaFuLz4Aop2WhoOl+rZ7glFxVwykHTTtC9 xc8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PVbwqyaF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nv2si350829pjb.47.2022.01.24.12.39.19; Mon, 24 Jan 2022 12:39:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PVbwqyaF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345448AbiAXTyX (ORCPT + 99 others); Mon, 24 Jan 2022 14:54:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348066AbiAXTnV (ORCPT ); Mon, 24 Jan 2022 14:43:21 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A845C094275; Mon, 24 Jan 2022 11:22:13 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3932360010; Mon, 24 Jan 2022 19:22:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10751C340E5; Mon, 24 Jan 2022 19:22:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643052132; bh=32f1GQzhq8P7rtzI6K3kbis7qu0LI7dysxm9i2zoPKc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PVbwqyaFY/1xleS8oZA+j2NPUDWO1mi4trrGWMSADy8e/wfj5xE86cB/pJS8DhghL +lQ5Oh3aYpyWn6FhR+zBOYBL5UwKMZSmih41VDdA3J7DQrGELYqUjk6RNw1EpsCbTy H60xCHosd904Uk10z4TCUeLDp9kusj8D76Cgx+Mw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ilan Peer , Luca Coelho Subject: [PATCH 4.19 199/239] iwlwifi: mvm: Increase the scan timeout guard to 30 seconds Date: Mon, 24 Jan 2022 19:43:57 +0100 Message-Id: <20220124183949.441382787@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183943.102762895@linuxfoundation.org> References: <20220124183943.102762895@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ilan Peer commit ced50f1133af12f7521bb777fcf4046ca908fb77 upstream. With the introduction of 6GHz channels the scan guard timeout should be adjusted to account for the following extreme case: - All 6GHz channels are scanned passively: 58 channels. - The scan is fragmented with the following parameters: 3 fragments, 95 TUs suspend time, 44 TUs maximal out of channel time. The above would result with scan time of more than 24 seconds. Thus, set the timeout to 30 seconds. Cc: stable@vger.kernel.org Signed-off-by: Ilan Peer Signed-off-by: Luca Coelho Link: https://lore.kernel.org/r/iwlwifi.20211210090244.3c851b93aef5.I346fa2e1d79220a6770496e773c6f87a2ad9e6c4@changeid Signed-off-by: Luca Coelho Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/intel/iwlwifi/mvm/scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/wireless/intel/iwlwifi/mvm/scan.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/scan.c @@ -1555,7 +1555,7 @@ static int iwl_mvm_check_running_scans(s return -EIO; } -#define SCAN_TIMEOUT 20000 +#define SCAN_TIMEOUT 30000 void iwl_mvm_scan_timeout_wk(struct work_struct *work) {