From patchwork Tue Jul 31 12:11:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Venkateswara Naralasetty X-Patchwork-Id: 10550707 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 3A8C41708 for ; Tue, 31 Jul 2018 12:12:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 235E32AB8B for ; Tue, 31 Jul 2018 12:12:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 216FE2AB6C; Tue, 31 Jul 2018 12:12:04 +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 B70C02AC0C for ; Tue, 31 Jul 2018 12:12:03 +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=OWohtBKdLwY35GfnGXxuEAex2UnIJ/me/t0HV3xN6Aw=; b=sU2 XRkptRlL2RDIjtQyE80nqlomMySGoXEeUqalCXt/9933+GXhmrd8C3Fh1n9Tb7aBsPc48KN55l+tR uJDf5SM+Gu/r/TuENb6eMjNnvIvtDH5BNHdniYO3ORFivtdUkRysCMOg0NdaF/4WVl3PfE72vwb/k ZqL5SUwZLboLXU72D9HDpXIJPYLsKcXKMADRnt0u0a89KyfbAuWiUPvblIId/k1dSfIp9ox0u5w6O Xj0vr73ccMxdz0tTfJQRmW/4dWWS6JAilOdk9gDKlsrZiCNwoKTbmc29/ldSscQm4ifO24ILm1pB8 t60f/auphYVhSk7sEpF8/8iaDY8sS/A==; 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 1fkTVL-0006ZU-6t; Tue, 31 Jul 2018 12:11:55 +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 1fkTV1-0005b3-Rw for ath10k@lists.infradead.org; Tue, 31 Jul 2018 12:11:37 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 7CA2C606DD; Tue, 31 Jul 2018 12:11:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1533039082; bh=ZN2YAfc5DZzjqBX/8MOalFFDNhATADuqMNyWgB7OylI=; h=From:To:Cc:Subject:Date:From; b=GkGlNJM+JwDVVO/VlxCuYOUVpfJpjGgTKavURV/+tAGCRAK7gYVidq6D3rKAI7hj9 pgk7P7qEpZa5u9mXwG83a6MUNn+H31eY8q4cywPef06D5ZybKClDFEFePKg3uNw8Sf MdHnnLBXw041Tn0LY/euooVB0EbUTKfxeJMy5jRg= 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: vnaralas@codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id C9A3B60264; Tue, 31 Jul 2018 12:11:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1533039082; bh=ZN2YAfc5DZzjqBX/8MOalFFDNhATADuqMNyWgB7OylI=; h=From:To:Cc:Subject:Date:From; b=GkGlNJM+JwDVVO/VlxCuYOUVpfJpjGgTKavURV/+tAGCRAK7gYVidq6D3rKAI7hj9 pgk7P7qEpZa5u9mXwG83a6MUNn+H31eY8q4cywPef06D5ZybKClDFEFePKg3uNw8Sf MdHnnLBXw041Tn0LY/euooVB0EbUTKfxeJMy5jRg= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org C9A3B60264 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=vnaralas@codeaurora.org From: Venkateswara Naralasetty To: ath10k@lists.infradead.org Subject: [PATCHv2] ath10k : Fix channel survey dump Date: Tue, 31 Jul 2018 17:41:17 +0530 Message-Id: <1533039077-1532-1-git-send-email-vnaralas@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-20180731_051135_984209_718EED3A X-CRM114-Status: GOOD ( 10.64 ) 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: Venkateswara Naralasetty , 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 Channel active/busy time are showing incorrect(less than previous or sometimes zero) for successive survey dump command. example: Survey data from wlan0 frequency: 5180 MHz [in use] channel active time: 54995 ms channel busy time: 432 ms channel receive time: 0 ms channel transmit time: 59 ms Survey data from wlan0 frequency: 5180 MHz [in use] channel active time: 32592 ms channel busy time: 254 ms channel receive time: 0 ms channel transmit time: 0 ms This patch fix this issue by assigning 'wmi_bss_survey_req_type' as 'WMI_BSS_SURVEY_REQ_TYPE_READ' which accumulate survey data in FW and send survey data to driver upon the driver request. Wrap around is taken care by FW. hardware used : QCA9984 firmware ver : ver 10.4-3.5.3-00057 Signed-off-by: Venkateswara Naralasetty --- v2: * updated commit log. drivers/net/wireless/ath/ath10k/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index f068e2b..db93ab1 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -6837,7 +6837,7 @@ ath10k_mac_update_bss_chan_survey(struct ath10k *ar, struct ieee80211_channel *channel) { int ret; - enum wmi_bss_survey_req_type type = WMI_BSS_SURVEY_REQ_TYPE_READ_CLEAR; + enum wmi_bss_survey_req_type type = WMI_BSS_SURVEY_REQ_TYPE_READ; lockdep_assert_held(&ar->conf_mutex);