Skip to contentSkip to conversation

iw: print out eirp for triplets on scan

PATCH New Luis R. Rodriguez 1 participant 1 message Oct 18, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iw: print out eirp for triplets on scan

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
---
 scan.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
scan.c +1 -1
index 3b5fb60..486a70e 100644
@@ -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;
Signature · 1 line
1.7.0.4