Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3179399lqp; Tue, 26 Mar 2024 01:39:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXVY6Zbr9eXLrnLttwrk8IGHCn4nMczFMKbgSX7pfoMICkMOaekVDMgtWlbRDNziFcv44jdhIStVWw/+82W7uMvPcqqVF0HH6f9JAjoww== X-Google-Smtp-Source: AGHT+IF/TWuYt1+ctD4K9xKD4MHXRlCvxTghTWMr2z1NMkzd0GkvrZQmSgGxef3flmfoze7/fBBt X-Received: by 2002:a05:6830:60c:b0:6e6:9096:e09a with SMTP id w12-20020a056830060c00b006e69096e09amr10744698oti.11.1711442354841; Tue, 26 Mar 2024 01:39:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711442354; cv=pass; d=google.com; s=arc-20160816; b=FaMmkxeOsXNvXUwxPNH0Io5+4Zu50Ml4PvV60paVE8JHcK/PMDtlqu9meHicpUdXMJ 8f8w5uVgvZML+i4V4sCNQOiOZee63XL+X0mYXaE4M3D/HvIQYh3uyhuwtByXoPMPWyUU uqosvwOnt45JIeU6FRWRmDy2MEIwUsoWzPP9z9qn6UyzJbKFaHkGUq5zmQhZrHi4KQW1 dKhTRfp+Irpr2ydpqj0iMks8jnuBrD5N8Zr6sIqARaKmWRXAXIqRpH50n98kvcZycyRv ALYvBxvvovseiGxe37ppcrbrd5w37lLBNaJndGKa90YzoxRW4OfiVAsTRcSXK4qPcAvT /oYw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=Nrr9mmSaGKEJA5RtRlryQ4/Y77pFqg8xcjJjYBT+KWs=; fh=NbDPQYAqfJMhqw9LS7tPxcjeBo2qexTX8Hv0QyUDuTw=; b=D5l0mN8M4IXCJ1hgJdlaGHByM48FoxTlQ7MVua8Q+Urn00PhgNCgVKj7604G0Dp2ip nz0zc7kD4CQFGSWOcErKhnHJCcYCymSo/SKOfdi13ewCXuZJs+dNE6N3ieoosvCXWSZh GRYtFGGEAuNIVG4PdPWBiGSnp2avz+g+47ekt1VdJnyizxPCL4MhKBPMnuf4R6lZfRLA mpqtq/Ax1Yc3jI+S0AnRumC/+jhLHvq5oygwTk4LuRVztOZNz+6RUqxwdg4oNcKj7GFs ai077fZxDRKAwZwTM0KXIhaRQnPlIdzX1ckoUDfvp3baKJQQZ+XMXj7QLpIpiLjAusG7 pW0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Vhn0uVGT; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-5274-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5274-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id z10-20020a63c04a000000b005eb04490853si9063811pgi.742.2024.03.26.01.39.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 01:39:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5274-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Vhn0uVGT; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-5274-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5274-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 D0836B217B6 for ; Tue, 26 Mar 2024 08:39:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5214F134C4; Tue, 26 Mar 2024 08:39:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Vhn0uVGT" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 ADA5A134A8 for ; Tue, 26 Mar 2024 08:39:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711442347; cv=none; b=Y6s6Dy+0mm9KR+Mt6qWyx0tULRxs+rkSuvW7GjXsvpMeDv8yYg6OMX+wMXEjJ8nMLq7vN2UCQsaJVMGWBLkyvUvEwXo3P3FMlhMsTLVI4P1SDxwZnb8D1RweeCB5wMjtk54gsUGsnWvgSlf9fGkh/ClYKIXQfs2k+etFJFsslf8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711442347; c=relaxed/simple; bh=9/8QmuTuktPRnY9eZHx3iYXVrtDt4L7d6NyrT1Nw5hU=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=c41iBniw/bEPoYh0BeRtcEWq9Sn/EDcX1CGyioVcW/XZSaZKM7EqAOX4FOH6ZwguS/ZmblpkqwQ1v/SFjt12y0D/FAGp1RJbf7qjbHM4/wtCDGt+C/KpxYCH9qUXL4ULede4Sw6a2Ihk0LGfdee2y/pah5YgHysnH3Bj0bBaL8c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=Vhn0uVGT; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42Q8TNah012334; Tue, 26 Mar 2024 08:39:01 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=Nrr9mmSaGKEJA5RtRlryQ4/Y77pFqg8xcjJjYBT+KWs=; b=Vh n0uVGT6asTZacFodHKLQIRM4jhlmv2EoeteUOeehKOmcz7RAQ0u4l4DVjUDJXw23 vJuJ3MpYaLaZD8pplT0xmv1mcspBpcm5GM+Wk1mrw5IGJy+4eBE8luoVX/9MgP/Y VsiolJ/f7MfYne6E78+EeJjbKtkTX3YkYYFATICiEkBV9zth4eTR88Z2t390dR3J lbcfnGUBXp0FzQBMG1KrSmSXC08dANDbS1anIwngyMvqp4o0/R4FTU0u8xVT2ml/ IXbEkdkCuwhbb3iKBTv0MxHCbd1Bd0F45KmCPz8lSk12Pknr3gqgknATxzOosyCY lPVQHGoKzPNzV6MOIA5Q== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x3tvy813h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 26 Mar 2024 08:39:01 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42Q8d0A6022846 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 26 Mar 2024 08:39:00 GMT Received: from [10.201.207.136] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 26 Mar 2024 01:38:59 -0700 Message-ID: <5d306110-ec5d-442e-9193-462176de3a2a@quicinc.com> Date: Tue, 26 Mar 2024 14:08:55 +0530 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] wifi: mac80211: validate link status before deciding on off channel Tx Content-Language: en-US To: Johannes Berg CC: , Sriram R References: <20240312154620.242773-1-quic_adisi@quicinc.com> <2c8338a29d3c42ebbf1fd5efd348c14471fa5004.camel@sipsolutions.net> <5576f8160e7d4b707fe2dc3681721cb49dfeec5d.camel@sipsolutions.net> From: Aditya Kumar Singh In-Reply-To: <5576f8160e7d4b707fe2dc3681721cb49dfeec5d.camel@sipsolutions.net> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: PLznc4pSOo0vPyRNEIvoBThEVfX0MdWE X-Proofpoint-ORIG-GUID: PLznc4pSOo0vPyRNEIvoBThEVfX0MdWE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-26_04,2024-03-21_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 mlxlogscore=585 clxscore=1015 priorityscore=1501 adultscore=0 suspectscore=0 lowpriorityscore=0 phishscore=0 bulkscore=0 malwarescore=0 spamscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2403260059 On 3/26/24 13:12, Johannes Berg wrote: > 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: >>>> >>> >>> 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. >> >> Upon checking further, I see - >> >> If we fix the setting of the flag only when first link comes up and >> reset it only when last link is removed, then probably there is no need >> to add separate handler - ieee80211_is_link_bss_active() to check if >> any one link is active or not. >> >> FWIW, the purpose of the new function introduced is to check if at least >> one of the link is active. And now if the flag is set, this ultimately >> means that one link is at least active. So we do not need to go and >> check in each link again right? >> > Yes, which is why I even noticed the whole mess with 'active'. > > johannes Sure, then I will just try to fix the sdata->bss->active flag usage and send a patch soon.