Linux wireless drivers development
 help / color / mirror / Atom feed
From: Bruno Randolf <br1@einfach.org>
To: johannes@sipsolutions.net, linville@tuxdriver.com
Cc: nbd@openwrt.org, linux-wireless@vger.kernel.org
Subject: [PATCH v2 4/4] iw: Add signal average to station dump information
Date: Tue, 11 Jan 2011 09:51:23 +0900	[thread overview]
Message-ID: <20110111005123.10231.19628.stgit@localhost6.localdomain6> (raw)
In-Reply-To: <20110111005107.10231.81618.stgit@localhost6.localdomain6>

Print station signal average in station dump.

Signed-off-by: Bruno Randolf <br1@einfach.org>
---
 station.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/station.c b/station.c
index be2301f..6581d50 100644
--- a/station.c
+++ b/station.c
@@ -107,6 +107,9 @@ static int print_sta_handler(struct nl_msg *msg, void *arg)
 	if (sinfo[NL80211_STA_INFO_SIGNAL])
 		printf("\n\tsignal:  \t%d dBm",
 			(int8_t)nla_get_u8(sinfo[NL80211_STA_INFO_SIGNAL]));
+	if (sinfo[NL80211_STA_INFO_SIGNAL_AVG])
+		printf("\n\tsignal avg:\t%d dBm",
+			(int8_t)nla_get_u8(sinfo[NL80211_STA_INFO_SIGNAL_AVG]));
 
 	if (sinfo[NL80211_STA_INFO_TX_BITRATE]) {
 		if (nla_parse_nested(rinfo, NL80211_RATE_INFO_MAX,


      parent reply	other threads:[~2011-01-11  0:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Bruno Randolf [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110111005123.10231.19628.stgit@localhost6.localdomain6 \
    --to=br1@einfach.org \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=nbd@openwrt.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox