Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1514321pxb; Wed, 4 Nov 2020 10:59:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJxilc2IaMafjsWgrdnLixgm+c6tOUiYDabIhLNim7MRiKPsOuzwaWxl8bKqcS5on3jCAnpl X-Received: by 2002:a17:907:2805:: with SMTP id eb5mr15721661ejc.27.1604516360475; Wed, 04 Nov 2020 10:59:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604516360; cv=none; d=google.com; s=arc-20160816; b=fIIO0T5UUZAfRT+Q4Hupfz+HM0hZv5qCL7inj2h4Fb0rNX0FBhdMgkfjLlBOAHCBj0 LTQAl8H7+PY6VC/BIZcIYTPSbkIfC5R0J1p7yzxrZkWy4sJbuh3Fb/XyKmgasmBMsNsq vrhNwH3bitf9+1iyw3NR4aGWa88GFL1GtMhzzP+4Ga/iuSQv7+TtyIDe2mofots1RJQx dXmLUZ9k+MpwWeTQr+9E418bekenj9SNj7imKMHaQohrl7L0g7gjFH7CMj2GnA6GSQfx RO4pBiT1nykrU2spPkqzw+U5fV86azjgAvWH2m6jhNKGqXiESnEzoxocF00K2gkAAP4j /vBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:dmarc-filter :sender:dkim-signature; bh=vbsPoGewpn6vLmgZfRomE55ZGgLa/LsM0vTs9lI+thg=; b=qYNBP5PyuxZIeQfo+eCN2OosaFeMlR5yEEqn74L7PYLUdLgYYsgbgEEqFbY4JWn6Ne ezuc2YEF8qe8sVr97n4zpZSziuOos6aFxtyKyuyb7DHaH0109EHHtJlswIcWuB/XMpQL x5OmHdlBlQzAyOfIMm0oy5+8qJEqMK6lfZH/jQ5Walj+leuu8NEuRzzWtDNVrV/WyWHW J97ZPK5htQp5AVsM5D19UbaH2YfKuigU6GZrqhPdH4dl3IsPKzhBVaYEJWDeKkWMo5XT P11KdY9mAf2bBjpp+WEdpDSw33PGR+fVjZ46Gusyfe8oDs2fesRZkcKd5RWuiNrpWGwI KVNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=EOtTHfoa; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d10si2251540edo.243.2020.11.04.10.58.56; Wed, 04 Nov 2020 10:59:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-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=@mg.codeaurora.org header.s=smtp header.b=EOtTHfoa; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732123AbgKDRrx (ORCPT + 99 others); Wed, 4 Nov 2020 12:47:53 -0500 Received: from z5.mailgun.us ([104.130.96.5]:26472 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727851AbgKDRrx (ORCPT ); Wed, 4 Nov 2020 12:47:53 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1604512072; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=vbsPoGewpn6vLmgZfRomE55ZGgLa/LsM0vTs9lI+thg=; b=EOtTHfoaSOOseHh8A0NbilMpjvAFN7HMho4pBb9HvkR1bPP/CNwZz1JbkG2vTSb46mzcRXuH 6pbvyqvB/KfhsKMAHHtYs8UCGADL/dpRkzgcOCm0DP7ioqHi6W+1S33wnb9xN99wvntVPd+5 A4oUbEouHn+t8jWEmSOyAxN7RSw= X-Mailgun-Sending-Ip: 104.130.96.5 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-west-2.postgun.com with SMTP id 5fa2e94173dcdcdfed3e8f65 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 04 Nov 2020 17:47:45 GMT Sender: periyasa=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 2807EC433A1; Wed, 4 Nov 2020 17:47:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from periyasa-linux.qualcomm.com (blr-c-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: periyasa) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5BCA1C43385; Wed, 4 Nov 2020 17:47:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5BCA1C43385 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=periyasa@codeaurora.org From: Karthikeyan Periyasamy To: ath11k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Karthikeyan Periyasamy Subject: [PATCH] ath11k: fix wmi init configuration Date: Wed, 4 Nov 2020 23:17:00 +0530 Message-Id: <1604512020-25197-1-git-send-email-periyasa@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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 --- 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 11a411b..66331da 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.7.4