Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp132044lqz; Fri, 29 Mar 2024 10:48:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWwSjcs7QviqFsiOm5djqwCSro27sVQlQ0mPaRq2j9VionX7TP1FV9Qm1ThaqcRudD4ndsssA66YJ0W9DdcAgl+PfDc77PyOqqxE882gw== X-Google-Smtp-Source: AGHT+IEA46isY0wNUWLECtbbfvf4n2JUCjvvFBA+uvD9uS/F7LnrSmQ3FZiSkcCNBVsLg+idf1LA X-Received: by 2002:ac8:7d11:0:b0:431:5077:e5b0 with SMTP id g17-20020ac87d11000000b004315077e5b0mr4597182qtb.15.1711734507382; Fri, 29 Mar 2024 10:48:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711734507; cv=pass; d=google.com; s=arc-20160816; b=PXjB3+rkCFen3W7dDnw3lkLwN8nlk1OCMbTe1CrUq4m6rA2atvK6RyrmzUoCV1fAaH +XGXLdYjBbbh5/7AFJEALZwipsshxOuUQPP3LgadmeHB6QcnLwDA5p1SJrrOLICs7Kgz rc27KFq34fl8wuCeY1DRPv5nY+8kQbYKgpbK+nLEt5eyU6wfxYdmNIx75QfRSWDwrR/F ampXUg1DazGi0Ns/G0LlgilMHPTVhrJ3tCDjqk+qFi82TVByPgkPAJKJofBzGOJM/PfK l69xHhYz3GZJ55zomv9iZV6a+tH1NU3ifBsHwNfbTxOxzM57U+YP1uYdPkEJivw/IL3b MM/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=jjirybAYx099J6c+03Z5FYGXIF51WLWQui7hWRJscAg=; fh=wEd2Gifuv3cAMpvEgHmPsC+CBnr9y9lQ3U7p6+8Wwvo=; b=LLev+5bByScmQ2B6OAtF3ux40SVLY0PdRyG3r5TyDBguAmTDF1uDDIRp53VBJ2nvlh ybAO91Gj85pD4vk/DCsVMSrfYVRE32h3VeFWpms5T+bSapNuZ19obHagGX5bNVEG4vZf RK9ugAwP+8Yu+y8L31LSLQbJ47sZF0Ld21bOmp6gpGgR2OSWTsmPPwjy7iABEnKamQAo nLgoIGkGPXlPBXfwDsgrDQaskiG5zNBaofGhXJjoXHL7d3rlS0IvkglS3Or2fuUzXl58 dEvyrKOjyusUwmnCM7JR9hVTStPvbdSJ+ucpVmLYW3OzXOteFnLeDPQRoxfHkEzE+XCX ecjQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ai1q2lC+; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-5613-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5613-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h15-20020ac8584f000000b0043182416585si4266244qth.22.2024.03.29.10.48.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 10:48:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5613-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ai1q2lC+; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-5613-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5613-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 174971C21DDB for ; Fri, 29 Mar 2024 17:48:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F2D00130E2D; Fri, 29 Mar 2024 17:48:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="ai1q2lC+" X-Original-To: linux-wireless@vger.kernel.org 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 655FD13777B for ; Fri, 29 Mar 2024 17:48:12 +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=1711734493; cv=none; b=oM33IJhiD4sHVPV8AsCqYVzdpxZLTKPpTjR3qmpTqgXDk1tVB75gCRQbkX2M0San6LKJ7NY6AjwIBPl7iIpjLjROaoLnzq9PkH5Fpq+wqgHT98boRaps3eEOlHMwlLBpeO3/t/3HksFuDYQnsnq7Yt95deOwuLGblx96+1J5aIg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711734493; c=relaxed/simple; bh=fcq2d/UGjvZUMOuWSnymzxf/Ay7HoN+LUH4VL/n3TH0=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=Vp3g8wBhjrTdjh3fzLl9QmtM8enFe4kZZEkg7yN5eNZ+e5kmhMihNffpl77yLdWPYQIKjrkWkvvxxNKp+KP21ELqnv99X5Q4NguWEFphwENG7F8pN8IFdpKsBLRR37W58WtrLWGO+DzXLzA2wfq3WX543hXX/BJ5FEKv1tsNCF0= 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=ai1q2lC+; 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 Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42THepxM013533; Fri, 29 Mar 2024 17:48:09 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=jjirybAYx099J6c+03Z5FYGXIF51WLWQui7hWRJscAg=; b=ai 1q2lC+RPsw0rc+KqNk9ZvLIuna2Vl8Vf6Vu70z4YjxSsmrcMYi+SJDKmssWotHLR VBu3lsIX3XmOEo2oYP54JnpD0Xk5bSI7I+AYSsRsLMpsmYp7YKe34LGihROsCsXe dzZg08wY/cOjW630hGTfJUpCHl9a9GBotsI9qPzVa4/SzQks4R6ChmOpbzF7tJoo JZeqNUBxhCiL+RdOZeO3wr0WN+z1nb2drkVkzvBl08DriRsHA8xEFeXHJME+4ikL Zp2yH7keDBW5eQh224a71Jlg+HjEiuBdCPI6JDlzM5MdhjFH4C55Y+AmoZ5mK9c2 nKR4Jl6DhQ9HORioN/dw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x5vn98u5y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Mar 2024 17:48:08 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42THm8tk022230 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Mar 2024 17:48:08 GMT Received: from [10.110.124.221] (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.40; Fri, 29 Mar 2024 10:48:08 -0700 Message-ID: Date: Fri, 29 Mar 2024 10:48:07 -0700 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/6] wifi: ath12k: add 6 GHz params in peer assoc command Content-Language: en-US To: Pradeep Kumar Chitrapu , CC: , Avula Sri Charan References: <20240325212304.28241-1-quic_pradeepc@quicinc.com> <20240325212304.28241-5-quic_pradeepc@quicinc.com> From: Jeff Johnson In-Reply-To: <20240325212304.28241-5-quic_pradeepc@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: z4zBReJq_r5BSPLGq8RD5QNJHZa3G4QT X-Proofpoint-GUID: z4zBReJq_r5BSPLGq8RD5QNJHZa3G4QT X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-29_13,2024-03-28_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 bulkscore=0 mlxscore=0 clxscore=1015 adultscore=0 priorityscore=1501 mlxlogscore=999 phishscore=0 impostorscore=0 malwarescore=0 suspectscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2403290157 On 3/25/2024 2:23 PM, Pradeep Kumar Chitrapu wrote: > Currently A-MPDU aggregation parameters are not being configured > during peer association for 6 GHz band. Hence, extract these > parameters from station's capabilities received in association > request and send to firmware. Without this, A-MPDU aggregation > is not happening in 6 GHz band. > > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 > > Co-developed-by: Avula Sri Charan > Signed-off-by: Avula Sri Charan > Signed-off-by: Pradeep Kumar Chitrapu > --- > drivers/net/wireless/ath/ath12k/mac.c | 56 ++++++++++++++++++++++++++- > 1 file changed, 55 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/wireless/ath/ath12k/mac.c b/drivers/net/wireless/ath/ath12k/mac.c > index 6d7df18ec424..7e296140439a 100644 > --- a/drivers/net/wireless/ath/ath12k/mac.c > +++ b/drivers/net/wireless/ath/ath12k/mac.c > @@ -1910,6 +1910,59 @@ static void ath12k_peer_assoc_h_he(struct ath12k *ar, > } > } > > +static void ath12k_peer_assoc_h_he_6ghz(struct ath12k *ar, > + struct ieee80211_vif *vif, > + struct ieee80211_sta *sta, > + struct ath12k_wmi_peer_assoc_arg *arg) > +{ > + const struct ieee80211_sta_he_cap *he_cap = &sta->deflink.he_cap; > + struct cfg80211_chan_def def; > + enum nl80211_band band; > + u8 ampdu_factor; > + > + if (WARN_ON(ath12k_mac_vif_chan(vif, &def))) > + return; > + > + band = def.chan->band; > + > + if (!arg->he_flag || band != NL80211_BAND_6GHZ || !sta->deflink.he_6ghz_capa.capa) > + return; > + > + if (sta->deflink.bandwidth == IEEE80211_STA_RX_BW_40) > + arg->bw_40 = true; > + > + if (sta->deflink.bandwidth == IEEE80211_STA_RX_BW_80) > + arg->bw_80 = true; > + > + if (sta->deflink.bandwidth == IEEE80211_STA_RX_BW_160) > + arg->bw_160 = true; > + > + if (sta->deflink.bandwidth == IEEE80211_STA_RX_BW_320) > + arg->bw_320 = true; > + > + arg->peer_he_caps_6ghz = le16_to_cpu(sta->deflink.he_6ghz_capa.capa); > + arg->peer_mpdu_density = > + ath12k_parse_mpdudensity(u32_get_bits(arg->peer_he_caps_6ghz, > + IEEE80211_HE_6GHZ_CAP_MIN_MPDU_START)); ath12k-check complains: drivers/net/wireless/ath/ath12k/mac.c:1946: line length of 93 exceeds 90 columns git blame flags: b2b50e659028d (Pradeep Kumar Chitrapu 2024-03-25 14:23:02 -0700 1946) IEEE80211_HE_6GHZ_CAP_MIN_MPDU_START)); perhaps use a local variable to hold the u32_get_bits() value?