Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4287367rwo; Tue, 25 Jul 2023 03:57:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlGuNt4YOUpjl0WitQLllHbHuFc8r7BZnoO+lZK1jVv40do3Ws7vD+s/TnuB3XO3XA2d553y X-Received: by 2002:a17:902:ec84:b0:1b9:de3e:7a59 with SMTP id x4-20020a170902ec8400b001b9de3e7a59mr15221211plg.10.1690282626312; Tue, 25 Jul 2023 03:57:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690282626; cv=none; d=google.com; s=arc-20160816; b=Di5BamFiTKSfl/sufGmsLn+kKFlblHmIwV5hO+3k687lrkMJb5JobcpRvgR4eoBxJ2 Ru3E3LTs8XKO9Rzq3iORlJjIIWI8HT/67I+70WNdUGGOTkx5Bu2lUYKvF+qxohPLFcqL mxX1dMwZU3UcE1iTpqa9xAJGx+5KmrGQo7KtlyeWkGhcj6CJ615dNsiDIi1rpbpWkhSc HLljtkMS50p0QAwN8FrTCvwlNlF6D1VLklnqVf9Tg/ht7R3ae7x6cerSuChQRCEJenFZ 3frlJDFmLQvW+kv3GNT/UM3UlDg9LQVAGTEhpLrh0pKtGwYt6Wxq7I7rf8SLk9ohvUnA 92Sg== 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=KBhz6o7gCeuxd/EWDdPOnJCRjVXYn/B/PU+Xq4RR2PU=; fh=/BHrbznAUSi+s/Q3A6uU2EvChmOkIiCX4Bsx+QIkgjU=; b=gmbx7KV80GwfikhJ3Gkq3YHRV2edUoK0Io6fYQgEjs1eUZvpk0VVRbpX/5WEXGGYNO +Sp7YqlodwhP0OGPzQIXsm9AnofFAWOF2Yh5GsDEMq8sRlXi5ZdEvCffTy5DwP+bccff dfwDA1xkyTnEzRa6TrZrW9QPtoNz8LPhIDG7ruC/M5+HExaqpDuhnKzMjrvK/400L0me IR4r48tC23nArTRfcM2Q0M0El94ivMsJquWE0NvMzIueVtbdNZSS6mHfDqaoawLGwjdE bNkGSnpBKNkplGKMYy8hRloDXvWaYZ9yxVaxwYdlX5d4dHITWbcAf+DH10kenfghPG9i LuSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=AEM+No4d; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lc15-20020a170902fa8f00b001b6aeea4a58si10630280plb.53.2023.07.25.03.56.57; Tue, 25 Jul 2023 03:57:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=AEM+No4d; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230164AbjGYKxe (ORCPT + 59 others); Tue, 25 Jul 2023 06:53:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230409AbjGYKwe (ORCPT ); Tue, 25 Jul 2023 06:52:34 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7ED59213A for ; Tue, 25 Jul 2023 03:51:35 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36PAVQ9R011949; Tue, 25 Jul 2023 10:51:25 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=KBhz6o7gCeuxd/EWDdPOnJCRjVXYn/B/PU+Xq4RR2PU=; b=AEM+No4dxJywCWkuyHkGQP7vrJdntIigIuvDIGTuG2p1pBjgjE8ZZSPOYtQk1r7PK/FI P7AVSaJ1/REBtxHe2p70KQTu9Vg2PLddejUgMkCUkA917Tw8a9s0DC4pXeOF4zZcXNDu MoYeDEUB6Z+95MleVJjLv9SiTbYX8OmAqyJATbYBDbAXCBD+aYeLHV4Ea/JrIFMh/si+ /SswNH3rFO/lE4+hSL/WlMIPONg0xAYJ7IMC34+Ywn+DLPAitaPbyXReHyYsAzhKHwBo VoXOnApXKrNfRuaY6ZmArMEkyFBeJD33Y/rLCrVqO0JN1TH0wPGJXVQZ12YJ2k3G5rb+ SQ== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3s1v6ua2hh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Jul 2023 10:51:25 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36PApNR1024678 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Jul 2023 10:51:23 GMT Received: from [10.231.195.204] (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.30; Tue, 25 Jul 2023 03:51:21 -0700 Message-ID: Date: Tue, 25 Jul 2023 18:51:18 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v4 03/11] wifi: ath12k: WMI support to process EHT capabilities Content-Language: en-US To: Kalle Valo , Aloka Dixit CC: , , "Pradeep Kumar Chitrapu" References: <20230602235820.23912-1-quic_alokad@quicinc.com> <20230602235820.23912-4-quic_alokad@quicinc.com> <87ttv9aqtn.fsf@kernel.org> From: Wen Gong In-Reply-To: <87ttv9aqtn.fsf@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] 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-ORIG-GUID: EuFKZLoFdYVrh2oTZAO98vka9-6RmJh3 X-Proofpoint-GUID: EuFKZLoFdYVrh2oTZAO98vka9-6RmJh3 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-25_06,2023-07-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 suspectscore=0 priorityscore=1501 mlxlogscore=915 lowpriorityscore=0 impostorscore=0 mlxscore=0 spamscore=0 adultscore=0 phishscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307250094 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 6/15/2023 7:49 PM, Kalle Valo wrote: > Aloka Dixit writes: > [...] > [...] > >> +struct ath12k_fw_pdev { >> + u32 pdev_id; >> + u32 phy_id; >> + u32 supported_bands; >> +}; > So we have now two very similar structures, ath12k_pdev and > ath12k_fw_pdev. It would be good to document above the structs their > purpose. Any ideas what I could add? Currently ath12k has single_pdev parameter, it impact the interface number of wifi. For single_pdev=ture, ab->num_radios is set to 1 and all capbility of 2.4 GHz/ 5 GHz/6 GHz is saved into ab->pdevs[0] in ath12k_wmi_ext_soc_hal_reg_caps_parse(). ath12k_mac_register() will call only one time into __ath12k_mac_register(), and ieee80211_register_hw() is called only one time, and only one wifi interface in the result of "iw dev/ifconfig", the interface support 2.4 GHz/5 GHz/6 GHz. Actually there hare more than one PHY in firmware, firmware maintain the all PHY data and provide a single pdev/soc interface to ath12k, then ath12k do not need to consider the PHY info such as channel/BAND<->PHY mapping relationship, it is convenient for ath12k to support 2.4 GHz/5 GHz/6 GHz. For single_pdev=false, ab->num_radios is more than 1, ab->pdevs[] has muti valid element, each element only support one BAND. Firmware do not provide a single pdev/soc interface, so ath12k need to maintain the PHY data such as channel/BAND<-> PHY mapping relationship, and ath12k_mac_register() will call muti-time into __ath12k_mac_register(), and ieee80211_register_hw() is called muti-time, and muti wifi interface in the result of "iw dev/ifconfig", and each interface only support one BAND, for example, wlan0 only support 2.4 GHz, wlan1 only support 5 GHz, and wlan2 only support 6 GHz. For single_pdev=ture, ath12k also need to know some info about the PHYs sush as pdev_id/phy_id/supported_bands in this patch, so ab->fw_pdev is used to store the PHY data.