Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1426656lqd; Thu, 25 Apr 2024 15:40:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXPh4j7kHhyfMHLDy1pA4nVFeVn6eBef+fUyrSkRIMCeie6dNHE5FFcurHTS2LfaGpLGjWM7XCKCi87qFw0CCZKda7MwhsBIlECQLp7tg== X-Google-Smtp-Source: AGHT+IFdqGomcKUzsaE37wgJHzXnmq6D2Q1FNzZih6kXHmaERJyqkFxdb8lQheaPqw+P0HhbYexU X-Received: by 2002:a05:6214:2a8e:b0:6a0:81ba:1530 with SMTP id jr14-20020a0562142a8e00b006a081ba1530mr7007769qvb.9.1714084823191; Thu, 25 Apr 2024 15:40:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714084823; cv=pass; d=google.com; s=arc-20160816; b=OlhlDKv+VtYZPYlxOYM4qlS9iPyIReQEmEAoIChL6mKNj3HKGyoBSB/086qhAgkfvC 16tiaTsj1pJedmWTHhh2tAtGavmrIPIoKeiccDECAL05Stx3OWNMDE+aXpF5k0IgbulD ig3X+7Vw8VeqMuxrOrXImvBroj6dwEppJaIsxqAH730RE4nP75uQWbS5G54qmBve2yQo GfGiHx7tuEJPKrAIeWEq7nWVRVFJssimsk/bjlFKm6CXvHc8LVTSAcFXp/QKnYfrnCtY cbQvfa5HT1jOE07o3lGiD3h9oxA1Z2W/O1/9FMMAPrKD6xRjKBb0Lbr1Kh1JePJPZMNF P1wQ== 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=3Y0qkvTTLGDDMHjevLrB9xvkRZGRG8z5t23AfLcLXi4=; fh=ZJd1Cv0f1FnFBW3x7HWVT6b/r//XzdmWo65rIkKPaf8=; b=QlUbCw20GNS/3vVII+vgZxh1WIUAmc9/qQlvNbKJVZIfqIrWdC+ZxOHYuB05ktGP2j qAIwK3Etrmi0ncGHDkyrnpYXSr9WMWOS7DA5PaXGhyVC3TBdN+u7w5Z44WST1EipHrUy 81V08tdEin6zuPveIhumyFQX7n2hNxdy8eTyumCQ3u5maGgmmZbosDdzb8qXTq5ydNX6 P91VZH4gmYZfLzNhx8L1Pr8Ol5bDUk3TTYOhAqVX7G5r4DaEwJ19oPMGLm+egOvA4/n0 dVD4dX6yJehlz/vMxJqc/D8e8xaJh7IPJ9kakPgPbVCtZfm50nR+FgJAAXkR1LeyBlYg gKVw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=IxlCzTbN; 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-6900-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6900-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 c1-20020a0ceb41000000b006a05aafe41asi4301894qvq.294.2024.04.25.15.40.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 15:40:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6900-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=IxlCzTbN; 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-6900-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6900-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 D26861C214BC for ; Thu, 25 Apr 2024 22:40:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 93FFE6BFA8; Thu, 25 Apr 2024 22:40:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="IxlCzTbN" 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 2428B2599 for ; Thu, 25 Apr 2024 22:40:17 +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=1714084819; cv=none; b=eY76cc4UWP/e1XmAJLLoB7E+nneI2PaUDBpzvbd2XqF3Nsh00WvIsrh4vhzZFB28LGHb108r8qQUddU0l+vqFzaRNBlw2ivD4p2HJs2lO4vBav6C+/WcpscfppVJO5OqmcwyY1TXmZMd3qxkPQl+/DeybalODiUCNCb6Ha9SyMw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714084819; c=relaxed/simple; bh=+rIWMqkiVllcJy6nJIfVJSLFTgbhWDKTnrpZAvaHgr0=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=PrDQsdv2QQFVAMiDXJvjoRW3njEhmFjmJ3UE0CG8TNWfm2XNW2De8Ut5trw0d6nHVCsWMR7TOiObt4uBsiL9awhw2mUUOkXYDLVPdRTx33+O41AGS1mEhWSHyEeVF42HJ7xefVa/Hsltlbp36AqLm8GTBlvm9yzXvAcGggPPeWY= 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=IxlCzTbN; 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 (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 43PGQoXn005941; Thu, 25 Apr 2024 22:40:14 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=3Y0qkvTTLGDDMHjevLrB9xvkRZGRG8z5t23AfLcLXi4=; b=Ix lCzTbNpNQrAdGC195K1T4g5xB24H1Y5/jK/S/D5tt0aZ/MjfrVlZurC8LHFnq4WB 4418xxgmp2jUB3okR1fzCJN9wR57gush3GYdfFsSjAI0xmJxDiya0YZbmAtjaQnI xoBnwKlHpnMzR+V+QVc1ZGpbaIXYx/eLmyObbWy91/nRv08KDJSJuJTfeABgbJES WHoUSnCqn/jLaq7eNrnqgAYHunJfgWxtJMdSLVNapOas0q3TFhYaRhFw1698WI6F UVhaYQOVwHa7j7Sch6FFPlS0QP7OceVvV9dEpFxwKNUKkO7O6ZNVQXoSlhuSXTda za97VgI4dXKapbT16Lxg== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xqtph8r1s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Apr 2024 22:40:13 +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 43PMe6lu003912 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Apr 2024 22:40:06 GMT Received: from [10.110.19.58] (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, 25 Apr 2024 15:40:05 -0700 Message-ID: <034950cb-cf04-443f-a13c-b7d7a47ff0d7@quicinc.com> Date: Thu, 25 Apr 2024 15:40:04 -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 v3 02/10] wifi: ath12k: push HE MU-MIMO params from hostapd to hardware Content-Language: en-US To: Pradeep Kumar Chitrapu , CC: , Muna Sinada References: <20240424201959.935-1-quic_pradeepc@quicinc.com> <20240424201959.935-3-quic_pradeepc@quicinc.com> From: Jeff Johnson In-Reply-To: <20240424201959.935-3-quic_pradeepc@quicinc.com> Content-Type: text/plain; charset="UTF-8" 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: Mm9avUMmY5TpLMxj-WND8KNqxbbpfO0i X-Proofpoint-ORIG-GUID: Mm9avUMmY5TpLMxj-WND8KNqxbbpfO0i X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-04-25_21,2024-04-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 spamscore=0 suspectscore=0 bulkscore=0 impostorscore=0 lowpriorityscore=0 adultscore=0 mlxscore=0 phishscore=0 mlxlogscore=999 malwarescore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404250166 On 4/24/2024 1:19 PM, Pradeep Kumar Chitrapu wrote: > Currently, only the HE IE in management frames is updated with > respect to MU-MIMO configurations, but this change is not > reflected in the hardware. Add support to propagate MU-MIMO > configurations to the hardware as well. > > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 > > Co-developed-by: Muna Sinada > Signed-off-by: Muna Sinada > Signed-off-by: Pradeep Kumar Chitrapu > --- > drivers/net/wireless/ath/ath12k/mac.c | 214 +++++++++++++++++--------- > drivers/net/wireless/ath/ath12k/mac.h | 15 ++ > drivers/net/wireless/ath/ath12k/wmi.h | 28 +--- > 3 files changed, 155 insertions(+), 102 deletions(-) > [...] > static void ath12k_bss_assoc(struct ath12k *ar, > struct ath12k_vif *arvif, > struct ieee80211_bss_conf *bss_conf) drivers/net/wireless/ath/ath12k/mac.c:2816:13: warning: context imbalance in 'ath12k_bss_assoc' - wrong count at exit see reason below > { > struct ieee80211_vif *vif = arvif->vif; > struct ath12k_wmi_peer_assoc_arg peer_arg; > + struct ieee80211_sta_he_cap he_cap; > struct ieee80211_sta *ap_sta; > struct ath12k_peer *peer; > bool is_auth = false; > + u32 hemode = 0; > int ret; > > lockdep_assert_held(&ar->conf_mutex); > @@ -2556,8 +2660,28 @@ static void ath12k_bss_assoc(struct ath12k *ar, > > ath12k_peer_assoc_prepare(ar, vif, ap_sta, &peer_arg, false); > > + /* he_cap here is updated at assoc success for sta mode only */ > + he_cap = ap_sta->deflink.he_cap; > + > + /* ap_sta->deflink.he_cap must be protected by rcu_read_lock */ > + ret = ath12k_mac_vif_recalc_sta_he_txbf(ar, vif, &he_cap, &hemode); > + if (ret) { > + ath12k_warn(ar->ab, "failed to recalc he txbf for vdev %i on bss %pM: %d\n", > + arvif->vdev_id, bss_conf->bssid, ret); > + return; bad return within rcu_read_lock() critical section > + } > + > rcu_read_unlock(); >