rt2x00: Mark active channel's survey data as "in use"
PATCH 1/1 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 <[email protected]>
--- drivers/net/wireless/rt2x00/rt2800lib.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/net/wireless/rt2x00/rt2800lib.c +3 -0
@@ -4686,6 +4686,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 ; }
Signature · 1 line
1.7.7
Quoted 5 lines · Helmut Schaa
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 <[email protected]>
Acked-by Ivo van Doorn <[email protected]>
Quoted 21 lines
---
drivers/net/wireless/rt2x00/rt2800lib.c | 3 +++1 files changed, 3 insertions(+), 0 deletions(-)drivers/net/wireless/rt2x00/rt2800lib.c +3
-1@@ -4686,6 +4686,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; } --1.7.7