2014-10-22 16:46:06

by Felix Fietkau

[permalink] [raw]
Subject: [PATCH] ath10k: add SURVEY_INFO_IN_USE for current channel on survey

Signed-off-by: Felix Fietkau <[email protected]>
---
drivers/net/wireless/ath/ath10k/mac.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
index 4670930..bc440dc 100644
--- 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 ieee80211_hw *hw, int idx,

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;
--
2.0.4



2014-10-24 13:35:49

by Kalle Valo

[permalink] [raw]
Subject: Re: [PATCH] ath10k: add SURVEY_INFO_IN_USE for current channel on survey

Felix Fietkau <[email protected]> writes:

> Signed-off-by: Felix Fietkau <[email protected]>

Thanks, applied.

--
Kalle Valo