Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3158102lqp; Tue, 26 Mar 2024 00:42:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVJJhV4LgMy7OVeDQka/gJJtrrasVYeuZFl1tsuAtw1OO5BvkF5uT2DTX/WXE4Z0EuyXYum7aLx3TiTh4w9WajVBYsalpjyKOvrI8hBDQ== X-Google-Smtp-Source: AGHT+IHHJZwzZQMRHIMsdrCat12uqVBH2KyGbbmchdsLpiGkNdP67T0Os+SIvDnvFltXmPshKwa3 X-Received: by 2002:a25:aea0:0:b0:dda:c5ca:c21b with SMTP id b32-20020a25aea0000000b00ddac5cac21bmr6067150ybj.37.1711438972802; Tue, 26 Mar 2024 00:42:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711438972; cv=pass; d=google.com; s=arc-20160816; b=EZKhPACjYRCzGP+TPAvAh4rtBbJQPmM2RVZ+R5ojJF+LScsMXH6ZCBbLXWdKYKB/Tf 6T3lMYfq6vNetq5slqjKKcjXHcZa+fuMlWHuaDwPsKZZUNNi08W6+cdVGEB4A8FBBjUL QZnTyl7fJUX4fPDjELuIGbaR8QDx3RHpdXSnVpdga2pHMI8Mttc7K53oGWbYrg+g/c2n td72jdJSFpGmQAHFFcA6Xd3QiKrCPPhVqeAaX2hQ9thzr2k5Ee1l/wjguAzdlahBqXCB GTlsRRQiEI9mmWR0quH1Ka1hcy6E+M2ys0+NzLzYbYufdu/BTnmPv2ikA8ZLy+dgfZ2V iIWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=zWGXBDXwY0D35LSKb6gY+Q2iYQkXHTQz8uERzaTlFrE=; fh=aWgcr6fXqgeYDN39zmFIxgaOgDj/xc7c+VAT5zhruYA=; b=Y5U45iWi/8TSuZIL9z8u+G+BOC/Bk4IakWxB7KFWeAj1CKLIdnGPVG9mUiN5NPadnc mBb/CEO2VANY5bwO1YLkB1h73a909OrD7wiC/VaIH1wuJiv7QbYF3coJiQuKWed/Ivvv ZgYeSEN4wbF0MnOm3gf++rCfQhJnrAr5ffUs/GcmCZxQUCnk5caYi4BM9ZH25tGxfuS2 F+G9PM6zzS7gQpKpMmUS8x8Giw+Phb4B9EB1u8w3QgZaCkAzfEa5YkenUD/DNPPQBWBh 5VcFHYF5w93i2OgOqexHbDHAr42isIie9a/uMCkppyUrH/uKZh+zLbWDcHT6pdfzR1Ky QloQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=J5e+BM70; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-5271-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5271-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id m15-20020a633f0f000000b005ce3cd4ed95si9709189pga.94.2024.03.26.00.42.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 00:42:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5271-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=J5e+BM70; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-5271-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5271-linux.lists.archive=gmail.com@vger.kernel.org" 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DEEBEB21B11 for ; Tue, 26 Mar 2024 07:42:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A87B130AEC; Tue, 26 Mar 2024 07:42:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="J5e+BM70" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 50D401804F for ; Tue, 26 Mar 2024 07:42:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711438961; cv=none; b=QpFoDeJjx14ZFw3vmeRPE+Q4QyOHbgaRCE/CTV+oYvhKjYaYyypDjeLO0ztSQs/DknbCrT0U4kEDdE/KkvAPrBve7qrHIwjuEYOckz1UpIfmj3g4bG4QO23UiwwlaO7X2ebUc//mYzYxcqjvsCe4w5rZusunjgVfiafrhiM7iN0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711438961; c=relaxed/simple; bh=zWGXBDXwY0D35LSKb6gY+Q2iYQkXHTQz8uERzaTlFrE=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=B9DfEv4EzUZsV8omm57H5jrUl0nLZ8Qq8hUMhmxW6q0eqpHlrNdxTWuR5RLLrlfrm1Ijin+opnK21zOt7QF9Jw7palODFESJ14N0D3DDH8D2WNoUKUeFX1WENKy1q5/oBeDZV5yxv3gx4ejugzOaBtkWgLQPENfOd4R584KZGWc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=J5e+BM70; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=zWGXBDXwY0D35LSKb6gY+Q2iYQkXHTQz8uERzaTlFrE=; t=1711438958; x=1712648558; b=J5e+BM708yaE/+gJGjE7Fd8+B3luhaquobXHjf3PG9H2YGb On2XiVepKDHkSKBudgJyXq91LKNhz3Cd7yqQionVGpan3PXny/LfMPVExuEiN3RZYDyyaVnvpXPy9 m9v0Zsnhi8miZ0EH3wgvWHBOhIfnJ+sMHOdJvOcWbZB4/pnwtysw3wEeVUoRoWPH1DuyOLnu50EHh QiAIE3Hid7SZYUY8FP8GRBr5MdYq2CbxnrH1iXZwC5Wvjpkt+yPV6t3gRxvconv9qt/zH9wNF1n7A 5RmKRWU8nQd0SYKXcMiXumWh9HU57QZsyeLBDZ0TruN2gj7f6O/gJSKEFwI1oF8Q==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1rp1S7-0000000FXmQ-0gPX; Tue, 26 Mar 2024 08:42:35 +0100 Message-ID: <5576f8160e7d4b707fe2dc3681721cb49dfeec5d.camel@sipsolutions.net> Subject: Re: [PATCH] wifi: mac80211: validate link status before deciding on off channel Tx From: Johannes Berg To: Aditya Kumar Singh Cc: linux-wireless@vger.kernel.org, Sriram R Date: Tue, 26 Mar 2024 08:42:34 +0100 In-Reply-To: References: <20240312154620.242773-1-quic_adisi@quicinc.com> <2c8338a29d3c42ebbf1fd5efd348c14471fa5004.camel@sipsolutions.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-malware-bazaar: not-scanned On Tue, 2024-03-26 at 11:27 +0530, Aditya Kumar Singh wrote: > On 3/26/24 09:58, Aditya Kumar Singh wrote: > > > Can you fix > > > that too? And if you fix that ... yeah we probably still should have > > > this patch but ... _without_ this: > > >=20 > >=20 > > Sure let me try to fix that as well. So here's what Im planning - > > 1. Separate the ether_addr changes into a separate independent patch. > > 2. Patch series to fix the active flag handling at link level. >=20 > Upon checking further, I see - >=20 > If we fix the setting of the flag only when first link comes up and=20 > reset it only when last link is removed, then probably there is no need= =20 > to add separate handler - ieee80211_is_link_bss_active() to check if=20 > any one link is active or not. >=20 > FWIW, the purpose of the new function introduced is to check if at least= =20 > one of the link is active. And now if the flag is set, this ultimately= =20 > means that one link is at least active. So we do not need to go and=20 > check in each link again right? >=20 Yes, which is why I even noticed the whole mess with 'active'. johannes