Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2873905ybb; Sun, 22 Mar 2020 09:44:29 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvJxn42PJsFWpGyNZO4daQcEKVxAPneAUMzvSme7HJgmJo/5OgqyHUer+U8EXk3QG/Y9bsP X-Received: by 2002:a9d:f05:: with SMTP id 5mr14350093ott.263.1584895469224; Sun, 22 Mar 2020 09:44:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584895469; cv=none; d=google.com; s=arc-20160816; b=kkPYPM4g2UlrJQO9HvK5TvFe2MdaF/EjMgDW4aIky0cPa3DlHF96XcD1haTC6z/blP 0xj/1VUde0Q2aQhT+mihOhYm8RDQwttQWenWL67hwF4DJMgVJO/NoVpa6tF+fXou9Tav tKpkzNUfihAoBDZdF9wrSPS1GHTMfJJ1Wg6+CeEay3Q/MvUtMEix0RPLAwH8vz4audwi 6Dr/Sqz89XCsDRVj0+CYmiOMheG7m4+ga7hiv+8+GPpKemaDLOdZUl7YPaIa/k5Q+Tv6 PdIaQ/yPmmkgErV3big+RUYdmjWtAjKZ6zSeMtN6MvFjSkkrqW3WgKJPEQHV/m6l24Yj 77HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:dkim-signature:from; bh=vVaaSR2QSAnF+TuOCsCWAufniv8HQeUxkuPuJmVkiHU=; b=q+3GO4awp2Q1//C4/bMgyCJJ8/CmipYFKd+YKXIHcCaAkM3trsIAxEHK/gloikXZxw aKUhPqq1IugEnbPph86RI8efzMXGFTCNfXyUyrxw6MbupNzFPULR+H8EGoLvwfL/xzbW BrVmJyv1U6nmMKXHdky7Da3Df3p5Wf6ErZ/Q5UDkZ/J69hhXbza2WMMFTu60gf8OGbB8 HTOyjAnLn0Jeq1A/ug9t2KdFAVt+DVE7kaWVw2qjDRkwoYn1SffIi8+38CSiq9NCDnPL 4fv228qT12eZ7pQvfqODlskQFsRwPLnXrqtfWom/nQRCPtcq6NB5wz8LnEfa2bW5w3Tj phqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wetzel-home.de header.s=wetzel-home header.b=j4xDqqlT; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wetzel-home.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g22si6407294otn.56.2020.03.22.09.44.17; Sun, 22 Mar 2020 09:44:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@wetzel-home.de header.s=wetzel-home header.b=j4xDqqlT; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wetzel-home.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725997AbgCVQnb (ORCPT + 99 others); Sun, 22 Mar 2020 12:43:31 -0400 Received: from 6.mo2.mail-out.ovh.net ([87.98.165.38]:34722 "EHLO 6.mo2.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725881AbgCVQnb (ORCPT ); Sun, 22 Mar 2020 12:43:31 -0400 X-Greylist: delayed 453 seconds by postgrey-1.27 at vger.kernel.org; Sun, 22 Mar 2020 12:43:30 EDT Received: from player799.ha.ovh.net (unknown [10.108.57.49]) by mo2.mail-out.ovh.net (Postfix) with ESMTP id 543141CDAD0 for ; Sun, 22 Mar 2020 17:35:56 +0100 (CET) Received: from awhome.eu (p4FF9153C.dip0.t-ipconnect.de [79.249.21.60]) (Authenticated sender: postmaster@awhome.eu) by player799.ha.ovh.net (Postfix) with ESMTPSA id BFCDC10AFE330; Sun, 22 Mar 2020 16:35:54 +0000 (UTC) From: Alexander Wetzel DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wetzel-home.de; s=wetzel-home; t=1584894953; bh=B//u3IXQXK9MkuMs/A45x5uxqtBpK8/P76uS7Ye3D8w=; h=From:To:Cc:Subject:Date; b=j4xDqqlTQnXLlh8Ym1hs6GjGOQfOxMJdmpbSK1wEwSOQOddefdMWR1mQrESTPHmJn UVUZXeXzuru5VOZOe48pzvXVhzNoHip+GXlv70kFLzsbQdWb8vd++L5qABRnLtExlz +SdzDC+c8OyQKVbjuPLBZof38bJzbR76BtX5qp2s= To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Alexander Wetzel Subject: [PATCH] iw: Complete Extended Key ID detection Date: Sun, 22 Mar 2020 17:35:24 +0100 Message-Id: <20200322163524.1338224-1-alexander@wetzel-home.de> X-Mailer: git-send-email 2.25.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 10658612947258318023 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrudegiedgleduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomheptehlvgigrghnuggvrhcuhggvthiivghluceorghlvgigrghnuggvrhesfigvthiivghlqdhhohhmvgdruggvqeenucfkpheptddrtddrtddrtddpjeelrddvgeelrddvuddriedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpqdhouhhtpdhhvghlohepphhlrgihvghrjeelledrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpegrlhgvgigrnhguvghrseifvghtiigvlhdqhhhomhgvrdguvgdprhgtphhtthhopehlihhnuhigqdifihhrvghlvghsshesvhhgvghrrdhkvghrnhgvlhdrohhrgh Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org info: update text to have a unified spelling scan: flag Extended Key ID in scans Signed-off-by: Alexander Wetzel --- Add Extended Key ID detection to scans. While at it I also updated the spelling for Extended Key ID to use capital letters to unify it with how it's written in IEEE 802.11 and all other references. Here a short sample: BSS d0:ab:d5:82:2e:0e(on wlp2s0) TSF: 1839642566 usec (0d, 00:30:39) freq: 2422 beacon interval: 100 TUs capability: ESS Privacy ShortPreamble ShortSlotTime (0x0431) signal: -33.00 dBm last seen: 5180 ms ago Information elements from Probe Response frame: SSID: Brix Supported rates: 6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 DS Parameter set: channel 3 Country: DE Environment: Indoor/Outdoor Channels [1 - 13] @ 22 dBm ERP: RSN: * Version: 1 * Group cipher: CCMP * Pairwise ciphers: CCMP * Authentication suites: PSK SAE FT/SAE * Capabilities: 16-PTKSA-RC 1-GTKSA-RC MFP-required MFP-capable Extended-Key-ID (0x20cc) BSS Load: * station count: 0 * channel utilisation: 0/255 * available admission capacity: 0 [*32us] info.c | 2 +- scan.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/info.c b/info.c index 97240f6..8d4cffc 100644 --- a/info.c +++ b/info.c @@ -698,7 +698,7 @@ broken_combination: "PMKSA caching supported in AP mode"); ext_feat_print(tb, SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD, "band specific RSSI thresholds for scheduled scan"); - ext_feat_print(tb, EXT_KEY_ID, "extended key ID support"); + ext_feat_print(tb, EXT_KEY_ID, "Extended Key ID support"); ext_feat_print(tb, STA_TX_PWR, "TX power control per station"); ext_feat_print(tb, SAE_OFFLOAD, "SAE offload support"); ext_feat_print(tb, VLAN_OFFLOAD, "VLAN offload support"); diff --git a/scan.c b/scan.c index 1ccea94..57d4e9c 100644 --- a/scan.c +++ b/scan.c @@ -1018,6 +1018,8 @@ static void _print_rsn_ie(const char *defcipher, const char *defauth, printf(" SPP-AMSDU-capable"); if (capa & 0x0800) printf(" SPP-AMSDU-required"); + if (capa & 0x2000) + printf(" Extended-Key-ID"); printf(" (0x%.4x)\n", capa); data += 2; len -= 2; -- 2.25.2