Search Linux Wireless

[PATCH] add support for showing power constraint IE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 scan.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/scan.c b/scan.c
index 9b58c29..206b6e8 100644
--- a/scan.c
+++ b/scan.c
@@ -176,6 +176,11 @@ static void print_country(const uint8_t type, uint8_t len, const uint8_t *data)
 	printf("\n");
 }
 
+static void print_powerconstraint(const uint8_t type, uint8_t len, const uint8_t *data)
+{
+	printf(" %d db\n", data[0]);
+}
+
 static void print_erp(const uint8_t type, uint8_t len, const uint8_t *data)
 {
 	if (data[0] == 0x00)
@@ -407,6 +412,7 @@ static const struct ie_print ieprinters[] = {
 	[3] = { "DS Paramater set", print_ds, 1, 1, },
 	[5] = PRINT_IGN,
 	[7] = { "Country", print_country, 3, 255, },
+	[32] = { "Power constraint", print_powerconstraint, 1, 1, },
 	[42] = { "ERP", print_erp, 1, 255, },
 	[48] = { "RSN", print_rsn, 2, 255, },
 	[50] = { "Extended supported rates", print_supprates, 0, 255, },
-- 
1.6.0.6

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux