Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3614733pxb; Mon, 24 Jan 2022 13:33:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJxyB/6aUdkQRK5d+pZWBeKB3N5WBSDd+0MkoUbIQwxIF/ValAACC3Wk9LOqqIy6pkhBAIRl X-Received: by 2002:a17:90b:4acb:: with SMTP id mh11mr288653pjb.76.1643060039598; Mon, 24 Jan 2022 13:33:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643060039; cv=none; d=google.com; s=arc-20160816; b=rOSpX5bG+96TcTMh1ImElcYwrpbSlBeYMzJUiWAwjMbGOz36CS0YSpJu8DMjdkfsSK BxeGQK6PdAFOg3595un9S1HueMKiUwf+0ofdblSFAHcaAntHcAjW6gXAcFdgHY130skS 7OmdZoEtLFfNA1Hvk+QcN6V6UYg2phca13rdA6ZwOAA1S9wdWVfqRMqr7xs21EMQe5wg w8uS4axJIL3TFlVlV8YS+t6eUBKaKABpIqD8rY9U8bnzEdPRySmvaUmHXBS8FO0C5vvA C9u9p5U1hgA6twZDs6tH77VfEsUtn+2Dm1btmG/pwvsS7J/QQl45fByQlgfUjwA5V+bN UuaQ== 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=GDL/iPkrNPoKcJEBfwpI3zpkMXj5Uu9HUyjDUnIk0tY=; b=myumQjKziYRiTwC+S/8tfMzL1bH2KiGFo9K1kaNRy3wccYC4Lh/6j2wRloVFKEZXxU Uyl2C5xe6qnjKgdeg21y4gxFDuEFkcFTpeTLrl5CXGCk38ZXkoXvED2kbsMYkJCmwMjL KJ4PFOBp/Ip6zIhhCsGfODcHXw1re8F8IhKX0Ph0IlZRLc+36wBQ6m47lGli86L6VEHv hEn7HD/w7nL96kl0PslzmHGBjgstuYjI8H8AxLpunJmh5pdZcOkldRNE8mdV8eqXV1xU dSwPAF583zzetKdCM7ODeJ+ZLGfX43NYX8Q83M1NS3wXRqrpDjl3Ql5redIJJ6S6zIAN sttg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=g0aRYcN5; 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 on12si462552pjb.12.2022.01.24.13.33.45; Mon, 24 Jan 2022 13:33:59 -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=g0aRYcN5; 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 S1446670AbiAXVJC (ORCPT + 99 others); Mon, 24 Jan 2022 16:09:02 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:40992 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1390629AbiAXUp6 (ORCPT ); Mon, 24 Jan 2022 15:45:58 -0500 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 64DCF60B03; Mon, 24 Jan 2022 20:45:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46FDAC340E7; Mon, 24 Jan 2022 20:45:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643057157; bh=MRBWIGMk4wvN4dvhXjTTqbKf5gDK4zMk09wxmZkr0Ws=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g0aRYcN5bxNkmhpxnz3UtL93IYTvL0Y/KW8OiDYIqduFB4HOlMfnEFvQesYPLMF9N PfRB7z71UAfZ4M/b1vPEEhaJTvvrK9+HwficIr+XAH8nd/0iNLoSZ94j0yjABhJ2N0 vGgCqV2UaOX0vbdR+ciPjAaD5xdn+Tt9GlKr2ZrY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ilan Peer , Luca Coelho Subject: [PATCH 5.15 687/846] iwlwifi: mvm: Increase the scan timeout guard to 30 seconds Date: Mon, 24 Jan 2022 19:43:24 +0100 Message-Id: <20220124184124.757325618@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@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 @@ -2487,7 +2487,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) {