diff mbox series

[iw] scan: Decode additional Authentication types

Message ID 20181005211431.18835-1-hauke@hauke-m.de (mailing list archive)
State Accepted
Delegated to: Johannes Berg
Headers show
Series [iw] scan: Decode additional Authentication types | expand

Commit Message

Hauke Mehrtens Oct. 5, 2018, 9:14 p.m. UTC
This adds some more authentication types, the constants are taken from
hostapd. I only tested SAE, FT/SAE and OWE.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 scan.c | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
diff mbox series

Patch

diff --git a/scan.c b/scan.c
index a621813..7695216 100644
--- a/scan.c
+++ b/scan.c
@@ -808,6 +808,36 @@  static void print_auth(const uint8_t *data)
 		case 7:
 			printf("TDLS/TPK");
 			break;
+		case 8:
+			printf("SAE");
+			break;
+		case 9:
+			printf("FT/SAE");
+			break;
+		case 11:
+			printf("IEEE 802.1X/SUITE-B");
+			break;
+		case 12:
+			printf("IEEE 802.1X/SUITE-B-192");
+			break;
+		case 13:
+			printf("FT/IEEE 802.1X/SHA-384");
+			break;
+		case 14:
+			printf("FILS/SHA-256");
+			break;
+		case 15:
+			printf("FILS/SHA-384");
+			break;
+		case 16:
+			printf("FT/FILS/SHA-256");
+			break;
+		case 17:
+			printf("FT/FILS/SHA-384");
+			break;
+		case 18:
+			printf("OWE");
+			break;
 		default:
 			printf("%.02x-%.02x-%.02x:%d",
 				data[0], data[1] ,data[2], data[3]);
@@ -818,6 +848,9 @@  static void print_auth(const uint8_t *data)
 		case 1:
 			printf("OSEN");
 			break;
+		case 2:
+			printf("DPP");
+			break;
 		default:
 			printf("%.02x-%.02x-%.02x:%d",
 				data[0], data[1] ,data[2], data[3]);