From: Marcel Holtmann <marcel@holtmann.org>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org, Marcel Holtmann <marcel@holtmann.org>
Subject: [PATCH] add support for showing power constraint IE
Date: Mon, 4 May 2009 09:06:07 -0700 [thread overview]
Message-ID: <1241453167-3720-1-git-send-email-marcel@holtmann.org> (raw)
---
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
next reply other threads:[~2009-05-04 16:06 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-04 16:06 Marcel Holtmann [this message]
2009-05-04 16:10 ` [PATCH] add support for showing power constraint IE 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1241453167-3720-1-git-send-email-marcel@holtmann.org \
--to=marcel@holtmann.org \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.