Skip to contentSkip to conversation

add support for showing extended capabilities IE

PATCH New Marcel Holtmann 1 participant 1 message May 4, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add support for showing extended capabilities IE

---
 scan.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
scan.c +11 -0
index c503487..1f7ed07 100644
@@ -250,6 +250,16 @@ static void print_rsn(unsigned char type, unsigned char len, unsigned char *data
 	print_wpa("WPA2", cipher_oui, len, data);
 }
 
+static void print_capabilities(unsigned char type, unsigned char len, unsigned char *data)
+{
+	int i;
+
+	printf("\tExtended capabilties:");
+	for(i=0; i<len; i++)
+		printf(" %.02x", data[i]);
+	printf("\n");
+}
+
 static const printfn ieprinters[] = {
 	[0] = print_ssid,
 	[1] = print_supprates,
@@ -259,6 +269,7 @@ static const printfn ieprinters[] = {
 	[42] = print_erp,
 	[48] = print_rsn,
 	[50] = print_supprates,
+	[127] = print_capabilities,
 };
 
 static void print_wifi_wpa(unsigned char type, unsigned char len, unsigned char *data)
Signature · 1 line
1.6.0.6