Skip to contentSkip to conversation

rt2x00: Mark active channel's survey data as "in use"

PATCH In review Helmut Schaa 2 participants 2 messages Dec 22, 2011 – Dec 27, 2011 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/net/wireless/rt2x00/rt2800lib.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/net/wireless/rt2x00/rt2800lib.c +3 -0
index 14fc8d1..bb70e89 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
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.

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
index 14fc8d1..bb70e89 100644
@@ -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