Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4260675rdb; Mon, 11 Dec 2023 13:46:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IErXJZbAy+rY3uXuEVGjS9GwjvcOAXarE9SBXJDFPjzadddF8DKaiLLKGqIKyhOE3F/0d9i X-Received: by 2002:a17:90b:3d88:b0:286:b4b4:fc1c with SMTP id pq8-20020a17090b3d8800b00286b4b4fc1cmr3894791pjb.65.1702331201122; Mon, 11 Dec 2023 13:46:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702331201; cv=none; d=google.com; s=arc-20160816; b=LlyIJ7fQDa5xi5zQiMbh93ycPEqMGD+hMpfUJv912xcXxoWa/rhj105mYRn5t9z9Tv AVpgW9o1Y1vKoG6nk7LRgaZX89ZxXJlc8FTFaolREorhyZ8cBO0fFY2oJiPUPQ9Goomf HY1imqnEl9beB9KHwz5EhwIMv0wEB5bsDILCL4P8qjpQ/6rf0pGql3zCff6H/7VHcLDH H1e8f1rt3qz3ShgXOozLgYSbXsFflVdGw2rIbgmwNBvF1wUJX8fy2yaBfoCfP/utIkkX /QWrNCzddwVvltlg9lQw0JzavM34IGKC+OtPQEbdWrdRfby8g2yD92M924z1VZEenexT gzJw== ARC-Message-Signature: i=1; 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=fkcBVKA/a6ncrLS9B200BQa7oO+QJWSQs7ila1NiWcQ=; fh=lP+FyPnTPmJOMA/wP4iC1fr6HzuBVIppIk9dmo9v2y0=; b=vHuknPoBn+Sjs1/1avioGLQY6j3zvweJdlfrfUMaIMGiKsak3xR16H9eZf3AkntWVC gcYdvpfr+rr64mjTp/sP+qXwvB6/KdHdxFoWVbGAdptEQWWORbkHWht1GtGpnqr+7Ge0 vxvSCLUlLdAagsN+Smg1REoD/5fSTEg/evekbQ0NTFjELE/cGg48x3ls9uN/oq8jUerp uHyIQK7yt2sq8U1kBAM4BjmwbRKDcXoPlxo07DXFM+VBo84DW614OFQvymzdfosvRj9/ sYkqK8XHn2QzaXteb1xfXjM0L7UmQORqq0lXd3B6WFotFhsQ2I85KtXSw5etf9u9jg0y apLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=gx4foxXr; spf=pass (google.com: domain of linux-wireless+bounces-673-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-673-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 o12-20020a17090a744c00b00286f67f01b4si7812334pjk.184.2023.12.11.13.46.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 13:46:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-673-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=gx4foxXr; spf=pass (google.com: domain of linux-wireless+bounces-673-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-673-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 9EF14B2135D for ; Mon, 11 Dec 2023 21:46:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5859451010; Mon, 11 Dec 2023 21:46:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="gx4foxXr" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB97ABD for ; Mon, 11 Dec 2023 13:46:30 -0800 (PST) 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 3BBLY7iV004858; Mon, 11 Dec 2023 21:46:27 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=fkcBVKA/a6ncrLS9B200BQa7oO+QJWSQs7ila1NiWcQ=; b=gx 4foxXr8heIwMB9rW1Aq7Co0PNOfxPB8F5MPt28odvZF0e/NiWliyXXrgYsJmTxfF tuDtn/Eblf1py+6SPn0szcPIjM4EPNVzxAyR+7JxvIR20m7KwOMKj4xPWwp5DzBW BTe2rjJ8eOpACdL3nMwUcZcN+rkSP3Wn8uM31vYlv5pQ/w5s0n2do0B/v0vWT8BM F5B9f3fy0qYS6qs/f5P638krPkfqttHSksvYTyYw7vWjMdtnHiXjC8GVLNR14qIB 5/a0Sbz9O37FEWtt7wcQO+c9oohKAswxfLQ+YSpNpvjM7D+MMoWLnIi+vU8cwpIZ 4GLF4Qsd0b9eb3pXKuGQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ux28s99qp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 11 Dec 2023 21:46:26 +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 3BBLkQOk009280 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 11 Dec 2023 21:46:26 GMT Received: from [10.110.106.103] (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, 11 Dec 2023 13:46:25 -0800 Message-ID: <889fdf9c-0c86-4553-984b-d4e64682d12a@quicinc.com> Date: Mon, 11 Dec 2023 13:46:25 -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 v9 02/12] wifi: ath11k: store cur_regulatory_info for each radio Content-Language: en-US To: Baochen Qiang , CC: References: <20231211062216.382164-1-quic_bqiang@quicinc.com> <20231211062216.382164-3-quic_bqiang@quicinc.com> From: Jeff Johnson In-Reply-To: <20231211062216.382164-3-quic_bqiang@quicinc.com> Content-Type: text/plain; charset="UTF-8" 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-ORIG-GUID: OL8wMNP-30e2Vl0Hu0T0Ef1wJHSk773p X-Proofpoint-GUID: OL8wMNP-30e2Vl0Hu0T0Ef1wJHSk773p X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_01,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 priorityscore=1501 clxscore=1015 lowpriorityscore=0 suspectscore=0 adultscore=0 malwarescore=0 bulkscore=0 mlxscore=0 phishscore=0 spamscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2312110179 On 12/10/2023 10:22 PM, Baochen Qiang wrote: > From: Wen Gong > > The regulatory info of WMI_REG_CHAN_LIST_CC_EXT_EVENTID is not saved > in ath11k now, the info should be saved in ath11k. Save the info for > each radio and support switch regulatory rules dynamically. > > Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.23 > > Signed-off-by: Wen Gong > Acked-by: Jeff Johnson > Signed-off-by: Baochen Qiang > --- > v9: > 1. add check to soc->reg_info_store in case memory allocation fails. > 2. remove irrelevant change w.r.t commit message. > v8: > no change. > v7: > 1. fix ath11k-check warning > 2. fix memory leak. > > drivers/net/wireless/ath/ath11k/core.h | 1 + > drivers/net/wireless/ath/ath11k/reg.c | 6 + > drivers/net/wireless/ath/ath11k/wmi.c | 153 ++++++++++++++++++------- > drivers/net/wireless/ath/ath11k/wmi.h | 5 + > 4 files changed, 122 insertions(+), 43 deletions(-) I came across a nit during re-review. Kalle, can you fix in the pending branch? > diff --git a/drivers/net/wireless/ath/ath11k/wmi.c b/drivers/net/wireless/ath/ath11k/wmi.c > index 75c79c99faa9..78bc2715e476 100644 > --- a/drivers/net/wireless/ath/ath11k/wmi.c > +++ b/drivers/net/wireless/ath/ath11k/wmi.c > +static > +enum wmi_vdev_type ath11k_reg_get_ar_vdev_type(struct ath11k *ar) > +{ > + struct ath11k_vif *arvif; > > - ath11k_dbg(ab, ATH11K_DBG_WMI, "event reg chan list id %d", id); > + /* Currently each struct ath11k maps to one struct ieee80211_hw/wiphy > + * and one struct ieee80211_regdomain, so it could only store one group > + * reg rules. It means muti-interface concurrency in the same ath11k is nit: s/muti/multi/ > + * not support for the regdomain. So get the vdev type of the first entry > + * now. After concurrency support for the regdomain, this should change. > + */