Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH v2 1/4] iw: survey: Mark frequency in use
@ 2011-01-11  0:51 Bruno Randolf
  2011-01-11  0:51 ` [PATCH v2 2/4] iw: Add channel busy time to survey Bruno Randolf
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Bruno Randolf @ 2011-01-11  0:51 UTC (permalink / raw)
  To: johannes, linville; +Cc: nbd, linux-wireless

From: Felix Fietkau <nbd@openwrt.org>

Survey: Mark frequency in use according to NL80211_SURVEY_INFO_IN_USE.

This patch comes from OpenWRT. Original author: Felix Fietkau

Cc: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Bruno Randolf <br1@einfach.org>
---
 survey.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/survey.c b/survey.c
index f9f2508..83c54b3 100644
--- a/survey.c
+++ b/survey.c
@@ -44,8 +44,9 @@ static int print_survey_handler(struct nl_msg *msg, void *arg)
 	}
 
 	if (sinfo[NL80211_SURVEY_INFO_FREQUENCY])
-		printf("\tfrequency:\t%u MHz\n",
-			nla_get_u32(sinfo[NL80211_SURVEY_INFO_FREQUENCY]));
+		printf("\tfrequency:\t%u MHz%s\n",
+			nla_get_u32(sinfo[NL80211_SURVEY_INFO_FREQUENCY]),
+			sinfo[NL80211_SURVEY_INFO_IN_USE] ? " [in use]" : "");
 	if (sinfo[NL80211_SURVEY_INFO_NOISE])
 		printf("\tnoise:\t\t%d dBm\n",
 			(int8_t)nla_get_u8(sinfo[NL80211_SURVEY_INFO_NOISE]));


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-01-11 13:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-11  0:51 [PATCH v2 1/4] iw: survey: Mark frequency in use Bruno Randolf
2011-01-11  0:51 ` [PATCH v2 2/4] iw: Add channel busy time to survey Bruno Randolf
2011-01-11  8:32   ` Johannes Berg
2011-01-11  9:20     ` Bruno Randolf
2011-01-11 12:57     ` jpo234
2011-01-11 13:00       ` jpo234
2011-01-11 13:00       ` Johannes Berg
2011-01-11 13:08         ` jpo234
2011-01-11  0:51 ` [PATCH v2 3/4] iw: add multicast rates to IBSS join Bruno Randolf
2011-01-11  0:51 ` [PATCH v2 4/4] iw: Add signal average to station dump information Bruno Randolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox