Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp355870lqs; Thu, 13 Jun 2024 12:00:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW9X60WIv3AqNokAy4fC0fjCF95S+4kO0+R65l4MYJBbqv+Km2TFoCN68W6sDzD5Jqs3nuWNidO/7nJkOkxT/GiNB2njJ/5PG6PTU+ELg== X-Google-Smtp-Source: AGHT+IFQtfwSIMgHR2P77uaSuWG8jm9DOSF6xJ35/kHzma6YWxisHckmkvVyGwuJgQL3xWcPG0W0 X-Received: by 2002:a05:6102:2d8:b0:48c:4186:a41 with SMTP id ada2fe7eead31-48dae3d5ac3mr503408137.30.1718305211447; Thu, 13 Jun 2024 12:00:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718305211; cv=pass; d=google.com; s=arc-20160816; b=StQBzJYfI5gopUvUqk8JAkAzP9mrkHvsorNzkOKY3n5A0ZMePA42fh9y73apsWSCuX HhaxCJfiVk4bgXzS7n64qx7622lu10n14Jzy/7e0aSOAcxbFCfW359vC17MwoC6EpDKm 7yoM8ONjnkyfKUfhAD3xINvcuunM3jKlDWg+9U0BbcTOWExk38RxJQ/HlUzlFyy2XuvT gD25jK2fC+zb5AMIsBsJfqh52Q1m6r7YZlnXhqlmGWt94kS3B3npteBqQBOIt9/qsXCd f1GA2vR095DqCisQEg/D9DyZBD9ZN49DIm21z1Xv0s2Vrslp2ysblpL0NcmQcpgoqOVq U6+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=upQgT8P20mZATnR5JEfmI8BYfTGq3iAmLUZx9tflOdE=; fh=s5JeFDVltgR0x5iryAXG+oZusy0bahzvK4uj9dNA8to=; b=XRswcMZthFl47zzeO8zLQnlciHqqoP8p66wivKmQTL/Xaym3e3v55j0cJlJEbsDtpf LhrMUipDPxOEY2y+aXEt3owQWHLrM/sVcjla1ujurAzGda5cvLqIxo+yzR2K1vePfrsM X97+cAxpcrfi6q4m5IofIqR9N4gE1Itl2GkRXKfKVE+8HKBT9V8aIKjwmA+b7Za7OcMW qO2hiCy7xB/Ta25Up0BOS0u0aOYJAGzQzdcuu8KhP2Q2pgJNbDDuGfCpngVcfaycghU9 l7hy01tszn2hX2TZPzbsi7RGxWZ71l8PSMWTJey1Ibwlx91e80aNc5L6sA3gGWjKyl4D LFGw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=me5Msm5v; 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-8986-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8986-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 af79cd13be357-798abe55962si225222385a.548.2024.06.13.12.00.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 12:00:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8986-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=me5Msm5v; 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-8986-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8986-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 CBFDA1C2426C for ; Thu, 13 Jun 2024 19:00:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 56EBC137758; Thu, 13 Jun 2024 19:00:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="me5Msm5v" 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 BF03D14B095 for ; Thu, 13 Jun 2024 19:00:06 +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=1718305208; cv=none; b=OZvWu19iTrIE5ig76wmNUlsOZg9scO4ZiF7hiYVkuSlxhSmm5vGfR80Vnq8sWhnDr4BGyaHzO3zpBbF1DiMTCcMJjAXJpPjZr8iO3RYSa41UAKkdBY0xQL8r+ZmGoac+PfgRSJjiNSCDvD+sQD4LLDqrZ+vf9EwogAo7voG0ZBo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718305208; c=relaxed/simple; bh=nx6A49FdZbbbtBh3n26TxmIDeL9ouQLSgIYAe0kyJrM=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=ZlyzzNnUT49bh0VkLweb3ChyqBMxNHS0LsED0T5j3SDOcQwfN74wN30shx5EiFbmAo157prh3sRwomCtwHDHtVajjVu3lc6Thp/E+jPLl+8ynL3BsOpv2CE32VqBNSGQwNXr2/AzxFxNY3ELNzWTcWM1mDkaoTqXuF6CZEECM+8= 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=me5Msm5v; 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 (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45DItYKX025163; Thu, 13 Jun 2024 19:00:02 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= upQgT8P20mZATnR5JEfmI8BYfTGq3iAmLUZx9tflOdE=; b=me5Msm5v0zZrpQyM WlANJoAguu85CxZ92Kmk+Ds+rZJTWH6O+onvjvO7kHU3YCLJTfXZGcOlLbqL+RaO H3WdEqyYFBBrjhlWRg3HdHNxoR85xMHfXgFR30tWQWYT8IuvBMsl76rnGJ2beAAK SKKCOTN0xSpS4k7vyxSE8aRtMlR6r0VH2PNS+BI/H+VKGPzqAMvLhLkpEKaAE47m B1UghzdNSxu3fXY9m9acFyDFrUzHdJURu8OGJ3PZYwQi91nvfaG6mqooKyHcJBZq oj6WiGVFTgD0QA7IKmSM/lc4HMCgel7ki1ZfUngSuUwqLYwpTAEWLUEIdvshtEwj b8iXIA== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yr6fbr0bm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 13 Jun 2024 19:00:01 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.19/8.17.1.19) with ESMTPS id 45DJ01Bi001656 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 13 Jun 2024 19:00:01 GMT Received: from [10.110.103.68] (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; Thu, 13 Jun 2024 12:00:00 -0700 Message-ID: Date: Thu, 13 Jun 2024 11:59:58 -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] wifi: ath12k: fix legacy peer association due to missing HT or 6 GHz capabilities Content-Language: en-US To: Jeff Johnson , CC: , Aditya Kumar Singh , Zachary Smith References: <20240612225336.2303119-1-quic_pradeepc@quicinc.com> <760d99d1-c709-43b5-9d15-c2a0fef98b66@quicinc.com> From: Pradeep Kumar Chitrapu In-Reply-To: <760d99d1-c709-43b5-9d15-c2a0fef98b66@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit 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: pRyuQGM8xdCurD6cDvj3vs4pwnkyjIsE X-Proofpoint-ORIG-GUID: pRyuQGM8xdCurD6cDvj3vs4pwnkyjIsE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-13_11,2024-06-13_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 adultscore=0 lowpriorityscore=0 impostorscore=0 bulkscore=0 phishscore=0 priorityscore=1501 clxscore=1015 suspectscore=0 spamscore=0 malwarescore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406130135 On 6/13/2024 8:42 AM, Jeff Johnson wrote: > On 6/12/2024 3:53 PM, Pradeep Kumar Chitrapu wrote: >> Currently SMPS configuration failed when the Information >> Elements (IEs) did not contain HT or 6 GHz capabilities. This >> caused legacy peer association to fail as legacy peers do not >> have HT or 6 GHz capabilities. Fix this by not returning an >> error when SMPS configuration fails due to the absence of HT >> or 6 GHz capabilities. >> >> Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 >> >> Fixes: f0e61dc7ecf9 ("wifi: ath12k: refactor SMPS configuration") >> Reported-by: Aditya Kumar Singh > > Per checkpatch: > WARNING: Reported-by: should be immediately followed by Closes: with a URL to the report > #17: > Reported-by: Aditya Kumar Singh > > Is there a separate public bug report from Aditya? Hi Jeff, No, this was internal report and does not have weblink associated with it. Also, do not want to ignore reportee. Thanks Pradeep > >> Reported-by: Zachary Smith >> Closes: https://lore.kernel.org/all/CAM=znoFPcXrn5GhDmDmo50Syic3-hXpWvD+vkv8KX5o_ZTo8kQ@mail.gmail.com/ >> Signed-off-by: Pradeep Kumar Chitrapu >> --- >> drivers/net/wireless/ath/ath12k/mac.c | 9 ++++++--- >> 1 file changed, 6 insertions(+), 3 deletions(-) >> >> diff --git a/drivers/net/wireless/ath/ath12k/mac.c b/drivers/net/wireless/ath/ath12k/mac.c >> index 2259ce22cc8b..fa9f6656a06f 100644 >> --- a/drivers/net/wireless/ath/ath12k/mac.c >> +++ b/drivers/net/wireless/ath/ath12k/mac.c >> @@ -2255,9 +2255,6 @@ static int ath12k_get_smps_from_capa(const struct ieee80211_sta_ht_cap *ht_cap, >> const struct ieee80211_he_6ghz_capa *he_6ghz_capa, >> int *smps) >> { >> - if (!ht_cap->ht_supported && !he_6ghz_capa->capa) >> - return -EOPNOTSUPP; >> - >> if (ht_cap->ht_supported) >> *smps = u16_get_bits(ht_cap->cap, IEEE80211_HT_CAP_SM_PS); >> else >> @@ -2277,6 +2274,9 @@ static void ath12k_peer_assoc_h_smps(struct ieee80211_sta *sta, >> const struct ieee80211_sta_ht_cap *ht_cap = &sta->deflink.ht_cap; >> int smps; >> >> + if (!ht_cap->ht_supported && !he_6ghz_capa->capa) >> + return; >> + >> if (ath12k_get_smps_from_capa(ht_cap, he_6ghz_capa, &smps)) >> return; >> >> @@ -2756,6 +2756,9 @@ static int ath12k_setup_peer_smps(struct ath12k *ar, struct ath12k_vif *arvif, >> { >> int smps, ret = 0; >> >> + if (!ht_cap->ht_supported && !he_6ghz_capa) >> + return 0; >> + >> ret = ath12k_get_smps_from_capa(ht_cap, he_6ghz_capa, &smps); >> if (ret < 0) >> return ret; >> >> base-commit: e72048809ec7355a947415ae6836d2eb7fdcda39 >