Linux wireless drivers development
 help / color / mirror / Atom feed
* iw: [PATCH] display station noise
@ 2009-10-20 12:16 Holger Schurig
  0 siblings, 0 replies; only message in thread
From: Holger Schurig @ 2009-10-20 12:16 UTC (permalink / raw)
  To: linux-wireless, Johannes Berg

Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>

Index: iw/link.c
===================================================================
--- iw.orig/link.c	2009-10-20 12:32:55.000000000 +0200
+++ iw/link.c	2009-10-20 12:33:26.000000000 +0200
@@ -119,6 +119,7 @@ static int print_link_sta(struct nl_msg 
 		[NL80211_STA_INFO_RX_PACKETS] = { .type = NLA_U32 },
 		[NL80211_STA_INFO_TX_PACKETS] = { .type = NLA_U32 },
 		[NL80211_STA_INFO_SIGNAL] = { .type = NLA_U8 },
+		[NL80211_STA_INFO_NOISE] = { .type = NLA_U8 },
 		[NL80211_STA_INFO_TX_BITRATE] = { .type = NLA_NESTED },
 		[NL80211_STA_INFO_LLID] = { .type = NLA_U16 },
 		[NL80211_STA_INFO_PLID] = { .type = NLA_U16 },
@@ -157,6 +158,9 @@ static int print_link_sta(struct nl_msg 
 	if (sinfo[NL80211_STA_INFO_SIGNAL])
 		printf("\tsignal: %d dBm\n",
 			(int8_t)nla_get_u8(sinfo[NL80211_STA_INFO_SIGNAL]));
+	if (sinfo[NL80211_STA_INFO_NOISE])
+		printf("\tnoise: %d dBm\n",
+			(int8_t)nla_get_u8(sinfo[NL80211_STA_INFO_NOISE]));
 
 	if (sinfo[NL80211_STA_INFO_TX_BITRATE]) {
 		if (nla_parse_nested(rinfo, NL80211_RATE_INFO_MAX,

-- 
http://www.holgerschurig.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-10-20 12:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-20 12:16 iw: [PATCH] display station noise Holger Schurig

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