Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2901128rwd; Fri, 2 Jun 2023 17:03:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6QLYy57aVgfV6Tjpw3qCePWeDZgHeno9ZktMd1KcqAMpCwglk6nKJ1jLGCSpqfV4bgM7Ng X-Received: by 2002:aca:1e17:0:b0:397:f6c7:c5b0 with SMTP id m23-20020aca1e17000000b00397f6c7c5b0mr1517553oic.51.1685750602307; Fri, 02 Jun 2023 17:03:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685750602; cv=none; d=google.com; s=arc-20160816; b=iHyVgakxvAF8rmoYOZd+1Uhn6N3bE9uaW84wmMJ3muobiq0B9Jh0SPtIn26qrx6j5z 8Q+5JDpwJMVkfpqVTZeRg/47i9MZtV/FoT2jqvM3zjQAnrSSdvnSqgr+G8ocqDb5W2U1 CreR+Zba2/FiPTxaicOcmwt3zdWFRv3K9451zT2kTvTANOZeaCocAKNWu5fRJP8Kz6A1 Kwyu7chU8gRLTFnBVRBVFqYhjyx0IZ5u4Ps2mGIEWGfPQ9wqFdhrdFJAf/QPYdqi7OFh 9j2NcT7X1kuh+M9ZMCnNVR8/Q3CmOTibbgyJZL1sRden+aePNAG1X8kf5gxRBcU0YwNE S7uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jfUET1EwVfGBMulk8yCIgzwVr3A8IWCNKr7MkkSVjIQ=; b=zyK/8YofFMI1N5++rIxYvMezDHtdRKMFh1yha3ZoDBDWsxMDNx4SRpDXOg7LbyG1mv lwVSZ/GxbDDX+PMXSFGSkhi7xvdz/FIr5JYox8/o18eKomJLfwb0Q9dX8roPp0RHtETa odx4c/xX0Nl0OV6v4T68tiF4vd6L8ZgnN4E/OIkcVyCLFfryTGrQbhoBjYnu1GkE5gVt mSmIT3nooDa8SBk6qT4k5d1J6JeEHXQSami9PohOkikJuWmSGzOzk+bZKLMPC4wJgfDk 6Rt3SxM7TB9bMiz0vZzZeDROc2bucusVlCh7l6YgVyiNlV7gTF/PooczYBWNZViHaXcO Hw3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="bO91Wp/d"; 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 w18-20020a170902e89200b001b061af058csi1657587plg.591.2023.06.02.17.02.59; Fri, 02 Jun 2023 17:03:22 -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="bO91Wp/d"; 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 S236846AbjFBX6x (ORCPT + 64 others); Fri, 2 Jun 2023 19:58:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236526AbjFBX6v (ORCPT ); Fri, 2 Jun 2023 19:58:51 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D45D11B6 for ; Fri, 2 Jun 2023 16:58:50 -0700 (PDT) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 352NsBVW009863; Fri, 2 Jun 2023 23:58:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=jfUET1EwVfGBMulk8yCIgzwVr3A8IWCNKr7MkkSVjIQ=; b=bO91Wp/daaL+0Pkqh3+erSTiFnBaWUeoTIvvuMMoNwWKolBNVFgb4veZCO36JHjRN1k/ quiNKeClOMwpINTCCwcLwPqOxc9NPOoDanSwDFwsIy7e+mleKqwhakhIxgAxQtC5FDDk Kdk0f14Vmoo/6dxsWU1D1basrN2GBc2yVTEkcehsI/+6i5f+vBZzssC3z6nde7smlQgM sPBD0/sLsFgHGAUYyca08jS4Zh/mWnZx7cNxxvySSd1cUjbgypswL4CfIPK8Sa9sxGIK JYO8tObzkSOKjnS4vPpEk1/TTQfnN2W9bZwUECS/rN2ywZmHlx9vgkc1nF3Fmd/xedRo ig== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qyhb9177x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 02 Jun 2023 23:58:39 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 352Nwdej022994 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 2 Jun 2023 23:58:39 GMT Received: from alokad-linux.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Fri, 2 Jun 2023 16:58:38 -0700 From: Aloka Dixit To: , CC: Pradeep Kumar Chitrapu , Aloka Dixit Subject: [PATCH v4 09/11] wifi: ath12k: add MLO header in peer association Date: Fri, 2 Jun 2023 16:58:18 -0700 Message-ID: <20230602235820.23912-10-quic_alokad@quicinc.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230602235820.23912-1-quic_alokad@quicinc.com> References: <20230602235820.23912-1-quic_alokad@quicinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: Vqacn5SLPo5dJdLxIZ-_uMn3gI7GpZLE X-Proofpoint-ORIG-GUID: Vqacn5SLPo5dJdLxIZ-_uMn3gI7GpZLE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-02_18,2023-06-02_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 phishscore=0 priorityscore=1501 clxscore=1015 suspectscore=0 lowpriorityscore=0 adultscore=0 mlxlogscore=999 bulkscore=0 malwarescore=0 impostorscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2306020189 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 From: Pradeep Kumar Chitrapu Add tags with length 0 for MLO header and partner links which are required by the firmware for a successful association. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 Signed-off-by: Pradeep Kumar Chitrapu Signed-off-by: Aloka Dixit --- v4: No change from v3. v3: Moved MLO header tag addition before EHT rates to match firmware order. v2: Corrected 'witout' to 'without' in the description. drivers/net/wireless/ath/ath12k/wmi.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath12k/wmi.c b/drivers/net/wireless/ath/ath12k/wmi.c index 7debd2461e1a..9e48e1bce549 100644 --- a/drivers/net/wireless/ath/ath12k/wmi.c +++ b/drivers/net/wireless/ath/ath12k/wmi.c @@ -1909,7 +1909,8 @@ int ath12k_wmi_send_peer_assoc_cmd(struct ath12k *ar, TLV_HDR_SIZE + (peer_ht_rates_align * sizeof(u8)) + sizeof(*mcs) + TLV_HDR_SIZE + (sizeof(*he_mcs) * arg->peer_he_mcs_count) + - TLV_HDR_SIZE + (sizeof(*eht_mcs) * arg->peer_eht_mcs_count); + TLV_HDR_SIZE + (sizeof(*eht_mcs) * arg->peer_eht_mcs_count) + + TLV_HDR_SIZE + TLV_HDR_SIZE; skb = ath12k_wmi_alloc_skb(wmi->wmi_ab, len); if (!skb) @@ -2032,6 +2033,12 @@ int ath12k_wmi_send_peer_assoc_cmd(struct ath12k *ar, ptr += sizeof(*he_mcs); } + /* MLO header tag with 0 length */ + len = 0; + tlv = ptr; + tlv->header = ath12k_wmi_tlv_hdr(WMI_TAG_ARRAY_STRUCT, len); + ptr += TLV_HDR_SIZE; + /* Loop through the EHT rate set */ len = arg->peer_eht_mcs_count * sizeof(*eht_mcs); tlv = ptr; @@ -2048,6 +2055,12 @@ int ath12k_wmi_send_peer_assoc_cmd(struct ath12k *ar, ptr += sizeof(*eht_mcs); } + /* ML partner links tag with 0 length */ + len = 0; + tlv = ptr; + tlv->header = ath12k_wmi_tlv_hdr(WMI_TAG_ARRAY_STRUCT, len); + ptr += TLV_HDR_SIZE; + ath12k_dbg(ar->ab, ATH12K_DBG_WMI, "wmi peer assoc vdev id %d assoc id %d peer mac %pM peer_flags %x rate_caps %x peer_caps %x listen_intval %d ht_caps %x max_mpdu %d nss %d phymode %d peer_mpdu_density %d vht_caps %x he cap_info %x he ops %x he cap_info_ext %x he phy %x %x %x peer_bw_rxnss_override %x peer_flags_ext %x eht mac_cap %x %x eht phy_cap %x %x %x\n", cmd->vdev_id, cmd->peer_associd, arg->peer_mac, -- 2.39.0