diff options
author | Helmut Schaa <helmut.schaa@googlemail.com> | 2011-12-22 03:36:29 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-01-04 14:30:43 -0500 |
commit | 9931df2692ddb7db092550ce063e674730176ecf (patch) | |
tree | bb53ffb9ce0497c94c8f8b09e37369de06173828 | |
parent | 5d07a3d62f63f3a9ce769c37108f8411c014903e (diff) |
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 <helmut.schaa@googlemail.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800lib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c index e5df380d4fbe..4cae051daebb 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, | |||
4554 | survey->channel_time_ext_busy = busy_ext / 1000; | 4554 | survey->channel_time_ext_busy = busy_ext / 1000; |
4555 | } | 4555 | } |
4556 | 4556 | ||
4557 | if (!(hw->conf.flags & IEEE80211_CONF_OFFCHANNEL)) | ||
4558 | survey->filled |= SURVEY_INFO_IN_USE; | ||
4559 | |||
4557 | return 0; | 4560 | return 0; |
4558 | 4561 | ||
4559 | } | 4562 | } |