Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp735369rdb; Mon, 29 Jan 2024 17:31:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IE6hQkL2T/yVRIlrr6il5urO1G3LCEgMGotUMMeN/Ao1c/UzR7hYypmhV9SNxtEaGySndJH X-Received: by 2002:a05:6214:2624:b0:686:c31:d8b1 with SMTP id gv4-20020a056214262400b006860c31d8b1mr8744004qvb.17.1706578315033; Mon, 29 Jan 2024 17:31:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706578315; cv=pass; d=google.com; s=arc-20160816; b=TCUKDc2Hk3bY/aHvf5FmssL+nY11ZQubZ/AYQVdKWF65OHYrmKBj/QgZP1HbCk2kBp x6STQcuQx4IcgsC/8RUk+/ZvDd5YYUhTt4+VxeVAfmuIYeEp5p3YJvfU47H8HgRk94th ArbIHkeY9fpnKSWultSD8446d7Kcq0jlB3ox0gL5lhxud9tTK0jJGT3yyqTUGJbgs9Vk 2qD266BmokPIRlrFWX62G0hBbC5H+ZzQvqrZY8P9U3bfnLCCUuOh+xFhHM10sUlOJGOi +hZWmLIjwjK5R8RhzcGfcjYNdiX36pq62r4QX+TjfYBYsI4o8zdHZGVRHU4dhw/2jEOz Kppw== 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=GDlw/gkGl3R5OVi7kN5/GUczuDr35Cf9ZLqtxFqQJ3g=; fh=Y0beRTBIu+zmUkzUNTcr0D35RLHhoPyszGLCDfSGIx0=; b=n8EZYnQsLxAOL0ZajEI/jhhL9ZwsB+1ETw8VNp1ZRbdE/IPvWpTOKaFwtlBDNaZDRx wmBOFjsx27SXHK3cBtQS76hrBQtfR08PslX5uC/eoMS+NxxwKWXhTCxK0Y0wWuUKfOvk Nvj2x1j7w/2By1qAbDPjebEZB/ijuxEJP1AkE3AEzSNKE2NPuUz5wnS48SkGlj2VI/s7 MOe8N+AhQ9tXaO665jbBzh+eprvdVhzG3Cp/4StiZVByzqVEsqHnfw2Sc2urNRj8JQzD oPWIk+FN8khubqSPOdCeDYt2mNM7xZbuLKuY7ZdgsmYAs/uGyL5ulgmQEwTafYWfonCD ldvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=nK3KfdBG; 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-2745-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2745-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com X-Forwarded-Encrypted: i=1; AJvYcCVSiIuhy7ntrxfgDCfupYoENaNP5xcKi7sCLPOTCB4TjfSl0AWBBmtvC4rfC4uVXmBIPmG/XktrC99kj28BOANtNU8fk63J58ADUpuhjg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 15-20020a0562140d0f00b0068c48fd444fsi4423873qvh.558.2024.01.29.17.31.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 17:31:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2745-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=nK3KfdBG; 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-2745-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2745-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A39B41C226B8 for ; Tue, 30 Jan 2024 01:31:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70CEF36B1B; Tue, 30 Jan 2024 01:31:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="nK3KfdBG" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 B83AC36AF1 for ; Tue, 30 Jan 2024 01:31:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706578275; cv=none; b=BYOdFO705udpeB7nHh3XLO82hKeI6DcMIo7pffyrquFvZKYwGfAtPByKkB1q7ANh3kTGbGsyUTn5tedgnqlYwzIEkvgDAQW4JwF94NpUpSjf5/iNTGQVtjbFU2JsEyBDmXhW0pzrthxqDisf+V927yMPYqyBhilmzNYx9sKjRpM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706578275; c=relaxed/simple; bh=Rht+C4VjzmqUV8Y787OWacrLg9mh4XUEtSOIrAcn8dg=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=U+DRHCHca7v+ofoAKds7jnxEmjDbym5/d5LiWc1osf3I1X+VNYaAqRClWJKI/9HoMIH+GI1ksfeGhivZPis/EzAkaqCOF5b59QXCcG7LlWpmX73pOUzc5InraefmHr+bnkj/hWT99Y7RZiRbhGYUdydmy6CFrqNohDW7ggt2y9I= 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=nK3KfdBG; arc=none smtp.client-ip=205.220.180.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 (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40U0eUhH018679; Tue, 30 Jan 2024 01:31:09 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=GDlw/gkGl3R5OVi7kN5/GUczuDr35Cf9ZLqtxFqQJ3g=; b=nK 3KfdBGuBinWSuB77hrSIuSaNmNJeXN01Qf7hy1jv8EVaFvQEKf6XyeUpP8X4hh64 vp9W1OenDA8m+4xdhBBEWzYE3Mki6CeGdwt7LPkD6hB7DU0JmQzQPgv/KUS4XRJ/ j8h7yTW8+Vnnb4yRn3nwFO/QkjH6e5Sr30FsbCU7JYrJjlQ/Xz/m1HpoMWU69cqe Evf9ukPNi5DQ6FFmV5pWKXKdd3p5WdtuegUI1I9IeSiJYHeSH6gDxuBHDALKeZJ5 sySRSD0Zp4x25pWUbDfx0ExHEXPnpgWu2VruwRWFO3uqjtwstnq8IGjno+TIgTIf 5E7g0h2E9+G+QTJQ2u+g== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vxhjrrp9r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 Jan 2024 01:31:09 +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 40U1V8ww007861 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 Jan 2024 01:31:08 GMT Received: from [10.110.47.232] (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, 29 Jan 2024 17:31:08 -0800 Message-ID: Date: Mon, 29 Jan 2024 17:31:07 -0800 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 v6 5/5] wifi: mac80211: add support to call csa_finish on a link Content-Language: en-US To: Aditya Kumar Singh , CC: References: <20240129052832.905113-1-quic_adisi@quicinc.com> <20240129052832.905113-6-quic_adisi@quicinc.com> From: Jeff Johnson In-Reply-To: <20240129052832.905113-6-quic_adisi@quicinc.com> Content-Type: text/plain; charset="UTF-8" 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: sitfopseLr2n5HCM8fyjI3QnS4tsbqxV X-Proofpoint-ORIG-GUID: sitfopseLr2n5HCM8fyjI3QnS4tsbqxV 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-01-29_15,2024-01-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 clxscore=1015 mlxscore=0 bulkscore=0 priorityscore=1501 adultscore=0 spamscore=0 mlxlogscore=885 suspectscore=0 phishscore=0 impostorscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401300008 On 1/28/2024 9:28 PM, Aditya Kumar Singh wrote: > diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c > index 4427259154e2..a1a4f100d128 100644 > --- a/net/mac80211/cfg.c > +++ b/net/mac80211/cfg.c > @@ -3543,13 +3543,24 @@ cfg80211_beacon_dup(struct cfg80211_beacon_data *beacon) > return new_beacon; > } > > -void ieee80211_csa_finish(struct ieee80211_vif *vif) > +void ieee80211_csa_finish(struct ieee80211_vif *vif, unsigned int link_id) > { > struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif); > struct ieee80211_local *local = sdata->local; > + struct ieee80211_link_data *link_data; > + > + if (WARN_ON(link_id > IEEE80211_MLD_MAX_NUM_LINKS)) >= ?? > + return; > > rcu_read_lock(); > > + link_data = rcu_dereference(sdata->link[link_id]); > + if (WARN_ON(!link_data)) { > + rcu_read_unlock(); > + return; > + } > + > + /* TODO: MBSSID with MLO changes */ > if (vif->mbssid_tx_vif == vif) { > /* Trigger ieee80211_csa_finish() on the non-transmitting > * interfaces when channel switch is received on