linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Luis R. Rodriguez" <lrodriguez@atheros.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: <linux-wireless@vger.kernel.org>
Subject: [PATCH] iw: print out eirp for triplets on scan
Date: Mon, 18 Oct 2010 11:37:56 -0700	[thread overview]
Message-ID: <20101018183756.GC22887@tux> (raw)

When debugging country IE parsing when scanning you will not see this:

	Channels [1 - 1] @ 14 dBm
	Channels [2 - 10] @ 21 dBm
	Channels [11 - 11] @ 14 dBm

Instead of this:

	Channels [1 - 1]
	Channels [2 - 10]
	Channels [11 - 11

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
---
 scan.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scan.c b/scan.c
index 3b5fb60..486a70e 100644
--- a/scan.c
+++ b/scan.c
@@ -222,7 +222,7 @@ static void print_country(const uint8_t type, uint8_t len, const uint8_t *data)
 		else
 			end_channel =  triplet->chans.first_channel + (4 * (triplet->chans.num_channels - 1));
 
-		printf("\t\tChannels [%d - %d]\n", triplet->chans.first_channel, end_channel);
+		printf("\t\tChannels [%d - %d] @ %d dBm\n", triplet->chans.first_channel, end_channel, triplet->chans.max_power);
 
 		data += 3;
 		len -= 3;
-- 
1.7.0.4


                 reply	other threads:[~2010-10-18 18:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20101018183756.GC22887@tux \
    --to=lrodriguez@atheros.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).