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: 10550697 X-Patchwork-Delegate: kvalo@adurom.com 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 A7E09157D for ; Tue, 31 Jul 2018 12:11:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8AFAF2AC6A for ; Tue, 31 Jul 2018 12:11:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 891E92AC93; Tue, 31 Jul 2018 12:11:36 +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 0900E2ABF1 for ; Tue, 31 Jul 2018 12:11:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732159AbeGaNvZ (ORCPT ); Tue, 31 Jul 2018 09:51:25 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:54994 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731863AbeGaNvY (ORCPT ); Tue, 31 Jul 2018 09:51:24 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 8D4BF60275; 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 Cc: linux-wireless@vger.kernel.org, Venkateswara Naralasetty 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 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 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);