From patchwork Wed Dec 14 16:46:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aditya Kumar Singh X-Patchwork-Id: 634166 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EBDDAC3DA6D for ; Wed, 14 Dec 2022 16:47:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239110AbiLNQrr (ORCPT ); Wed, 14 Dec 2022 11:47:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238802AbiLNQrq (ORCPT ); Wed, 14 Dec 2022 11:47:46 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FF231EAE9 for ; Wed, 14 Dec 2022 08:47:43 -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 2BEE9NZQ028608; Wed, 14 Dec 2022 16:47:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=cSB4zjaB69VHbb3ho34TEiSYwsfH6IUptSACkjdkDHw=; b=XxZ3PcQT6N8oGvO98hN9UiJtYeGIDafPorEx1bCemuGWQ0q6ADict+bHT8ov7Zxv+GcT sPssorpbpFIvNDGMD08J+NSXx7nNVQ7yISUdwrBaiSjTaV1DVaCvACydQK/iyrjgUB1h L0ZYlvdionDl+vWY1IOrdGP46mgY2KyOxVd2ZVUNDcfWaCs4xqztJX3NwBTsU0qfX/vr fYBWgVnVzbZQ4giYDZ25N5kuMoMe4+kGsMu5ZTY0K6V955WOlLifu7Os2LGwacsFhnDK mQaNNABIw5ulpnOPjNmq5vdHs0jqOnWcXu49hdTBCzMgm9/s6MPddnD35sAwscCQtmuj oA== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3mf6rehs84-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 14 Dec 2022 16:47:37 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 2BEGlbi7022877 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 14 Dec 2022 16:47:37 GMT Received: from adisi-linux.qualcomm.com (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.986.36; Wed, 14 Dec 2022 08:47:35 -0800 From: Aditya Kumar Singh To: CC: , Aditya Kumar Singh Subject: [PATCH v2 0/3] wifi: ath11k: add support to parse new WMI event for 6 GHz Date: Wed, 14 Dec 2022 22:16:36 +0530 Message-ID: <20221214164639.31542-1-quic_adisi@quicinc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] 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: 3dhPWiBaFp0l3c-0XAgUNHrjEyTkSqRT X-Proofpoint-GUID: 3dhPWiBaFp0l3c-0XAgUNHrjEyTkSqRT X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-14_07,2022-12-14_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 mlxscore=0 malwarescore=0 spamscore=0 priorityscore=1501 adultscore=0 lowpriorityscore=0 clxscore=1015 bulkscore=0 impostorscore=0 mlxlogscore=897 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2212140134 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org In order to support different power levels of 6 GHz AP and client, new WMI event for regulatory - WMI_REG_CHAN_LIST_CC_EXT_EVENTID is added in firmware. This event provides new parameters required for 6 GHz regulatory rules. Firmware advertises its capability of handling new event in WMI service ready event. Based on that, host needs to set host_service_flags in WMI init command to indicate that host supports processing of new WMI event. Based on advertised host capability, firmware decides to send old event WMI_REG_CHAN_LIST_CC_EVENTID or new event WMI_REG_CHAN_LIST_CC_EXT_EVENTID. Add support for parsing 2.4 GHz, 5 GHz and 6 GHz reg rules and other parameters from WMI_REG_CHAN_LIST_CC_EXT_EVENTID. Aditya Kumar Singh (3): wifi: ath11k: use proper regulatory reference for bands wifi: ath11k: add support to parse new WMI event for 6 GHz wifi: ath11k: add debug prints in regulatory WMI event processing --- v2: fix warning reported by kernel test robot in [2/3] --- drivers/net/wireless/ath/ath11k/reg.c | 58 ++- drivers/net/wireless/ath/ath11k/wmi.c | 573 +++++++++++++++++++++++--- drivers/net/wireless/ath/ath11k/wmi.h | 332 +++++++++++++-- 3 files changed, 874 insertions(+), 89 deletions(-) base-commit: 922932ca02191a390f7f52fb6e21c44b50e14025