From patchwork Wed Apr 26 14:41:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: c_vnaral@qti.qualcomm.com X-Patchwork-Id: 9701459 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.web.codeaurora.org (Postfix) with ESMTP id 9DA46603F4 for ; Wed, 26 Apr 2017 14:41:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D2F52022B for ; Wed, 26 Apr 2017 14:41:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 81CC72839C; Wed, 26 Apr 2017 14:41:38 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 095002022B for ; Wed, 26 Apr 2017 14:41:38 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=JWDNEXlWCBgxeVpw+D5fIoGspoaXp51vK5sv7rvsmow=; b=Y8kTW7F29f3zXb RV3OAAqMqBcdsTJV2Z03HO1xhV39NaEIjp4TdaIGP84QW/DytKwPgtV+NwRBx5dDpmmVNLOeoPhCB T/H18JpW4UTZqw8LQwol/ZMTYBEcqi6lFr6vdeEskEOS1m6EvWCQDjp2l0A+6GB58Nw5uq8UDJ0dS iAI5p6VzdLSaJCd8GwKHbTmW+VFa3fbylTgxNt1jlasj2uZINtasJF4jAVjD13//JJjwd7+C5LC2Q 2Spw5BtZAFRuJmVvlcGTUDf2oYVBNg7hplJ0BWHkx/NzwrfinI+Io8Mgzs+jM6UvZOtykIacVEN77 KWQsRuYyrlZNcPyDgj9g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d3O8H-0006bJ-TP; Wed, 26 Apr 2017 14:41:29 +0000 Received: from wolverine01.qualcomm.com ([199.106.114.254]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d3O8A-0006YV-VH for ath10k@lists.infradead.org; Wed, 26 Apr 2017 14:41:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1493217682; x=1524753682; h=from:to:cc:subject:date:message-id:mime-version; bh=L86kADe6AzxTgYcz4ek6t0Bl1gDgMmDGItSBx/aSRgU=; b=g1odM+UVMl8PzTpV1DWesNZSUvc1MCvrOunV8yd42HWMVrG/1XZ8ZSmh zfFwLfoI8kCzSmISvc4wqJWuS3czcDEVCEBDQud/vnAZ5XgKUPDxOb3GV nYHKpUV83HeGHxatwHNh3SuUm8ks95qgFBtWUIe0cl86nMZcHziYrYh1y s=; X-IronPort-AV: E=Sophos;i="5.37,254,1488873600"; d="scan'208";a="281178507" Received: from unknown (HELO Ironmsg04-L.qualcomm.com) ([10.53.140.111]) by wolverine01.qualcomm.com with ESMTP; 26 Apr 2017 07:41:00 -0700 X-IronPort-AV: E=McAfee;i="5800,7501,8510"; a="1336486239" X-MGA-submission: =?us-ascii?q?MDFgsBCMr4+2qiavf4KDyQklJx828pwrtvo53T?= =?us-ascii?q?hJ5FkjBNNWcVUGlaJ5RU10FZ38H9OFvpCjeDSslZ3LN+7VbjfLHYQUKA?= =?us-ascii?q?bTVLQlqQc9EJBoD2IXQ48gm6NdC3pOeb7q9veaBuNvB6b6B3sXziQ4gp?= =?us-ascii?q?v+?= Received: from nasanexm01f.na.qualcomm.com ([10.85.0.32]) by Ironmsg04-L.qualcomm.com with ESMTP/TLS/RC4-SHA; 26 Apr 2017 07:41:00 -0700 Received: from aphydexm01f.ap.qualcomm.com (10.252.127.15) by NASANEXM01F.na.qualcomm.com (10.85.0.32) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Wed, 26 Apr 2017 07:40:59 -0700 Received: from localhost (10.80.80.8) by aphydexm01f.ap.qualcomm.com (10.252.127.15) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Wed, 26 Apr 2017 20:10:53 +0530 From: Venkateswara Rao Naralasetty To: Subject: [PATCH] ath10k : Fix channel survey dump Date: Wed, 26 Apr 2017 20:11:38 +0530 Message-ID: <1493217698-22451-1-git-send-email-c_vnaral@qti.qualcomm.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01F.na.qualcomm.com (10.85.0.32) To aphydexm01f.ap.qualcomm.com (10.252.127.15) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170426_074123_121960_36052D50 X-CRM114-Status: UNSURE ( 7.11 ) 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: Venkateswara Rao Naralasetty , linux-wireless@vger.kernel.org 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'. Firmware ver 10.4-3.4-00082 Hardware QCA4019 Signed-off-by: Venkateswara Rao Naralasetty --- 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 9977829..87a9b55 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -6621,7 +6621,7 @@ static void ath10k_reconfig_complete(struct ieee80211_hw *hw, 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);