* [PATCH v2] ath10k: fix debugfs pktlog_filter write
@ 2016-03-11 6:16 akolli
2016-03-18 7:57 ` Valo, Kalle
0 siblings, 1 reply; 2+ messages in thread
From: akolli @ 2016-03-11 6:16 UTC (permalink / raw)
To: ath10k; +Cc: akolli, linux-wireless, Anilkumar Kolli, stable
From: Anilkumar Kolli <akolli@qti.qualcomm.com>
It is observed that, we are disabling the packet log if we write same
value to the pktlog_filter for the second time. Always enable pktlogs
on non zero filter.
Fixes: 90174455ae05 ("ath10k: add support to configure pktlog filter")
Cc: stable@vger.kernel.org
Signed-off-by: Anilkumar Kolli <akolli@qti.qualcomm.com>
---
v2:
* added stable@vger.kernel.org
drivers/net/wireless/ath/ath10k/debug.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ath/ath10k/debug.c b/drivers/net/wireless/ath/ath10k/debug.c
index 076d29b53ddf..0f834646e6a7 100644
--- a/drivers/net/wireless/ath/ath10k/debug.c
+++ b/drivers/net/wireless/ath/ath10k/debug.c
@@ -2019,7 +2019,12 @@ static ssize_t ath10k_write_pktlog_filter(struct file *file,
goto out;
}
- if (filter && (filter != ar->debug.pktlog_filter)) {
+ if (filter == ar->debug.pktlog_filter) {
+ ret = count;
+ goto out;
+ }
+
+ if (filter) {
ret = ath10k_wmi_pdev_pktlog_enable(ar, filter);
if (ret) {
ath10k_warn(ar, "failed to enable pktlog filter %x: %d\n",
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] ath10k: fix debugfs pktlog_filter write
2016-03-11 6:16 [PATCH v2] ath10k: fix debugfs pktlog_filter write akolli
@ 2016-03-18 7:57 ` Valo, Kalle
0 siblings, 0 replies; 2+ messages in thread
From: Valo, Kalle @ 2016-03-18 7:57 UTC (permalink / raw)
To: Kolli, Anilkumar
Cc: ath10k@lists.infradead.org, akolli@codeaurora.org,
linux-wireless@vger.kernel.org, stable@vger.kernel.org
<akolli@qti.qualcomm.com> writes:
> From: Anilkumar Kolli <akolli@qti.qualcomm.com>
>
> It is observed that, we are disabling the packet log if we write same
> value to the pktlog_filter for the second time. Always enable pktlogs
> on non zero filter.
>
> Fixes: 90174455ae05 ("ath10k: add support to configure pktlog filter")
> Cc: stable@vger.kernel.org
> Signed-off-by: Anilkumar Kolli <akolli@qti.qualcomm.com>
Applied, thanks.
--
Kalle Valo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-03-18 7:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-11 6:16 [PATCH v2] ath10k: fix debugfs pktlog_filter write akolli
2016-03-18 7:57 ` Valo, Kalle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).