Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp811523lqh; Thu, 28 Mar 2024 18:24:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXC8iLYHUpMmb+H0u4MJ4LR3f0Xj1u1zO/YBgaNhd2BmiG7OTAHX1vKGqJn62NflhKd7q1ng37uGgORSFbJj322ozNhXWFHCFNOj7CVOg== X-Google-Smtp-Source: AGHT+IFZNIt2I4VASoOyJTJT/ui+QCBwv1nATZV7BGGiimr6VIEGHrOpI1bbzne08TinyH4qoDxt X-Received: by 2002:a50:935a:0:b0:568:d729:a41a with SMTP id n26-20020a50935a000000b00568d729a41amr545774eda.9.1711675468029; Thu, 28 Mar 2024 18:24:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711675468; cv=pass; d=google.com; s=arc-20160816; b=UVKSnoG+HKmLNHkcmIit4sIT/elK651AR8AYixvLCWdI713myYSaH2AoH+LdvcuaR9 4BpUs22JClobTmx0dx6IOugN+gWomlKQC9DIMJn9xhUmZ1f8cHgBkt1GGtel34vj1i30 riTfFJ0HVQc+SUZSCYJRZOewsVHXbKVTZHEUxIxdG/ZcTu3nqnekZ6HkYscbKB4XoRRG z/GplgwPXgCo3kZ6DqhaApg9UaJociHSVDluOkyUqLFgb5iuo20AjkYJP6/w8egRFUsw dRbapna1WfxH2WTRX0mnMIBU1fjJ1LCJZG0HI2lLUiZxMELxZ8YdOlwMd/XaUDrW4TDi 8j8Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=EegkrLJ0Q1CME0DgtPAwFh0g+7lVxuyikd/jJD7CxZk=; fh=MxTMBbpPis+LJg6f98kFxxaQtu01YonzaHniHOzTjro=; b=rbtQ7AVtM6Xia9yaNw4v6IVC58LRiPbhaX9EWVRPkoeYB/VnLUVhVRdKgqoDQtwQFc JpmYv/geKXqmGHSKLP8ezutyE1+LUZN0MtQ54j5SOVJfgofqBvHupi+7rVt/bSdVROoi uqoiR4WNZeKA2uegZsDNrh555BulmLI0d9K6ITMa5BIGH0I6DROpb3jrKlug40sPEhc6 MjrYYvjwsOfqFsqAXKV7uYqipLNnQ0hK4CHP51EV7Xypx9gr2DsMLjTNwvTEoCfc/sp9 8f3EGZd0F1JA/I1Vk+QVxxJeJfs7Z2MhOaWYXOehhGuCAEodOgjd/8y3Ia5D2o1rzqZC b3aQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=K4U0mUBj; 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-5511-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5511-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h21-20020a50cdd5000000b00568b392e408si1314832edj.237.2024.03.28.18.24.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 18:24:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5511-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=K4U0mUBj; 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-5511-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5511-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6DB301F23178 for ; Fri, 29 Mar 2024 01:24:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B753179B1; Fri, 29 Mar 2024 01:24:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="K4U0mUBj" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 B776B179AD for ; Fri, 29 Mar 2024 01:24:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711675464; cv=none; b=WSW+/ttuCkoHQtW8RfAYPG110e5Od1VXfzeh9E4BE8nWfzdV/UfjXG+Cgx9KbX/8/eEXunBzbjBI6MlpNyaoBoWUC8EHXEGBTxfSlhrQYfca+4drhvRItleguRP8MxSmykKHJ3MqJAve7EB8LkOWAkNdso7PggDf7HQlyb4B08o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711675464; c=relaxed/simple; bh=LgQzKiNTOpKdRTyyU17H+NvlQQr8Iut0LOVtUUjw+hY=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Qoa4ndhLrZhBo/l3xAonJPwasGNrZoEuKvwr/E2cW+MWmURoDACAuFCJyaeO7YzE7hpWaoZtuErX8q2eXMJoz0L/kCQs4luilA84oZ9fe2FCDFv1PGXcDyDGs6hbo9NOUXp0yXCeSaGZdEDl5H3/Q/dRXYIgJo7iTuWXfrgfzmY= 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=K4U0mUBj; arc=none smtp.client-ip=205.220.180.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 (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42T01cY6013914; Fri, 29 Mar 2024 01:24:18 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=EegkrLJ0Q1CME0DgtPAwFh0g+7lVxuyikd/jJD7CxZk=; b=K4 U0mUBj0mP3UgCVD7YL51ZAGIGWytPd1lWgGenFSS8weCihFhoDBvGJr1MORY89mQ dnSLwOF4QduCAlEwcn+cOJA3nlFLK/nNtuQ4a2VqQ41xrCROPwr3zepBt2+cW2P+ TxDlSB+AlOygU9OFGo+A1c84baLamFrzujoJZ1N37duEBfNsvDINZTZEgUQ6ZC6R 0IE5LUpTx6W4tx62XVg4O8jvmBvzb5qNCUnGaXNlN/OMXUXkg3zgd+i6qsYxsUW1 a51236vSzw4CG0UGX1XJewQVP9+XtyR94jrom3OeL1jy1wFVI3K/75d+JEaPX3ht IhL1a/KwZhPdm+Rb5aXw== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x5fs88emp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Mar 2024 01:24:18 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42T1OHlH011790 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Mar 2024 01:24:17 GMT Received: from hu-periyasa-blr.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.1118.40; Thu, 28 Mar 2024 18:24:15 -0700 From: Karthikeyan Periyasamy To: CC: , Karthikeyan Periyasamy Subject: [PATCH 2/2] wifi: ath12k: fix link capable flags Date: Fri, 29 Mar 2024 06:53:58 +0530 Message-ID: <20240329012358.2242354-3-quic_periyasa@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240329012358.2242354-1-quic_periyasa@quicinc.com> References: <20240329012358.2242354-1-quic_periyasa@quicinc.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: CWsaVf2OTbQsJ1syaufSFnLSiV8UyflY X-Proofpoint-ORIG-GUID: CWsaVf2OTbQsJ1syaufSFnLSiV8UyflY 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-28_19,2024-03-28_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 priorityscore=1501 phishscore=0 mlxlogscore=999 spamscore=0 suspectscore=0 mlxscore=0 adultscore=0 malwarescore=0 impostorscore=0 clxscore=1015 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2403290010 By default driver supports intra-chip SLO/MLO, the link capability flags reflect this. When the QMI PHY capability learning fails driver not enable the MLO parameter in the host capability QMI request message. In this case, reset the chip link capability flags to zero (SLO/MLO not support) to accurately represent the capabilities. Found in code review. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.1.1-00188-QCAHKSWPL_SILICONZ-1 Signed-off-by: Karthikeyan Periyasamy --- drivers/net/wireless/ath/ath12k/qmi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/ath/ath12k/qmi.c b/drivers/net/wireless/ath/ath12k/qmi.c index 3f0d2b99127a..db8ba5fec2ae 100644 --- a/drivers/net/wireless/ath/ath12k/qmi.c +++ b/drivers/net/wireless/ath/ath12k/qmi.c @@ -2006,6 +2006,8 @@ static void ath12k_host_cap_parse_mlo(struct ath12k_base *ab, int i; if (!ab->qmi.num_radios || ab->qmi.num_radios == U8_MAX) { + ab->mlo_capable_flags = 0; + ath12k_dbg(ab, ATH12K_DBG_QMI, "skip QMI MLO cap due to invalid num_radio %d\n", ab->qmi.num_radios); -- 2.34.1