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: 10534407 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 D51AF600F4 for ; Thu, 19 Jul 2018 13:27:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BD41B2989F for ; Thu, 19 Jul 2018 13:27:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B193E298A8; Thu, 19 Jul 2018 13:27:16 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6A8A82989F for ; Thu, 19 Jul 2018 13:27:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=wqrSmb/lBNoKETiKKeGqs2q4SLO4BtNQqg8s9x1jxRc=; b=tvrPErD5LV7Kf86CbuP5xnjh/Y W86Ir/Xc8NSem2FFw5I6oWzabBIYCUTVUp9Tm6k39xygnDy9k4WPRAU9LpdLyJ7vnXyvVsPyw8En3 szuK4/LiCzyKu9/W9muG569oY1kJ2N5LaXysojLUUmrVOT4eFUN5nwl7OGcxxdOoLD/PKAOTRhaet DCf8Hx1UExOWDBKw5NCcFPoCw/tzJ6zGJI3Gf/JVDEWGDA/0BuTON9DVOj0d6zu+r4q3nzrRKLiJR ANLPG3WCLlMJGLHqymykgH6MkAHBSg4rc1PCg7NKdiCYhicKQCbHEQ0diL4D0ITV6pDkolZ9/a55Z pBEodSHw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fg8xc-0001Ba-6j; Thu, 19 Jul 2018 13:27:12 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fg8xX-00017f-FA for ath10k@lists.infradead.org; Thu, 19 Jul 2018 13:27:09 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id F093060481; 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180719_062707_527779_AB4CA229 X-CRM114-Status: GOOD ( 10.15 ) X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Balaji Pothunoori , linux-wireless@vger.kernel.org MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.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