From patchwork Mon Sep 10 06:24:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balaji Pothunoori X-Patchwork-Id: 10593589 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 192DD14DB for ; Mon, 10 Sep 2018 06:24:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 07B8B28C91 for ; Mon, 10 Sep 2018 06:24:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EE93028E82; Mon, 10 Sep 2018 06:24:58 +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,RCVD_IN_DNSWL_NONE 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 729B928C91 for ; Mon, 10 Sep 2018 06:24:58 +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: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:In-Reply-To: References:List-Owner; bh=UTuwuVap0P7OD4ff03U9LzoyyjcofSyQ+8MMWAGZmAE=; b=W28 K5LUSaIsJ4QpzkYSmhHAC97u6iquVvo3EH+abLGy2sd6l0AQhUkZi7eo0gAo9UD5pTyp1qLI95EyV wo4Q//oqZZM+1PGzksvjUHxTr4Cg4YU4oiedjigkXT0BILSmDMlJx17bmfptwQobq3xZdVGsCsPYp A0s7chkfyq+Mcake7GAhkcYCrJQO57O3HLEcmNBu+bZJiGrp3AQabp6XaNbf5gG0zUIBrQoOWsB4s vX7d+7bWenIx0WNLmbl9Ebkr9rI3+yLG5l45daOZEpHughKqZNL5tbg/ct/URhxsGuwJWheDBHTdF 7MTjO+T8xsNOoCT5e9Ko098Z0mDbt4w==; 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 1fzFd0-0006NF-9A; Mon, 10 Sep 2018 06:24:54 +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 1fzFcw-0006ML-Qx for ath10k@lists.infradead.org; Mon, 10 Sep 2018 06:24:52 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 2F19A6078C; Mon, 10 Sep 2018 06:24:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1536560680; bh=pXydikGl/HaBHx1kCCXxQDjd9Vz7h6MvEhK9yV7UAac=; h=From:To:Cc:Subject:Date:From; b=C34Iw7T32hGz/JZwV80fdmCShpI2SrYxQWDX4XDIferwq43cx1nAlSgaFqI26/bNr DZfPX7ycMglsfVjxi2cAyiT4pYsoaWV1L9N2+fp1+Kmmdf/zscy67pqvwbjmRXfSQN i31SKRb6HpVozZqfTtx514G5rotcVdMVfKxktEfI= 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 89944601B4; Mon, 10 Sep 2018 06:24:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1536560679; bh=pXydikGl/HaBHx1kCCXxQDjd9Vz7h6MvEhK9yV7UAac=; h=From:To:Cc:Subject:Date:From; b=Zs5JorK9xezBCCMaVSv+FyeUa7XjcTDxDOv0HnDZbtru7rQ7rHWuevQrwArKP+zlS wUX92nqHJX6Wne0SnwNQl9gQW+wST+bUgSFFg75NOPTelaJMZTjSNX8fIac070+BJb r1gANu0M5J0OikBwvGK8yJEJcq+fL1+9ZerFTLNk= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 89944601B4 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: ath10k@lists.infradead.org Subject: [PATCH v3] ath10k: management tx ack rssi capability check Date: Mon, 10 Sep 2018 11:54:30 +0530 Message-Id: <1536560670-4292-1-git-send-email-bpothuno@codeaurora.org> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180909_232450_913572_2439F98E X-CRM114-Status: UNSURE ( 9.03 ) X-CRM114-Notice: Please train this message. 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 --- v3: modified ack rssi support check to newly added command. cfg80211/mac80211 changes are already merged hence modified ath10k patch alone. 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 97548f9..84c6ecd 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -8479,9 +8479,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_ACK_SIGNAL_SUPPORT); /* * on LL hardware queues are managed entirely by the FW