From patchwork Thu Jul 19 13:26:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balaji Pothunoori X-Patchwork-Id: 10534403 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8A804601D2 for ; Thu, 19 Jul 2018 13:27:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 74F7E2989F for ; Thu, 19 Jul 2018 13:27:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 69847298A8; Thu, 19 Jul 2018 13:27:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 19A7D2989F for ; Thu, 19 Jul 2018 13:27:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731743AbeGSOKO (ORCPT ); Thu, 19 Jul 2018 10:10:14 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:44274 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731696AbeGSOKO (ORCPT ); Thu, 19 Jul 2018 10:10:14 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id B9642607B9; Thu, 19 Jul 2018 13:27:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1532006823; bh=Cwq6t2L0rdF4ubn4W0daTn4XQPUtmPBc1aoxVYoUW4I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Wcstr7+c/Lyjyo66ZvWlF6yv0XPm7A36K3n9MwKN8aRh+qoiZccgCW3Y8lqIBR0uZ QNCcDL443qF90Uysc+Ht38lqrd32pEFmv2JgDAYpCOmMgX8xztzVAtpRh+4nLA0b1f 9ZDJyifD8JpjiStgWV/Gn2PxsAoY/7jCEW/GpA+Q= Received: from tejas.qca.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: bpothuno@codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 05C1760B12; Thu, 19 Jul 2018 13:27:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1532006823; bh=Cwq6t2L0rdF4ubn4W0daTn4XQPUtmPBc1aoxVYoUW4I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Wcstr7+c/Lyjyo66ZvWlF6yv0XPm7A36K3n9MwKN8aRh+qoiZccgCW3Y8lqIBR0uZ QNCcDL443qF90Uysc+Ht38lqrd32pEFmv2JgDAYpCOmMgX8xztzVAtpRh+4nLA0b1f 9ZDJyifD8JpjiStgWV/Gn2PxsAoY/7jCEW/GpA+Q= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 05C1760B12 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=bpothuno@codeaurora.org From: Balaji Pothunoori To: johannes@sipsolutions.net, ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Balaji Pothunoori Subject: [PATCH v2 3/3] ath10k: management tx ack rssi capability check Date: Thu, 19 Jul 2018 18:56:29 +0530 Message-Id: <1532006789-32454-4-git-send-email-bpothuno@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1532006789-32454-1-git-send-email-bpothuno@codeaurora.org> References: <1532006789-32454-1-git-send-email-bpothuno@codeaurora.org> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Adding WMI service check for management tx ack rssi support; this is done to maintain common avg ack signal in user level for both data and management tx ack packet. Tested on QCA4019(fw version-10.4-3.2.1-00063). Signed-off-by: Balaji Pothunoori --- Note: This patch depends on following patch https://patchwork.kernel.org/patch/10343153/ drivers/net/wireless/ath/ath10k/mac.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 1ebd9c63..70d8489 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -8410,9 +8410,10 @@ int ath10k_mac_register(struct ath10k *ar) wiphy_ext_feature_set(ar->hw->wiphy, NL80211_EXT_FEATURE_SET_SCAN_DWELL); - if (test_bit(WMI_SERVICE_TX_DATA_ACK_RSSI, ar->wmi.svc_map)) + if (test_bit(WMI_SERVICE_TX_DATA_ACK_RSSI, ar->wmi.svc_map) || + test_bit(WMI_SERVICE_HTT_MGMT_TX_COMP_VALID_FLAGS, ar->wmi.svc_map)) wiphy_ext_feature_set(ar->hw->wiphy, - NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT); + NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT); /* * on LL hardware queues are managed entirely by the FW