rt2x00: Mark active channel's survey data as "in use"
authorHelmut Schaa <helmut.schaa@googlemail.com>
Thu, 22 Dec 2011 08:36:29 +0000 (09:36 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 4 Jan 2012 19:30:43 +0000 (14:30 -0500)
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>
drivers/net/wireless/rt2x00/rt2800lib.c

index e5df380d4fbea4c38768918070a1ec0e49da4f0c..4cae051daebbb03ec85b7698649d090e932a4f4f 100644 (file)
@@ -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;
 
 }