* [PATCH] iw: print out eirp for triplets on scan
@ 2010-10-18 18:37 Luis R. Rodriguez
0 siblings, 0 replies; only message in thread
From: Luis R. Rodriguez @ 2010-10-18 18:37 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-10-18 18:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-18 18:37 [PATCH] iw: print out eirp for triplets on scan Luis R. Rodriguez
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).