]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: print out eirp for triplets on scan
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 18 Oct 2010 18:37:56 +0000 (11:37 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 25 Oct 2010 08:26:45 +0000 (10:26 +0200)
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

diff --git a/scan.c b/scan.c
index 3b5fb60a161f27b637f28b9625c61622edecd37a..486a70e44bdc4608d50d91986a9977c93b98080f 100644 (file)
--- 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;