Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2147001pxa; Mon, 3 Aug 2020 08:35:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgpoSMiyVYHLIoK0MgGP6JRxQqjOWzS6odyF95uQh7BnXZS/y3IqVOjYUHd6Ia4pcpagb/ X-Received: by 2002:a05:6402:16d0:: with SMTP id r16mr16758519edx.124.1596468950291; Mon, 03 Aug 2020 08:35:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596468950; cv=none; d=google.com; s=arc-20160816; b=cBsXoqxCjZigwEvMA/Lk8IcvcjcjPf+o8x5QRdT/UUmaZ7bKCVxqUHQbx7d2TqmzG5 qVqzDOZvuNO/i6wO3WC7WTNnqwT/Y9alNVqyXumUqXq4x7GTRWWpARa3V6qGsJBZsgao os6tewX1XWq5MEloUXMGIk9nkgiZ0gx4qaQ76mYf4GeExOsatl6EKmOCV//OBEbZzRKg Z3mZAD/8pUX7Vox9Ee86quW/PfE7kssCaV1XZTXkmN14JfWTMSm3ST3PtpKnaaJAt6ru xw2Q8plsLo+uetTh6ad4l0gX3VnviF3oKa2ziq6RUFtfDGCkAb6uar1E/SNpIrPdiT1d tRZA== 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=oCRLEHedFFaECyo0M7LE93UK5S1LUZqkId6WhivoaAY=; b=lzZ2iB33M7xNmCzv0GajpbzjUonaHC7bLHNiyGjeZAgSwJ+etpETuhOSJbzilAWYw2 eUnJV/tuMzwMdBMTfzYbOnEAdEKiDtNNIYjfyVVhhHDl82gV1sJwOB8m4Ys1R0JA/6wb Ezb7sqGihSomSTFMoya9AxHqqC7Z/uJO6Z0+u2sKJdVJLY7j5ifNLfCxr/9fG5XZPR5v Fs5OwbO4o8a0mCeqb3xEQu2dBp1T5BYzlZuaPLTUWtO6BpCfJO3yeOxkZoXuiR8yXNVz PJ2klpl9wy+rY5CDSDpTzMVxhgMge8nxk3ObxrqSdGH2pug6xXThrn0vMP4TAI3KBSBl 4AVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l16si10500711edw.172.2020.08.03.08.35.26; Mon, 03 Aug 2020 08:35:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726990AbgHCPdt (ORCPT + 99 others); Mon, 3 Aug 2020 11:33:49 -0400 Received: from smail.rz.tu-ilmenau.de ([141.24.186.67]:51538 "EHLO smail.rz.tu-ilmenau.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726971AbgHCPdt (ORCPT ); Mon, 3 Aug 2020 11:33:49 -0400 Received: from legolas.tu-ilmenau.de (unknown [141.24.111.199]) (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 8D5B458005E; Mon, 3 Aug 2020 17:33:47 +0200 (CEST) From: Markus Theil To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Markus Theil Subject: [PATCH 2/4] iw: handle all chan width cases Date: Mon, 3 Aug 2020 17:33:34 +0200 Message-Id: <20200803153336.319773-2-markus.theil@tu-ilmenau.de> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200803153336.319773-1-markus.theil@tu-ilmenau.de> References: <20200803153336.319773-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 --- measurements.c | 5 +++++ util.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/measurements.c b/measurements.c index 385143f..49ef946 100644 --- a/measurements.c +++ b/measurements.c @@ -153,8 +153,13 @@ static int parse_ftm_target(struct nl_msg *msg, char *str, int peer_index) switch (str_to_bw(bw)) { case NL80211_CHAN_WIDTH_20_NOHT: + case NL80211_CHAN_WIDTH_1: + case NL80211_CHAN_WIDTH_2: + case NL80211_CHAN_WIDTH_4: case NL80211_CHAN_WIDTH_5: + case NL80211_CHAN_WIDTH_8: case NL80211_CHAN_WIDTH_10: + case NL80211_CHAN_WIDTH_16: preamble = NL80211_PREAMBLE_LEGACY; break; case NL80211_CHAN_WIDTH_20: diff --git a/util.c b/util.c index ac6a96d..ebb2de8 100644 --- a/util.c +++ b/util.c @@ -492,8 +492,13 @@ static int parse_freqs(struct chandef *chandef, int argc, char **argv, /* First argument was not understood, give up gracefully. */ return 0; case NL80211_CHAN_WIDTH_20: + case NL80211_CHAN_WIDTH_1: + case NL80211_CHAN_WIDTH_2: + case NL80211_CHAN_WIDTH_4: case NL80211_CHAN_WIDTH_5: + case NL80211_CHAN_WIDTH_8: case NL80211_CHAN_WIDTH_10: + case NL80211_CHAN_WIDTH_16: break; case NL80211_CHAN_WIDTH_80P80: need_cf2 = true; -- 2.28.0