Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2898595rwd; Fri, 2 Jun 2023 17:01:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6GPSk2tavenk/tohTG0O7K9O+PqB7Z4fcFDy2rcDwhArrUCumhX2I9cQYXbHtqVnrtOvBN X-Received: by 2002:a17:903:2343:b0:1b1:c0f7:cd27 with SMTP id c3-20020a170903234300b001b1c0f7cd27mr1487680plh.22.1685750477895; Fri, 02 Jun 2023 17:01:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685750477; cv=none; d=google.com; s=arc-20160816; b=qERjwjJYQydguXd3vlg7rbBOnbeRky9sDAtjXj9qEgke+qrE65NFziPpICq9TfZFLp XeqfwzSvBp9pyVBf+cd8dAlCrdW299JGmjkTumVIssVYhArJN+HkiAFNLA2LY2xGXtpC 50P8kJbmZ+Z7vZL8z8qEHRxHx6GZuXkSEmWuoQ/TxBY+pyx3PGz4w1lV1AjKIgcL/i3i qAbaNGZNdycIoT5bi7G6Kifi6U40vuFEQg3gn1y/hw1Ik6DZ4HiqBe4ugcnpELZmi3lf Gp1N2BhmdNmrtlgfcqOMWo4LllwrMsKGPkTN8zMtZ/npOTR1WKoihK/UAghtHG2jDg2J 5ing== 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=ZTKnkyVtI7I+u1FJ4gEHoW6KyJKH6eaXEzP/nzWYpqY=; b=Zzl0Xx5PumJ0K1hs2RJX3Cc8Tcy0zBHFEv+6SIdN4zrMnh1MFrXbABzRR1RPXD99HG 2MB17t/wDFOf/LH6P0unmBX8UMu+Au6YRIgLX06ny9uvW1zR2UHtRQe73Yz9yaOgABTJ K8Ke884YKTE2JwKl5B3vBKLn/s+MUlW7OcSaJSluOPymsaYVJpnSM9tsWXKMVdqKjglg jI7dZ2kl/43BYZgnB3rZ1SuzsYj5DTrLenSXSeOsfK5NI7Sdq4Y4t9B6HWWiC7TnrrOU OgcXXnd6G4k5kYOOhgRL5Ubl4I+89DwyufS4FSFNMD6z+bKMOkdqpGLYJXh/3Da9lsz9 3qbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=cOTpqNcB; 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 i14-20020a170902c94e00b001a1e0fd406csi1699764pla.217.2023.06.02.17.01.00; Fri, 02 Jun 2023 17:01:17 -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=cOTpqNcB; 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 S236660AbjFBX6t (ORCPT + 64 others); Fri, 2 Jun 2023 19:58:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236727AbjFBX6o (ORCPT ); Fri, 2 Jun 2023 19:58:44 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28818E4C for ; Fri, 2 Jun 2023 16:58:43 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 352NkUn4026526; 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=ZTKnkyVtI7I+u1FJ4gEHoW6KyJKH6eaXEzP/nzWYpqY=; b=cOTpqNcBGcqsvHN0cMVPmXtu279RSKWgfVFDl6CHpek7h/VeD3H8ddj2nq6ly9zhYq1X hwKPLyN6HvaTzREtjN7bTZn5OLzRLhww+E4L0A+QNNtacUqAdwmO05XsmhTjETD8QhHJ C9hjTl9vwb4bJaa902/gGcKc8C6wegLQzZjYmDm0AxRwd/xCbVoMlg1vy+N0EeLjDo15 QiQpDretj4jdLq9Gg45xgbjvnuprEFI5mjaUi2HBsDD2IpbS6FzqAwTk/GVmrBhbjtLu 7AQZT/VwPDqsPQY/2FR4d5iPHBRoKL7bYBt5M1TZtEbJLnFA+uIPKLQbi5Zf94+7+vkX 8A== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qytc880fj-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 352NwcKr022991 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 2 Jun 2023 23:58:38 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: Aloka Dixit , Pradeep Kumar Chitrapu Subject: [PATCH v4 08/11] wifi: ath12k: peer assoc for 320 MHz Date: Fri, 2 Jun 2023 16:58:17 -0700 Message-ID: <20230602235820.23912-9-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: HkahO-1nUarO5uv1pKh-KZNMgx0IvCAN X-Proofpoint-ORIG-GUID: HkahO-1nUarO5uv1pKh-KZNMgx0IvCAN 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 mlxlogscore=999 mlxscore=0 clxscore=1015 spamscore=0 phishscore=0 lowpriorityscore=0 malwarescore=0 bulkscore=0 suspectscore=0 priorityscore=1501 adultscore=0 impostorscore=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 Add required peer association definitions and processing if the bandwidth is 320 MHz. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 Signed-off-by: Aloka Dixit Signed-off-by: Pradeep Kumar Chitrapu --- v4: No change from v3. v3: No change from v2. v2: No change from v1. drivers/net/wireless/ath/ath12k/wmi.c | 2 ++ drivers/net/wireless/ath/ath12k/wmi.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/net/wireless/ath/ath12k/wmi.c b/drivers/net/wireless/ath/ath12k/wmi.c index 358aac5802bc..7debd2461e1a 100644 --- a/drivers/net/wireless/ath/ath12k/wmi.c +++ b/drivers/net/wireless/ath/ath12k/wmi.c @@ -1816,6 +1816,8 @@ static void ath12k_wmi_copy_peer_flags(struct wmi_peer_assoc_complete_cmd *cmd, cmd->peer_flags |= cpu_to_le32(WMI_PEER_80MHZ); if (arg->bw_160) cmd->peer_flags |= cpu_to_le32(WMI_PEER_160MHZ); + if (arg->bw_320) + cmd->peer_flags |= cpu_to_le32(WMI_PEER_EXT_320MHZ); /* Typically if STBC is enabled for VHT it should be enabled * for HT as well diff --git a/drivers/net/wireless/ath/ath12k/wmi.h b/drivers/net/wireless/ath/ath12k/wmi.h index f0877dbfc5fd..9d0f74122bc6 100644 --- a/drivers/net/wireless/ath/ath12k/wmi.h +++ b/drivers/net/wireless/ath/ath12k/wmi.h @@ -1169,6 +1169,7 @@ enum wmi_tlv_peer_flags { enum wmi_tlv_peer_flags_ext { WMI_PEER_EXT_EHT = 0x00000001, + WMI_PEER_EXT_320MHZ = 0x00000002, }; /** Enum list of TLV Tags for each parameter structure type. */ @@ -3553,6 +3554,7 @@ struct ath12k_wmi_peer_assoc_arg { bool bw_40; bool bw_80; bool bw_160; + bool bw_320; bool stbc_flag; bool ldpc_flag; bool static_mimops_flag; -- 2.39.0