Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4351822ybv; Mon, 10 Feb 2020 17:39:59 -0800 (PST) X-Google-Smtp-Source: APXvYqz8VO7EDTSlGifIjHShkcC0gWYr6PRhcmSOLY/S41fSCMIyujJ2HCnmEE+FwCjkw3C26tz+ X-Received: by 2002:aca:48cd:: with SMTP id v196mr1457449oia.102.1581385199215; Mon, 10 Feb 2020 17:39:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581385199; cv=none; d=google.com; s=arc-20160816; b=0wYfQCQRftqqeU8uiwIhhAK8jHmY1udWWsP6JUjhmdFavrHgpIJ6q7KWj9+zpA2z8E t63xgMqqGw7okvCRRNJ8Q2Y16DfQmd/iJTL8MeZkot4Mwk8cxaV/Twgt45uEpn+VChFV +sU7BeVf5L7rJaGSr5JrI0yTcVwJz4/ttocJ/L29gTCDSn63OGn3eNUlaCP/sZpeSwy0 rMbpVyNGPn3esgqK6bcODkCnKoMMOTDZ64LIBzt/D4YxCJFnRIqNZ9yGrgNkMqdxJ3Rv +8/wDrOyHBdWMY/fLR8v4a9CKuGmJtkEnxhwiU2n4pvoQcLPzWDEfIXabeCFdlXcSLXE /0Ow== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=1f8qISwVSmx4PKrqMTAlRCe7S03qUzBTKJWgnlNOzU8=; b=iNkmVPFmRLQKG5AH2I6nEuLi9ubG5rFAMLj7p85WU7xo4Z1g36wXBiTJv1AO6/IoDD UC8oaLmHwwmf+HmIcFYoWRtS2BD9eyL15LCKbVV6gYVwdVo9HAhusw1rZ2t0KlQUbgDg ZrTyNDNVpXh1e6ZzDPjVEoPgL2s6DWbGgHCoQqFDAvUxcTMRrY7SEwQxA+PiIvIWelXI N9C2AFzk/5k2ppono8w+a3iO41pApYdSP1ww6o2ZLSor/ryffjtHn/mpoHcoVynpCc+b qrkpjfsK3J0riNWXpFSOGPNVicq8FMbRq5Vos6X0Tn6aH9aSvuwC5sQ28JfkRx9IaEbq nmgQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t4si1124248otc.160.2020.02.10.17.39.29; Mon, 10 Feb 2020 17:39:59 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727543AbgBKBWe (ORCPT + 99 others); Mon, 10 Feb 2020 20:22:34 -0500 Received: from smail.rz.tu-ilmenau.de ([141.24.186.67]:56116 "EHLO smail.rz.tu-ilmenau.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727530AbgBKBWd (ORCPT ); Mon, 10 Feb 2020 20:22:33 -0500 Received: from isengard.fritz.box (unknown [93.209.10.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smail.rz.tu-ilmenau.de (Postfix) with ESMTPSA id EC5B0580068; Tue, 11 Feb 2020 02:22:31 +0100 (CET) From: Markus Theil To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Markus Theil Subject: [PATCH 2/2] iw: scan: parse AP Channel Report Date: Tue, 11 Feb 2020 02:22:27 +0100 Message-Id: <20200211012227.6907-2-markus.theil@tu-ilmenau.de> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200211012227.6907-1-markus.theil@tu-ilmenau.de> References: <20200211012227.6907-1-markus.theil@tu-ilmenau.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Signed-off-by: Markus Theil --- scan.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/scan.c b/scan.c index c03ca2a..e6c3736 100644 --- a/scan.c +++ b/scan.c @@ -732,6 +732,21 @@ static void print_erp(const uint8_t type, uint8_t len, const uint8_t *data, printf("\n"); } +static void print_ap_channel_report(const uint8_t type, uint8_t len, const uint8_t *data, + const struct print_ies_data *ie_buffer) +{ + uint8_t oper_class = data[0]; + int i; + + printf("\n"); + printf("\t\t * operating class: %d\n", oper_class); + printf("\t\t * channel(s):"); + for (i = 1; i < len; ++i) { + printf(" %d", data[i]); + } + printf("\n"); +} + static void print_cipher(const uint8_t *data) { if (memcmp(data, ms_oui, 3) == 0) { @@ -1697,6 +1712,7 @@ static const struct ie_print ieprinters[] = { [42] = { "ERP", print_erp, 1, 255, BIT(PRINT_SCAN), }, [45] = { "HT capabilities", print_ht_capa, 26, 26, BIT(PRINT_SCAN), }, [47] = { "ERP D4.0", print_erp, 1, 255, BIT(PRINT_SCAN), }, + [51] = { "AP Channel Report", print_ap_channel_report, 1, 255, BIT(PRINT_SCAN), }, [59] = { "Supported operating classes", print_supp_op_classes, 1, 255, BIT(PRINT_SCAN), }, [66] = { "Measurement Pilot Transmission", print_measurement_pilot_tx, 1, 255, BIT(PRINT_SCAN), }, [74] = { "Overlapping BSS scan params", print_obss_scan_params, 14, 255, BIT(PRINT_SCAN), }, -- 2.25.0