From: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: <linux-wireless@vger.kernel.org>
Subject: [PATCH] iw: print all capability bits
Date: Mon, 17 Dec 2012 15:30:41 +0200 [thread overview]
Message-ID: <4433962.e7lXLf3bMQ@lx-vladimir> (raw)
In-Reply-To: <3409795.QNLPYz7pkM@lx-vladimir>
To continue with capability: not all bits from .11n printed as well.
Patch below adds missing bits.
I'll prepare patch for kernel with the #define's as well
>From 9f7b0078e7008e1735d980a4bb583efd2321d9ed Mon Sep 17 00:00:00 2001
From: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Date: Mon, 17 Dec 2012 15:26:47 +0200
Subject: [PATCH] iw: print all capability bits
Print all bits from capability info, as defined in the IEEE802.11-2012
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
---
scan.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/scan.c b/scan.c
index 295a51c..a07f16a 100644
--- a/scan.c
+++ b/scan.c
@@ -25,7 +25,10 @@
#define WLAN_CAPABILITY_QOS (1<<9)
#define WLAN_CAPABILITY_SHORT_SLOT_TIME (1<<10)
#define WLAN_CAPABILITY_APSD (1<<11)
+#define WLAN_CAPABILITY_RADIO_MEASURE (1<<12)
#define WLAN_CAPABILITY_DSSS_OFDM (1<<13)
+#define WLAN_CAPABILITY_DEL_BACK (1<<14)
+#define WLAN_CAPABILITY_IMM_BACK (1<<15)
/* DMG (60gHz) 802.11ad */
/* type - bits 0..1 */
#define WLAN_CAPABILITY_DMG_TYPE_MASK (3<<0)
@@ -1265,6 +1268,10 @@ static void print_capa_11n(__u16 capa)
printf(" ESS");
if (capa & WLAN_CAPABILITY_IBSS)
printf(" IBSS");
+ if (capa & WLAN_CAPABILITY_CF_POLLABLE)
+ printf(" CfPollable");
+ if (capa & WLAN_CAPABILITY_CF_POLL_REQUEST)
+ printf(" CfPollReq");
if (capa & WLAN_CAPABILITY_PRIVACY)
printf(" Privacy");
if (capa & WLAN_CAPABILITY_SHORT_PREAMBLE)
@@ -1281,8 +1288,14 @@ static void print_capa_11n(__u16 capa)
printf(" ShortSlotTime");
if (capa & WLAN_CAPABILITY_APSD)
printf(" APSD");
+ if (capa & WLAN_CAPABILITY_RADIO_MEASURE)
+ printf(" RadioMeasure");
if (capa & WLAN_CAPABILITY_DSSS_OFDM)
printf(" DSSS-OFDM");
+ if (capa & WLAN_CAPABILITY_DEL_BACK)
+ printf(" DelayedBACK");
+ if (capa & WLAN_CAPABILITY_IMM_BACK)
+ printf(" ImmediateBACK");
}
static int print_bss_handler(struct nl_msg *msg, void *arg)
--
1.7.10.4
next prev parent reply other threads:[~2012-12-17 13:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-17 11:32 [PATCH] iw: print capability info for 60GHz band Vladimir Kondratiev
2012-12-17 13:30 ` Vladimir Kondratiev [this message]
2012-12-21 9:27 ` Johannes Berg
2012-12-23 8:36 ` [PATCH v2] iw: print capability info for DMG (60GHz band) Vladimir Kondratiev
2013-01-04 15:47 ` 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=4433962.e7lXLf3bMQ@lx-vladimir \
--to=qca_vkondrat@qca.qualcomm.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox