Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4085933rdh; Tue, 28 Nov 2023 11:22:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IF+ZdnQ3D7P0Y5w3+9TrMtSA9DsNBhf59XK+zPBXnjYl+QbDs2o617YHBaDWN338nH9QJ92 X-Received: by 2002:a17:90b:4f4e:b0:285:b67b:f435 with SMTP id pj14-20020a17090b4f4e00b00285b67bf435mr9133790pjb.41.1701199352660; Tue, 28 Nov 2023 11:22:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701199352; cv=none; d=google.com; s=arc-20160816; b=cqRXqOoJqYiVwFPzC5q1r55UWNjmu06HoyXwk5AlQ3bTy1DNX27/r0bTWN5obBwwkm zQtcxvrPf9N+J3lKJiBZpIWaSGzNDZwfuXWWPvqRnSy9q1+PcpLeSsU1SO9kmzubc5LQ qBQNBT3oIFh8DnJuMZFDxhMiW97OmfZXurSm2Hnk4WCjoV/y7Byc3BXvy15cTuf0/k1k iDyFjSHtfpt0b7ujlaykOdvR36ncl9hrVjX3Fy+YH8rs14JgHqd57I3ZxIDDcUIWru+7 RWrlCHNlwtbb6IHl396z9Vdpm8seKjSZe2Tp85GEM1ELScBXxKpDjOeuE+NmXSJc4l0E 98lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=4cqVZWV6RE8i9nLlOrg74KF/NCWPLfwhhDpREzj45/0=; fh=XwhrcOa2XvQCrpFgIB6LfmqW6XC6AohXSgvbFj2WExc=; b=UfNYrT2TCcH6L5k3w0Yu+PdJ7nu28SpE1iUsCHPrI0OFiWKSzVhpsJ3Mutlb51Fhjy WQTI4qiER3i9paNqTz6AxJGt/B0kIya5PbqSbZ9yv4xoCEB2/euQuuvidNcQqZzULyba AFootCF0isAGA1vnr+iey3Jv436zEtQnEx3NhJuiW3s0cBHuqVZ4joR8ho+qmK+0IIO/ SCunNgPOnzNZqSwns994zRiOYneMPPxEtvrKHlWIz/EO182lX75dCfaSmpnnbsgBjZtF 33QVCXRp9EmWwgaMIv7VP+NA4rXISslJD2ZftxvMV0hTcA8yyAGyBc8zthvVKt4b8O3F Ddvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@galax.is header.s=default header.b=01m3OCgm; spf=pass (google.com: domain of linux-wireless+bounces-173-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-173-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=galax.is Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q6-20020a17090a7a8600b00280277d721dsi12748146pjf.83.2023.11.28.11.22.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 11:22:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-173-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@galax.is header.s=default header.b=01m3OCgm; spf=pass (google.com: domain of linux-wireless+bounces-173-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-173-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=galax.is Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 048C5282C48 for ; Tue, 28 Nov 2023 19:22:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0467246BB9; Tue, 28 Nov 2023 19:22:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=galax.is header.i=@galax.is header.b="01m3OCgm" X-Original-To: linux-wireless@vger.kernel.org X-Greylist: delayed 5672 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 28 Nov 2023 11:22:18 PST Received: from mail2.galax.is (ns2.galax.is [185.101.96.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDDAA10EC for ; Tue, 28 Nov 2023 11:22:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=galax.is; s=default; t=1701193663; bh=4cqVZWV6RE8i9nLlOrg74KF/NCWPLfwhhDpREzj45/0=; h=Date:From:Subject:To:Cc:References:In-Reply-To:From; b=01m3OCgm1kWlnXsYMYcqvIrtgczSEi+0zTs63l2lagFPC6OlsJa25KJllMyQBQqf7 EuGHSsQcJRnBVod9hESN/HRwodNDS10QWvpPmWPKOdMELCk/UKyBrQuxRWRNFmD0WY XfQEbvf0JVDgcVA2f8anhBKtb3OCGWMajU9ZXI8Krs62AwEpNkIi63NLLVGRzPd9Hy oQvfXKrxgAHPIKF9HoBrShiyUiDibyFNonr1jftbCRnJJkoMMbwxqGQR3b3ybZVC6/ 2mbB2LzAX0/Nioutyrw39VQs5017MtZINwWOZa4YWtdmzUWRErv58/ZaB55yHP60FF QvLmz/v17VJFw== Received: from [IPV6:2001:16b8:5704:e00:fd93:2166:5759:eabf] (unknown [IPv6:2001:16b8:5704:e00:fd93:2166:5759:eabf]) by mail2.galax.is (Postfix) with ESMTPSA id 5B81B1FF1E; Tue, 28 Nov 2023 18:47:43 +0100 (CET) Message-ID: <31cd6c6a-7c0d-4fe3-832d-603afe0125e9@galax.is> Date: Tue, 28 Nov 2023 18:47:42 +0100 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Michael Krause Subject: Re: [RFC PATCH] wifi: cfg80211: fix CQM for non-range use To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org References: <20231106231715.3a506ac2dadb.Ie774b85b9d4ff934a1236e77096cb9c6c9fe6561@changeid> Content-Language: de-LU, en-US In-Reply-To: <20231106231715.3a506ac2dadb.Ie774b85b9d4ff934a1236e77096cb9c6c9fe6561@changeid> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Dear Johannes, You are probably aware of this already, but I believe this patch is quite crucial as your earlier patch may have effectively broken some roaming scenarios using wpa_supplicant. The supplicant is using CQM to monitor for RSSI threshold changes (non-ranged) to switch between short (few seconds) and very long (1 *hour* in the default NetworkManager setting) background scan intervals. With a current lts kernel (6.1.63) on Arch I do not see RSSI change events at all and wpa_supplicant will almost never (1 hour timeout) scan for a better AP as long as the current AP is still in range. I applied your patch against 6.1.63 with some additional `goto unlock`s and it resolves the issue for me. I've been running the kernel for 2 days now. cheers, Michael