Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1401131rdb; Wed, 6 Dec 2023 19:16:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFe/o5tSAsiv+DvwnuOw8LbdKCSTUC/sl8rEFSCfTnvZTynHHOrYJ5r1Wg5tYiythSJuida X-Received: by 2002:a05:6e02:1b86:b0:35d:6034:8652 with SMTP id h6-20020a056e021b8600b0035d60348652mr2549092ili.15.1701918959870; Wed, 06 Dec 2023 19:15:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701918959; cv=none; d=google.com; s=arc-20160816; b=XvnnKfzJnpQL95KeEk/uOeI0CBSWW6NB8VQwazRdzomVR+Wfb6LsuhZ4lyb5RJKBnk uYfTxj53XYCul7/6HqsXEDSlo1GXz3+mlK0dDarW1qH+LUPmDPiisobg4/uzc/Is1uMZ 6tqjiPxcOjO/n4bkao7E49fYv19/myyY6816bNG0vPZ8HzWrk6CTX3Bj0JXGw4mXr6Zz mTReTZMEOwKtzC/ZlQzOy+Igo2nc2pCOJxyKzydBR5gzqOoId7hs+Lu8OwHYucln25or 9WToE0HMZsgQtZYYV+cdBpTDZeJzo3NVkfc1egRrH3Y6bIEWLZsOO58KC9mNcDIemshf WNcA== 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=zoqix0G1YsVyrfFqO9orjKPJIL1iVaKhmsD/Vmgc3is=; fh=lP+FyPnTPmJOMA/wP4iC1fr6HzuBVIppIk9dmo9v2y0=; b=plxqdE2eEjFywHxPiCfuSugpDKzxrNgQ36nrCkF4EHiszqtWi2q7JqxgNSyzcFJkzI hc5tsLO9x0iUH0XWAvr1C99l+FMf3KNXqfDAuwkC5GgxIOV7yDExvbLIHSyl+mc6/nM+ ka6JBlOv0zO/UWYCoGYqu5icfC2wDv+rqXYOw69zRiMuUvAwBUXGoCm0fePIYqjpJ50Z F8IB1sD/gAXJSL+U8p83UY8VX0mWQJgysxtdKiHQLskwA+HLauruBRN3eKY6TkddISUn 9dUmQkCHw9xFi3UH/F3rC4zXXC6mJ2+nkoSvd96H4Mac5dQuCGzwaFg0z9C3s/3Wcvww EYhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="eqCkDhu/"; spf=pass (google.com: domain of linux-wireless+bounces-524-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-524-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id s22-20020a656456000000b005bdfb77e552si347664pgv.439.2023.12.06.19.15.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 19:15:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-524-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=@quicinc.com header.s=qcppdkim1 header.b="eqCkDhu/"; spf=pass (google.com: domain of linux-wireless+bounces-524-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-524-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 75C03B20C23 for ; Thu, 7 Dec 2023 03:15:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C0BBC539E; Thu, 7 Dec 2023 03:15:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="eqCkDhu/" 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 107BF19E for ; Wed, 6 Dec 2023 19:15:46 -0800 (PST) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3B71eKQq008734; Thu, 7 Dec 2023 03:15:44 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=zoqix0G1YsVyrfFqO9orjKPJIL1iVaKhmsD/Vmgc3is=; b=eqCkDhu/e0cwYtacAO+kEZaQ30J3twexe28g70VAfJNYHqgcmrugI8etRTlnEYtWM0pv PRIyTbU2PhuMcwb4rVCQciGkJvSe+yNM5GnbNuHuoRIiB1JSm/E+ahNvtlU7Xp1EJjN1 w+4jfRFZdreVIUzhKZjzrrIaMEeNQLcb8JtSZtPgvdWDeYcFOeqDHRVqRZeWXzwqpurr YtXZOOaPkOxf/4YC73CVKXLTDXO/tMHi2wzLDDIyp/4MnJfFMwN8/S7vXWIU85bH87Le dDL5kizc8HkxOtNOJIQRbDT8JOEcMLGPqxRVsaiS8t41WQ6T/baYfW48VYT9pO1UV5qV Zw== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3uu0w50j0s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 07 Dec 2023 03:15:44 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3B73FhAX032369 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 7 Dec 2023 03:15:43 GMT Received: from [10.216.30.117] (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; Wed, 6 Dec 2023 19:15:42 -0800 Message-ID: Date: Thu, 7 Dec 2023 08:45:41 +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 v8 04/12] wifi: ath11k: update regulatory rules when interface added Content-Language: en-US To: Baochen Qiang , CC: References: <20231204081323.5582-1-quic_bqiang@quicinc.com> <20231204081323.5582-5-quic_bqiang@quicinc.com> From: Aditya Kumar Singh In-Reply-To: <20231204081323.5582-5-quic_bqiang@quicinc.com> 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: SGkJFDMhXQ3A0Kx9RWBP95tlDQpXrEyJ X-Proofpoint-ORIG-GUID: SGkJFDMhXQ3A0Kx9RWBP95tlDQpXrEyJ 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-06_22,2023-12-06_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 mlxscore=0 suspectscore=0 bulkscore=0 spamscore=0 malwarescore=0 mlxlogscore=947 clxscore=1015 impostorscore=0 priorityscore=1501 adultscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2312070025 On 12/4/23 13:43, Baochen Qiang wrote: > --- a/drivers/net/wireless/ath/ath11k/mac.h > +++ b/drivers/net/wireless/ath/ath11k/mac.h > @@ -156,7 +156,6 @@ struct ath11k_vif *ath11k_mac_get_arvif_by_vdev_id(struct ath11k_base *ab, > u8 ath11k_mac_get_target_pdev_id(struct ath11k *ar); > u8 ath11k_mac_get_target_pdev_id_from_vif(struct ath11k_vif *arvif); > struct ath11k_vif *ath11k_mac_get_vif_up(struct ath11k_base *ab); > - Irrelevant change? > struct ath11k *ath11k_mac_get_ar_by_vdev_id(struct ath11k_base *ab, u32 vdev_id); > struct ath11k *ath11k_mac_get_ar_by_pdev_id(struct ath11k_base *ab, u32 pdev_id); > void ath11k_mac_drain_tx(struct ath11k *ar); > diff --git a/drivers/net/wireless/ath/ath11k/wmi.c b/drivers/net/wireless/ath/ath11k/wmi.c > index 6f0a35fcc9c1..9a0568676a74 100644 > --- a/drivers/net/wireless/ath/ath11k/wmi.c > +++ b/drivers/net/wireless/ath/ath11k/wmi.c > @@ -9858,3 +9858,9 @@ int ath11k_wmi_sta_keepalive(struct ath11k *ar, > > return ath11k_wmi_cmd_send(wmi, skb, WMI_STA_KEEPALIVE_CMDID); > } > + > +bool ath11k_wmi_supports_6ghz_cc_ext(struct ath11k *ar) > +{ > + return (test_bit(WMI_TLV_SERVICE_REG_CC_EXT_EVENT_SUPPORT, > + ar->ab->wmi_ab.svc_map)) && ar->supports_6ghz; What is the use of first parenthesis? I don't see a closing one after ar->supports_6ghz so its just guarding test_bit() which is not required. I believe intention here was to guard whole expression?