ath10k: fix survey output channel in-use flag
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43033
This commit is contained in:
parent
d9ea3d2aa8
commit
3772f272d0
@ -0,0 +1,19 @@
|
|||||||
|
From: Felix Fietkau <nbd@openwrt.org>
|
||||||
|
Date: Wed, 22 Oct 2014 18:44:03 +0200
|
||||||
|
Subject: [PATCH] ath10k: add SURVEY_INFO_IN_USE for current channel on survey
|
||||||
|
|
||||||
|
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
|
||||||
|
---
|
||||||
|
|
||||||
|
--- a/drivers/net/wireless/ath/ath10k/mac.c
|
||||||
|
+++ b/drivers/net/wireless/ath/ath10k/mac.c
|
||||||
|
@@ -3975,6 +3975,9 @@ static int ath10k_get_survey(struct ieee
|
||||||
|
|
||||||
|
survey->channel = &sband->channels[idx];
|
||||||
|
|
||||||
|
+ if (ar->rx_channel == survey->channel)
|
||||||
|
+ survey->filled |= SURVEY_INFO_IN_USE;
|
||||||
|
+
|
||||||
|
exit:
|
||||||
|
mutex_unlock(&ar->conf_mutex);
|
||||||
|
return ret;
|
Loading…
Reference in New Issue
Block a user