From patchwork Fri Oct 5 21:14:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hauke Mehrtens X-Patchwork-Id: 10628745 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 545E215A6 for ; Fri, 5 Oct 2018 21:14:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 38FFA29C2B for ; Fri, 5 Oct 2018 21:14:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2A45829C44; Fri, 5 Oct 2018 21:14:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3379429C2B for ; Fri, 5 Oct 2018 21:14:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725807AbeJFEPN (ORCPT ); Sat, 6 Oct 2018 00:15:13 -0400 Received: from mx1.mailbox.org ([80.241.60.212]:58212 "EHLO mx1.mailbox.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725761AbeJFEPM (ORCPT ); Sat, 6 Oct 2018 00:15:12 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 610F749402; Fri, 5 Oct 2018 23:14:41 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id ngw0F0MPN3lG; Fri, 5 Oct 2018 23:14:40 +0200 (CEST) From: Hauke Mehrtens To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Hauke Mehrtens Subject: [PATCH iw] scan: Decode additional Authentication types Date: Fri, 5 Oct 2018 23:14:31 +0200 Message-Id: <20181005211431.18835-1-hauke@hauke-m.de> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- scan.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) 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]);