Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3122133lqp; Mon, 25 Mar 2024 22:57:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWznn2hEf5WVQLB4yN3N2Pevwzsa+pmhkVQpb2fdYHmCXFh4D6LSGjD5JuvHOqBjIy97jy8LA8qFrQgXoruD81Q+JQUSDawdhHJcQ4R1g== X-Google-Smtp-Source: AGHT+IFCGd53NoebVrRCV8QRiGZa4UHsOo/J9k39tLE4GSDMCOzigrMB0KyWkYODWo/PNYyOx9tl X-Received: by 2002:a50:9316:0:b0:56c:197a:76e2 with SMTP id m22-20020a509316000000b0056c197a76e2mr1218047eda.0.1711432661207; Mon, 25 Mar 2024 22:57:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711432661; cv=pass; d=google.com; s=arc-20160816; b=oefe5qXG5x4FwTxg+Kp8tuZFQX7HTaZFkINW763kQ3t5ILzI9OM9edMf+84TQYkLv6 BhWc8YVoNG8SC1PBZPLTZam4Abhx3NESZbNAvGDNRlVgDdakm0LuvPhpUEGpsnC19rCS c9E+Y3l/dohmcZ13wQJ45s9iaP+jLG+BJ3yro7IDIaSU4I+x2pjaS94tbWBSUpG5OeoN MVc/jD7qQBqjr8LU+bt6AopsJZa+j2K7OT0I2t4f5zkeusVsuNJRSDS+o4DrrNpvhxz5 bLWNU+mJfDj01zhoryWmwA6Eg8kOgDehUIv41a9oMtrMm1p1CDABMI3ZidZkYiMTXTLz j+Vw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=1uH8yNwQMtsDvtG2o4kpREeJyV6I+yIigZwEysXzY4E=; fh=NbDPQYAqfJMhqw9LS7tPxcjeBo2qexTX8Hv0QyUDuTw=; b=gF4RfZu9TdsAP+KHsswP4c9OBC/Tk+swzcBg14OAcAIp4+5Gd/ijuBxAShXF2lJOVE FQUkIJzyGcm9Hl2FsteTsXFjn5SGuJsL2N2przS592eClPxDveE5rWWV7Wfc4B9lRySz dJMdXgnQm47UsatSC6dWJKfpJXsLZdRsUbfrnYqsOR3nilNQMwHuuUHWJfmihwfnqzb7 iuHxbGJkcfhxnOKk5LtEeled04h+h6L8dT5SPT57Cps0ADudp7ijqZTMGU3/UBhhxuSf 4xRyasjSqMHqL7b5E2gPdO3VcsSjOf4mRgoeuNRp7IQmjn4MeMVo2S++/Wuh8ix0xtat knQg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=b3CCjwnq; 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-5268-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5268-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id c30-20020a50d65e000000b0056b47bb68desi3244987edj.479.2024.03.25.22.57.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 22:57:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5268-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=b3CCjwnq; 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-5268-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5268-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9163B1F3B8D4 for ; Tue, 26 Mar 2024 05:57:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E82D12AAE1; Tue, 26 Mar 2024 05:57:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="b3CCjwnq" 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 0CCF512AACA for ; Tue, 26 Mar 2024 05:57:31 +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=1711432653; cv=none; b=IOD72EmKMmxxNvu7mluuU54jCtAd+Zp3sn0NsSVQPGA6utcKZGuR6yLAptJY8pTy+PdtjI8xyJ/c9I+XxsUuxWdXB4nkQ1SlkP1T2ab0jCFRjiDtGa42X+j0SKxGx+D8qj0xWH9XYCWGMAhjOf8gWU/NZEJ7XcDGEXYrGm511/c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711432653; c=relaxed/simple; bh=c6W0IRBBefYYfAAgYv7znP/COx4nHoernumAtC0Pz5o=; h=Message-ID:Date:MIME-Version:Subject:From:To:CC:References: In-Reply-To:Content-Type; b=e1srgpmFvphAyanh06mr9CwNyK8gJvqW6dPMIJP2g/Y+QrcLSFD2qFS8JlLVLKpnitsRnAvDEP6Z4i6MK91/VcdV27JqYUvBW2Q6YwlGXOFRJkW6b6FZZMnMvyC1Mjq1vts0h7Rr+NKo466BUryHBAulFTVW1wHz+aq93ecZ8ms= 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=b3CCjwnq; 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 (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42Q5o2gF028482; Tue, 26 Mar 2024 05:57:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:from:to:cc:references :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=1uH8yNwQMtsDvtG2o4kpREeJyV6I+yIigZwEysXzY4E=; b=b3 CCjwnqKZSomR1HWY9RISCTCQj/88w0+G0VR/DWV6B6gtl7rt1ajqcCSBcjeKFcV1 5h29ZkZefNHdvPDvfBGZWY9ubvvvLO1eKgDWUYtuYqMw8OPKa2ddNEayKHWZwduL DnGftCSQye1wZcwVSIgnqmKap3mSQwZlXY6aydbdj0Zn3rweuIOD/SSEOhSwe/ZE ASDCZT2hyfMnB1UGZFYn9bNbXy2PSbmxIjhoAKOTMFYKnGEj7qEhpLxs6oCNyRN+ 2ILXyW9cxaYKeCBWd8yi5wMlxyf43Az1Dt9hEEXiTAxQqqMG7ChOD2WonDY68xU2 Lry2YKSjNyRwjJHFdIwA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x3rj2r0s3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 26 Mar 2024 05:57:26 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42Q5vPBX030689 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 26 Mar 2024 05:57:25 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; Mon, 25 Mar 2024 22:57:24 -0700 Message-ID: Date: Tue, 26 Mar 2024 11:27:20 +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 From: Aditya Kumar Singh To: Johannes Berg CC: , Sriram R References: <20240312154620.242773-1-quic_adisi@quicinc.com> <2c8338a29d3c42ebbf1fd5efd348c14471fa5004.camel@sipsolutions.net> In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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: huw2Txk9LDBOXTbQzYkF9yMZT3WdwKki X-Proofpoint-ORIG-GUID: huw2Txk9LDBOXTbQzYkF9yMZT3WdwKki 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_02,2024-03-21_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 impostorscore=0 suspectscore=0 clxscore=1015 phishscore=0 mlxlogscore=694 malwarescore=0 spamscore=0 priorityscore=1501 lowpriorityscore=0 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2403260037 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?