From: Helmut Schaa Date: Thu, 22 Dec 2011 08:36:29 +0000 (+0100) Subject: rt2x00: Mark active channel's survey data as "in use" X-Git-Tag: v3.12-rc1~4160^2~21^2~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9931df2692ddb7db092550ce063e674730176ecf;p=kernel%2Fkernel-generic.git rt2x00: Mark active channel's survey data as "in use" This is just a cosmetical fix since we only return survey data for the active channel but it allows iw to show that the survey data is for the currently used channel. Signed-off-by: Helmut Schaa Acked-by: Ivo van Doorn Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c index e5df380..4cae051 100644 --- a/drivers/net/wireless/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/rt2x00/rt2800lib.c @@ -4554,6 +4554,9 @@ int rt2800_get_survey(struct ieee80211_hw *hw, int idx, survey->channel_time_ext_busy = busy_ext / 1000; } + if (!(hw->conf.flags & IEEE80211_CONF_OFFCHANNEL)) + survey->filled |= SURVEY_INFO_IN_USE; + return 0; }