Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp523407rwb; Tue, 25 Jul 2023 20:59:26 -0700 (PDT) X-Google-Smtp-Source: APBJJlFzLf33pNet+qNVK0Ou4IaDMbvfunN8+RKbriakwy8eAD4+Y4HU+rf1hkxkC2HAicIe5VV+ X-Received: by 2002:a05:6402:150f:b0:522:2aba:bb32 with SMTP id f15-20020a056402150f00b005222ababb32mr532867edw.13.1690343966630; Tue, 25 Jul 2023 20:59:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690343966; cv=none; d=google.com; s=arc-20160816; b=yr2bn1DNcTOArDPJVD/xItXPUhOzJlweitgo75SIOEtPp/Xc1+dqVzlVEt3dXtbh9M 6539acEocLBNokpnWMoGNMlOQe7/vKHGRrGS0jiEmSuEjZkXnUo5lbpc4P44YZ7zsuOo IHCvvBF7a6JTgePsVIvCkDUDL3T6twLMxqw0OAXVRQhS5pU2q8E5CjthU7t0/G3Bih/E TS2tCvErZKBTAnNKT1PgCnas3p+GS5uPUiTGOZUrMGvfBtp7vQbA+Hn0Vkow0QT/Q84i Te9Wl8juQkI5N8xkeNJM9YwCw9fWQq/Sascmc8m201GfIO3suPUpKzEYhp7xFhURpa/D cCWA== 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=kziEQLUySX2lc5jw48DvsuK1owDpMXOhKodUIh9p+ps=; fh=rHm4a1drA1A0SlvlOCGaPxqS/QI5DQmuC19yda4m36g=; b=wXNs+AwoR4TPfp2WBZFOYNkxptRsLTqn9/ZQUOyGzO9tvDQYFfq7il9HvOEJA1cgTl xQZH7AUuqGzREpkAloWXNM7eXURRd+WRqsvdLrWvw6mU0ta45459h+fCHzLL78DSkJXk y8nlujXOi7APd1Yd8iw3LCkUurIJVlLrt1aj3UjsZvbes08BhysjupBXm/LZxGHPGP8n XD3MfSCs+2uaRQVpGWn2z8Un08eAumiqqcWJZVrWXc+92oyTlzj8wxGmA6uyOoC1m43N I8bQfdt7mFD9yYlNBvb1gKwJAkoAotnGc+ldiYzu2tszDHnj78LpUnSVOJm4OIixn3mL UnQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Uu+nxm0c; 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 e12-20020a056402088c00b0052222535640si4959517edy.491.2023.07.25.20.59.06; Tue, 25 Jul 2023 20:59:26 -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=Uu+nxm0c; 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 S230258AbjGZDoK (ORCPT + 58 others); Tue, 25 Jul 2023 23:44:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229602AbjGZDoI (ORCPT ); Tue, 25 Jul 2023 23:44:08 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A5EB2695 for ; Tue, 25 Jul 2023 20:44:07 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36Q1vo3V021485; Wed, 26 Jul 2023 03:43:57 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=kziEQLUySX2lc5jw48DvsuK1owDpMXOhKodUIh9p+ps=; b=Uu+nxm0chhzkKOKiT6AJEjhpUjw2r15VxyROuwmxlK4MnTPvL2E7cQujmLOygg5P0tgm wPqOMSxpuOZXZcVCM7yBTd8fd8CbTBhxnmKVq1WTPfke1T0NPeEXJA+HBvBxWbOQ3sd5 uT0R8L65gwnmve2JBZB8hJ3R+GYTTEZn6DqRYnFM9ZBA7sghmO5CfcqZc1dHSpRT7j0s WNH4ckt53PlaE0/VULNyrH0EQmlfev4XsEhSa1uprwQXQNwFyRPrJyrfwCIUilG1XlvL C4Z7rL51QpB6ux6ipf/prscfoC3rCAPGb7cPuonfooCKVJm9dffYQi/6b92zE9WFLowF JQ== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3s29j5jhuy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 26 Jul 2023 03:43:57 +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 36Q3hue1029524 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 26 Jul 2023 03:43:56 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 20:43:54 -0700 Message-ID: <293dd873-1d9d-afc0-a122-48dfe4bb0fde@quicinc.com> Date: Wed, 26 Jul 2023 11:43:52 +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 v5 06/11] wifi: ath12k: prepare EHT peer assoc parameters Content-Language: en-US To: Aloka Dixit , , CC: Pradeep Kumar Chitrapu References: <20230725224034.14045-1-quic_alokad@quicinc.com> <20230725224034.14045-7-quic_alokad@quicinc.com> From: Wen Gong In-Reply-To: <20230725224034.14045-7-quic_alokad@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit 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: utCmE-8I8qnT2HRhuJRpCsuawR6lWGxq X-Proofpoint-GUID: utCmE-8I8qnT2HRhuJRpCsuawR6lWGxq 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_14,2023-07-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 adultscore=0 malwarescore=0 mlxlogscore=999 phishscore=0 clxscore=1015 mlxscore=0 bulkscore=0 lowpriorityscore=0 priorityscore=1501 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307260031 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 7/26/2023 6:40 AM, Aloka Dixit wrote: [...] > + > +static void ath12k_peer_assoc_h_eht(struct ath12k *ar, > + struct ieee80211_vif *vif, > + struct ieee80211_sta *sta, > + struct ath12k_wmi_peer_assoc_arg *arg) > +{ > + const struct ieee80211_sta_eht_cap *eht_cap = &sta->deflink.eht_cap; > + const struct ieee80211_sta_he_cap *he_cap = &sta->deflink.he_cap; [...] > + default: > + if ((he_cap->he_cap_elem.phy_cap_info[0] & > + (IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_40MHZ_IN_2G | > + IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_40MHZ_80MHZ_IN_5G | > + IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_160MHZ_IN_5G | > + IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_80PLUS80_MHZ_IN_5G)) == 0) { > + const struct ieee80211_eht_mcs_nss_supp_20mhz_only *bw_20 = > + &eht_cap->eht_mcs_nss_supp.only_20mhz; > + This is the IEs of my AP below, then it will still entered into this branch for my ath12k station mode. sta->deflink.eht_cap and sta->deflink.he_cap is copied from peer remote, for ath12k station mode, peer remote is the AP. The field only_20mhz is only valid when the IEs is from a station which only support 20 MHz. I think the flag from_ap should be added here as well as function ieee80211_eht_mcs_nss_size(). Please correct me if wrong. Ext Tag: HE Capabilities (IEEE Std 802.11ax/D3.0)     Tag Number: Element ID Extension (255)     Ext Tag length: 29     Ext Tag Number: HE Capabilities (IEEE Std 802.11ax/D3.0) (35)     HE MAC Capabilities Information: 0x10401a08010d     HE Phy Capabilities Information         .... ...0 = Reserved: 0x0         0000 000. = Channel Width Set: 0x00             .... ..0. = 40MHz in 2.4GHz band: Not supported             .... .0.. = 40 & 80MHz in the 5GHz or 6GHz band: Not supported             .... 0... = 160MHz in the 5GHz or 6GHz band: Not supported             ...0 .... = 160/80+80MHz in the 5GHz or 6GHz band: Not supported             ..0. .... = 242 tone RUs in the 2.4GHz band: Not supported             .0.. .... = 242 tone RUs in the 5GHz or 6GHz band: Not supported             0... .... = Reserved: 0x0         Bits 8 to 23: 0x4063         Bits 24 to 39: 0x1f88         Bits 40 to 55: 0x8141         Bits 56 to 71: 0x111c         Bits 72 to 87: 0x0008     Supported HE-MCS and NSS Set     PPE Thresholds Ext Tag: EHT Capabilities (IEEE Std 802.11be/D2.0)     Tag Number: Element ID Extension (255)     Ext Tag length: 15     Ext Tag Number: EHT Capabilities (IEEE Std 802.11be/D2.0) (108)     EHT MAC Capabilities Information: 0x0000     EHT PHY Capabilities Information     Supported EHT-MCS and NSS Set         EHT-MCS Map (BW <= 80MHz): 0x222222             .... .... .... .... .... 0010 = Rx Max Nss That Supports EHT-MCS 0-9: 2             .... .... .... .... 0010 .... = Tx Max Nss That Supports EHT-MCS 0-9: 2             .... .... .... 0010 .... .... = Rx Max Nss That Supports EHT-MCS 10-11: 2             .... .... 0010 .... .... .... = Tx Max Nss That Supports EHT-MCS 10-11: 2             .... 0010 .... .... .... .... = Rx Max Nss That Supports EHT-MCS 12-13: 2             0010 .... .... .... .... .... = Tx Max Nss That Supports EHT-MCS 12-13: 2     EHT PPE Thresholds: > + ath12k_mac_set_eht_mcs(bw_20->rx_tx_mcs7_max_nss, > + bw_20->rx_tx_mcs9_max_nss, > + bw_20->rx_tx_mcs11_max_nss, > + bw_20->rx_tx_mcs13_max_nss, > + &rx_mcs[WMI_EHTCAP_TXRX_MCS_NSS_IDX_80], > + &tx_mcs[WMI_EHTCAP_TXRX_MCS_NSS_IDX_80]); > + } else { > + bw = &eht_cap->eht_mcs_nss_supp.bw._80; > + ath12k_mac_set_eht_mcs(bw->rx_tx_mcs9_max_nss, > + bw->rx_tx_mcs9_max_nss, > + bw->rx_tx_mcs11_max_nss, > + bw->rx_tx_mcs13_max_nss, > + &rx_mcs[WMI_EHTCAP_TXRX_MCS_NSS_IDX_80], > + &tx_mcs[WMI_EHTCAP_TXRX_MCS_NSS_IDX_80]); > + } > + > + arg->peer_eht_mcs_count++; > + break; > + } > +} > + [...]