linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] add support for showing power constraint IE
@ 2009-05-04 16:06 Marcel Holtmann
  2009-05-04 16:10 ` Johannes Berg
  0 siblings, 1 reply; 14+ messages in thread
From: Marcel Holtmann @ 2009-05-04 16:06 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless, Marcel Holtmann

---
 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


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2009-05-04 19:03 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-04 16:06 [PATCH] add support for showing power constraint IE Marcel Holtmann
2009-05-04 16:10 ` Johannes Berg
2009-05-04 16:35   ` Marcel Holtmann
2009-05-04 16:38     ` Johannes Berg
2009-05-04 16:50       ` Marcel Holtmann
2009-05-04 16:54         ` Johannes Berg
2009-05-04 17:07           ` Marcel Holtmann
2009-05-04 17:35             ` Johannes Berg
2009-05-04 17:48               ` Marcel Holtmann
2009-05-04 18:03                 ` Johannes Berg
2009-05-04 18:06                   ` Johannes Berg
2009-05-04 19:03               ` Marcel Holtmann
2009-05-04 17:23           ` Marcel Holtmann
2009-05-04 18:10             ` Johannes Berg

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).