From patchwork Tue Apr 8 01:01:23 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pradeep Kumar Chitrapu X-Patchwork-Id: 879341 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 211AC8BE7 for ; Tue, 8 Apr 2025 01:01:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744074107; cv=none; b=Q7VWWKnOGDZZoyIg2c0FF0oWy9j6azhUcescKf3kkHZZeBb6F0nCoKNLN3TJIGGZ24PHtXiylrYkmF8ik4uL7/iQfKtAW/BeKpLbCwOaiKXak0ZTN7sgsOHkCHfOGNdKDgNF5quw9iAHN9dLtXugKAsXQZNr6pRBAxa+I4tN2ZA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744074107; c=relaxed/simple; bh=3OmVm+6RO9CT+ysRY8KgQqX0vBbSx8WFRt3Jp5QTEn0=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=kHZQBoCIcC5TQQJLve78otOj73xRylwmnPicOdRZvkqs4NjIgikoxGqH4O3ud1SgMU2ryY6zSOdw5jy5cu8Mbs6ou0BCc/mMmOSp6S6AOhjME3MV6irmrQ30YKiDyg15bsuog3H9Zqtq4jlKtOJQWR3netXvm6b5VEt4ovBbzJ0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=eIntEhBt; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="eIntEhBt" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 5380N0Xk023191; Tue, 8 Apr 2025 01:01:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=TBlOtsZShVe/NpJ5ONw6cL HPDwVYtt95Nr57S2VXBlk=; b=eIntEhBt21fhaGrNrOFC2YLfqXQXdSJEjaYmoD jP46A9AAMmLNAce5qAuqMzSonFbTws1BpP7HdGNgdTB54kKectEfhbJba1Yhv57/ UUuqCjLRQUQgRAQHaKvoMslIAt1wovEjw6P4OUfeGi24AiE+09QUdHkEhV6sMiWC rZ3HrATsKCV/pWes04VGffwUjeLliU0viaqjhN8ZpyjVu3rLAMbxWHBCRDPsBQGt Tjod3d69PXDmCqZi61Afl+7VrDBUcOhKRbQfl0jI/p2FjGsyRtciVX/fZ/yYd5GQ +EEQDWqtaWQWDgbdDLrQVUkT3nHwW3ClxJqp4dqeGyiS+yvg== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 45twbe61uw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 08 Apr 2025 01:01:42 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 53811fG2009067 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 8 Apr 2025 01:01:41 GMT Received: from ath12k-linux1.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.1544.9; Mon, 7 Apr 2025 18:01:41 -0700 From: Pradeep Kumar Chitrapu To: CC: , Pradeep Kumar Chitrapu Subject: [PATCH V12 0/9] wifi: ath12k: add MU-MIMO and 160 MHz bandwidth support Date: Mon, 7 Apr 2025 18:01:23 -0700 Message-ID: <20250408010132.3699967-1-quic_pradeepc@quicinc.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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-GUID: cOUvAc1GYp8yj_u4butNSHwPoxarlkDW X-Authority-Analysis: v=2.4 cv=T7OMT+KQ c=1 sm=1 tr=0 ts=67f47576 cx=c_pps a=ouPCqIW2jiPt+lZRy3xVPw==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=GEpy-HfZoHoA:10 a=XR8D0OoHHMoA:10 a=ir8cDDC8oFjxVUU6xG4A:9 X-Proofpoint-ORIG-GUID: cOUvAc1GYp8yj_u4butNSHwPoxarlkDW X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1095,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-04-07_07,2025-04-07_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxlogscore=999 lowpriorityscore=0 adultscore=0 phishscore=0 bulkscore=0 mlxscore=0 malwarescore=0 suspectscore=0 priorityscore=1501 spamscore=0 clxscore=1015 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2502280000 definitions=main-2504080005 Add support for 1. enabling MU-MIMO in HE and EHT modes from hardware 2. setting fixed HE rate/GI/LTF 3. 160 MHz bandwidth in HE mode 4. extended NSS bandwidth support Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 changes in v12: - rebase changes in v11: patch 1/9: - fix return values in ath12k_mac_set_he_txbf_conf() and ath12k_mac_vif_recalc_sta_he_txbf() patch 6/9: - fix missing he_mcs initialization in ath12k_mac_init_arvif() changes in v10: patch 6/9: - use ath12k_ahsta_to_sta() - fix rcu_dereference warning in ath12k_mac_set_bitrate_mask_iter() - change return type for ath12k_mac_validate_fixed_rate_settings() - improve readability by adhering to nl80211 definitions of GI NL80211_TXRATE_DEFAULT_GI. Introduce ath12k_mac_nlgi_to_wmigi() for conversion. patch 7/9: - do not change default MODE_11AC_VHT160 in ath12k_mac_get_phymode_vht() as it breaks clients which do not set VHT_CAP_SUPP_CHAN_WIDTH_160MHZ. patch 8/9: - Use IEEE80211_VHT_CAP_EXT_NSS_BW_MASK along with IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ for determining VHT160 phymode. changes in v9: rebase on top of master branch with mlo changes patch 1/9 and 2/9: - fetch link_conf using ath12k_mac_get_link_bss_conf() instead of arvif->vif->bss_conf before mlo patch 6/9 - fetch mcs/nss values from sta->link[] instead of sta->deflink - fix spelling of 'incompatibility' patch 8/9 - replace sta->deflink.addr with arsta->addr in ath12k_peer_assoc_h_vht patch 9/9 - replace sta->deflink.rx_nss with link_sta->rx_nss changes in v8: - rebase and resolve KASAN warnings reported by Jeff in v7, in patch 6/9. Pradeep Kumar Chitrapu (9): wifi: ath12k: push HE MU-MIMO params to hardware wifi: ath12k: push EHT MU-MIMO params to hardware wifi: ath12k: move HE MCS mapper to a separate function wifi: ath12k: generate rx and tx mcs maps for supported HE mcs wifi: ath12k: fix TX and RX MCS rate configurations in HE mode wifi: ath12k: add support for setting fixed HE rate/GI/LTF wifi: ath12k: clean up 80P80 support wifi: ath12k: add support for 160 MHz bandwidth wifi: ath12k: add extended NSS bandwidth support for 160 MHz drivers/net/wireless/ath/ath12k/core.h | 2 + drivers/net/wireless/ath/ath12k/mac.c | 1141 ++++++++++++++++++++---- drivers/net/wireless/ath/ath12k/mac.h | 17 + drivers/net/wireless/ath/ath12k/wmi.c | 13 +- drivers/net/wireless/ath/ath12k/wmi.h | 107 ++- 5 files changed, 1058 insertions(+), 222 deletions(-) base-commit: ac17b1211841c98a9b4c2900ba2a7f457c80cf90