Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9074992pxu; Mon, 28 Dec 2020 06:04:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJxi/nWfISheHvWfcDfGhoqVhUibhzSMc9Dr437Hs0vtCB/2yuTTx0mc+Co1cWAhUZ5S6+ue X-Received: by 2002:a17:906:d101:: with SMTP id b1mr22831584ejz.80.1609164260007; Mon, 28 Dec 2020 06:04:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609164260; cv=none; d=google.com; s=arc-20160816; b=B+aeT5sM3aNOHKpIdQc7R+hCAjH8nzXrjI2cZ6DV3Ri/ppNA4zVjMPK30UEpL0VJQ+ CpLbKZXLMjsEFY8O1SRFQuZCu3ctk5SR2E5hWyFGbHAhdMFFI/rGcm8YqYlL7OdIO9xm mtg87gJ00nLrPzJw5YigcFI2BNiadg4p4YEWSl3sqrE4HrFRYSHeSIp80r7PzCzPe31g i7oAsegod4m081xS4KDjSyPy0cn1Qd4lm5W9XWMkzB2vV03xTSAModZ93muPbp7VDnR1 pqtuPn5k7b2AIGziK63egkeaGB0IRRd3zGUokvmwDUas3ESKsP5EtoeDpwI7aBJ55qzF 2Ukg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=J/t+r87Y5hRS0xppRDktkjDWfKFQ6P6B/nBTwB0yUoM=; b=OMjK4Bdf+zPmSwxm+MHlFCyNlSMLEI5lrQuY6ilBHCxb94eutjRzVToXvozZ+CuvBu tcONjMmetx8spBcuWB1mJVK+LzyveDG5Z3saeJlz0j5evUzBWS6vpQyj1mktSSgENxqH LkhX4aHHVSyCSyqVbekgeDtd4Ze+Ct27bW/IbPIcHbR8aYXFW00xpcoPaBfFSp7p061k XDh1FKF2BhWis22TX5dpYKgjwdlntOT9MHEtSODzilTeCFWwMkeFIy/kPuRCckQ4RLJ7 pwG63BrKEKMl+hdN0rn6GEEwJX22xphKIDHGBAYTkKtqeLqdpTwzmYyKYaCDwOr/Gtl1 cylQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ck7FqFLQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jg30si17458885ejc.353.2020.12.28.06.03.55; Mon, 28 Dec 2020 06:04:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ck7FqFLQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436823AbgL1OCP (ORCPT + 99 others); Mon, 28 Dec 2020 09:02:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:34824 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436819AbgL1OCP (ORCPT ); Mon, 28 Dec 2020 09:02:15 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 66EA4207A9; Mon, 28 Dec 2020 14:01:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164119; bh=LyuqagvAZnhjEVnA+8H7ULKSX4ToYQRil6fFJvJUzKo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ck7FqFLQU1O9S4/wKBbCTelnjM3nNuyw3Vfu3gA4oJ2HDwnRbEVeM2xh2zF5kxFhg bjgpizu+TSNx17qFp1D0uOBMtSrEYO4rZhv7o9lLyazD3p1WuRzFN1vXRJvoQf0Ge2 mGVBmeX0L+7LD3To7NujzntEWZ8sZF0HHsAf5ioY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Karthikeyan Periyasamy , Kalle Valo , Sasha Levin Subject: [PATCH 5.10 067/717] ath11k: fix wmi init configuration Date: Mon, 28 Dec 2020 13:41:05 +0100 Message-Id: <20201228125024.206493233@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Karthikeyan Periyasamy [ Upstream commit 36c7c640ffeb87168e5ff79b7a36ae3a020bd378 ] Assign the correct hw_op ath11k_init_wmi_config_ipq8074 to the hw IPQ8074. Also update the correct TWT radio count. Incorrect TWT radio count cause TWT feature fails on radio2 because physical device count is hardcoded to 2. so set the value dynamically. Found this during code review. Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.1.0.1-01238-QCAHKSWPL_SILICONZ-2 Fixes: 2d4bcbed5b7d53e1 ("ath11k: initialize wmi config based on hw_params") Signed-off-by: Karthikeyan Periyasamy Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/1604512020-25197-1-git-send-email-periyasa@codeaurora.org Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath11k/hw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/hw.c b/drivers/net/wireless/ath/ath11k/hw.c index 11a411b76fe42..66331da350129 100644 --- a/drivers/net/wireless/ath/ath11k/hw.c +++ b/drivers/net/wireless/ath/ath11k/hw.c @@ -127,7 +127,7 @@ static void ath11k_init_wmi_config_ipq8074(struct ath11k_base *ab, config->beacon_tx_offload_max_vdev = ab->num_radios * TARGET_MAX_BCN_OFFLD; config->rx_batchmode = TARGET_RX_BATCHMODE; config->peer_map_unmap_v2_support = 1; - config->twt_ap_pdev_count = 2; + config->twt_ap_pdev_count = ab->num_radios; config->twt_ap_sta_count = 1000; } @@ -157,7 +157,7 @@ static int ath11k_hw_mac_id_to_srng_id_qca6390(struct ath11k_hw_params *hw, const struct ath11k_hw_ops ipq8074_ops = { .get_hw_mac_from_pdev_id = ath11k_hw_ipq8074_mac_from_pdev_id, - .wmi_init_config = ath11k_init_wmi_config_qca6390, + .wmi_init_config = ath11k_init_wmi_config_ipq8074, .mac_id_to_pdev_id = ath11k_hw_mac_id_to_pdev_id_ipq8074, .mac_id_to_srng_id = ath11k_hw_mac_id_to_srng_id_ipq8074, }; -- 2.27.0