Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4062096rdb; Thu, 14 Sep 2023 10:32:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFfeymczbgr0tBeF6OkWinw2atQ1ftUZ3taeIQVzoiSyblv9UTJXF7zLLVNSys9DPZo/5md X-Received: by 2002:a17:902:ced1:b0:1bf:712:e4bd with SMTP id d17-20020a170902ced100b001bf0712e4bdmr7218913plg.65.1694712740356; Thu, 14 Sep 2023 10:32:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694712740; cv=none; d=google.com; s=arc-20160816; b=DFEZGHSxMrs11ROYSupZ3y7xcp1npWf9/Y4ocr8p+rA756Y1VSG6vGoP3cSla6b70j NjAYAe0Do8EwveYzsiMzq3oubbBiJfdvcXv3tBE+5P1cdS83S3f2sq1p41cKMGjZpFz6 3V8uaP7C1AmPPZWvz6TzB5vx9fI5allKo4ntuyLVizERvcneLt/f0HVByA7O94adVCVk JBPliXM+FyxsktPZn2jouyiOw0wCzi0fojPD/Lv1voWRITBTy+nNhMbC2KUOR+YSkXhG 8/hpJQNL5icUkmLRDpCIIFFuJdCdTXYmO5xP3pRmZC6rE5MpJB5Zgja5Zdj3I+j2deWb a4aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=5/qkISIDGNfNLwBtLJGp0FO3+guaXihpsK5MAftO+r0=; fh=Uk+x2ok2SkraawYfl709wyKyFyIr/hM8KHrL5kNSjjM=; b=RAnVj5veF1N7NBXwwAN69sdopuvFGUwQk0dokEaXVrGG3to5AfhIzduse9/xAG1CVn Jjuk1/3WcqZT2N8vzR9XyogepLw88K0EjK8+8l41bmsYYe22hiJJo8n6pBdOHV1tXPbX 4UAzjAPK86Sxt72v/In+qmDHhVKNgDlZYQQAei98f2FkwNcYzZaJAmXiAD/bkniIq+/t 0qf0iTWTSjhrfEIvrrEwu99WqOBb6HstuaZ094lsTGg5/kSOnakGkseiP51gCtTvnoDr K0bLaGAYVOegpI5c5pqDzKo7Yi0/+qdGVUytvIg/poP7g9aKY3f50Z1PM858QSflgUsJ lhGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=jbs8hLPF; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id u12-20020a17090341cc00b001bbc61fedafsi2182020ple.422.2023.09.14.10.32.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 10:32:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=jbs8hLPF; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 15FD085BE6CC; Thu, 14 Sep 2023 10:16:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238888AbjINRQr (ORCPT + 57 others); Thu, 14 Sep 2023 13:16:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238804AbjINRQq (ORCPT ); Thu, 14 Sep 2023 13:16:46 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D35701FE6 for ; Thu, 14 Sep 2023 10:16:42 -0700 (PDT) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38EFEcCP011731; Thu, 14 Sep 2023 17:16:37 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=5/qkISIDGNfNLwBtLJGp0FO3+guaXihpsK5MAftO+r0=; b=jbs8hLPFK0fUuFHFo6aexndZBvt1vnUKS0WEIYuFDtEaNz13qHytBrgs6RhnWbdju0Ye MrCoPSvI43Y6zQXhV1IRqCtR+kIap9TvETDXWcUM++7uWu27yJShN8INRtFJZTB2n14r 6ke0PgBXGqbvOs3vINLf8xizu6mCWMxG8lEwkEV3MKi/+ZPQ2uhkXRIk4XBY4XeQ0vyW FSg78B+fU2k4MbzavvJORC9aXVP2D6zZwEkWtWkChlLs+XSIwqvjGcdQsSHJOIqpkHui IEL5K6c4QHBm2r3lVQ5Xc0HWg7IFe2S/t2ACTY2b/FwiViCgBq/CS8jvXx361KYLjVvF DQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t3re32bjb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 17:16:37 +0000 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 38EHGaVi026875 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 17:16:36 GMT Received: from [10.111.183.186] (10.49.16.6) 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.36; Thu, 14 Sep 2023 10:16:36 -0700 Message-ID: <706ae5a8-70bb-45c3-9757-849622af6b64@quicinc.com> Date: Thu, 14 Sep 2023 10:16:36 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/4] wifi: ath12k: avoid firmware crash when reg set for WCN7850 Content-Language: en-US To: Wen Gong , CC: , References: <20230914090746.23560-1-quic_wgong@quicinc.com> <20230914090746.23560-4-quic_wgong@quicinc.com> From: Jeff Johnson In-Reply-To: <20230914090746.23560-4-quic_wgong@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) 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: Z-9zWkx1XCtM4Bk-ftSQPvpKlTDLR1Ut X-Proofpoint-ORIG-GUID: Z-9zWkx1XCtM4Bk-ftSQPvpKlTDLR1Ut X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-14_09,2023-09-14_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 priorityscore=1501 malwarescore=0 mlxscore=0 mlxlogscore=999 lowpriorityscore=0 spamscore=0 clxscore=1015 suspectscore=0 impostorscore=0 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309140149 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 14 Sep 2023 10:16:49 -0700 (PDT) On 9/14/2023 2:07 AM, Wen Gong wrote: > For the NL80211_REGDOM_SET_BY_USER hint from cfg80211, it set the new > alpha2 code to ath12k, then ath12k send WMI_SET_INIT_COUNTRY_CMDID to > firmware for all chips currently. When test with WCN7850 chips, > this WMI CMD leads firmware crash. > > For AP based chips(QCN92xx), WMI_SET_INIT_COUNTRY_CMDID is the correct > command use. However, for STATION based chips(WCN7850), it need to use > another WMI CMD, WMI_SET_CURRENT_COUNTRY_CMDID. > > Add flag current_cc_support in hardware parameters. It is used to > distinguish AP/STA platform. After that, the firmware will work > normal and the regulatory feature works well for WCN7850. > > Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4 > > Signed-off-by: Wen Gong Acked-by: Jeff Johnson