linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] iw: survey: Mark frequency in use
@ 2011-01-07  6:00 Bruno Randolf
  2011-01-07  6:00 ` [PATCH 2/4] iw: Add channel busy time to survey Bruno Randolf
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Bruno Randolf @ 2011-01-07  6:00 UTC (permalink / raw)
  To: johannes, linville; +Cc: nbd, linux-wireless

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] 6+ messages in thread

end of thread, other threads:[~2011-01-08  3:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-07  6:00 [PATCH 1/4] iw: survey: Mark frequency in use Bruno Randolf
2011-01-07  6:00 ` [PATCH 2/4] iw: Add channel busy time to survey Bruno Randolf
2011-01-07  6:00 ` [PATCH 3/4] iw: add multicast rates to IBSS join Bruno Randolf
2011-01-07  6:00 ` [PATCH 4/4] iw: Add signal average to station dump information Bruno Randolf
2011-01-07 11:00 ` [PATCH 1/4] iw: survey: Mark frequency in use Johannes Berg
2011-01-08  3:44   ` Bruno Randolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).