From patchwork Wed Nov 25 13:59:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 7699631 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 391E79F2EC for ; Wed, 25 Nov 2015 13:59:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5AC77208E5 for ; Wed, 25 Nov 2015 13:59:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7931820854 for ; Wed, 25 Nov 2015 13:59:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754309AbbKYN7b (ORCPT ); Wed, 25 Nov 2015 08:59:31 -0500 Received: from mail-wm0-f43.google.com ([74.125.82.43]:38507 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754295AbbKYN7a (ORCPT ); Wed, 25 Nov 2015 08:59:30 -0500 Received: by wmec201 with SMTP id c201so71305785wme.1 for ; Wed, 25 Nov 2015 05:59:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=open-mesh-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KFLj5Ez/jpWNYRDTIMcjJ8TGFpoTTxK8udtPHufc1Mo=; b=sX1NoKBYZuHp6AFFGoxyQPPzvK9Qz3OLMLADX4kpdA39bMTMUNqMx7Eic6aYlYh6mE LsWwqkZVudHDuecRKKJ0ODg0M3j6mzI9BIdqXyE24PQW8eu9oXAby/H42ZahK6yZyq6c tQN4PB2LQkZCiEK47DXXoAmFMel+UbOOjcGzCDMGoTOj0SvvQxjJitjpMaf9mrfJniNT X+l4isLrAXFQ8LaJKazNwBoxb/yR7P54u2KSkJ0MqLI95kAuAV1DuCWj11fJSPYTqOIG cDu0GmL1GMSKU3mQ688Kz9D5vaGNhvXft8KIeWa7captGKdb4a7K8NVLdjoxFgyXJ5t0 rVPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=KFLj5Ez/jpWNYRDTIMcjJ8TGFpoTTxK8udtPHufc1Mo=; b=YJyDTy2K7S8ea9swU/lFBonDUUFDfXmiSf6MevMaVHTAbGTfefOqeZySzBXMiUBoRC 8ci/zDScdgmMyWSDXkgoF1we3QueGzl0ju8gBHsgoODL8UbI0LWke6jH2Mu9ydBTlceI 4q8avW3VgPM3P83hkw+VnEpM+NqUOKAm8EDPcj/PQBDAu4ElXu6k81SMquUB3Bjp/DJ9 X2hbXH8GJ9ZawlN6yHJEirLx+AyZn2NBXu7CesLp9HGQ/widHOX8IJ5d6YIx4cPkuf9R 0YWhWvMBWapMKdkWI/NFE3XK4euCa63MhH30zkaqEABh1CZ/lMdW+0lmxoi89ZdL3Vo9 xoXA== X-Gm-Message-State: ALoCoQkhA0fPhisgKEwXsPeTMhrtUNfwGWZc9tZia7LFDI/1+VRVzNYYsiaTejmcI5hKAcFX0O94 X-Received: by 10.194.87.201 with SMTP id ba9mr7038129wjb.125.1448459969593; Wed, 25 Nov 2015 05:59:29 -0800 (PST) Received: from sven-desktop.home.narfation.org (x4d05aec6.dyn.telefonica.de. [77.5.174.198]) by smtp.gmail.com with ESMTPSA id m191sm3656547wma.3.2015.11.25.05.59.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Nov 2015 05:59:28 -0800 (PST) From: Sven Eckelmann To: Johannes Berg Cc: linux-wireless@vger.kernel.org, Julian Calaby , Sven Eckelmann Subject: [PATCH v3 2/4] iw: add VHT80 support for 802.11s Date: Wed, 25 Nov 2015 14:59:16 +0100 Message-Id: <1448459959-23641-2-git-send-email-sven@open-mesh.com> X-Mailer: git-send-email 2.6.2 In-Reply-To: <1448459959-23641-1-git-send-email-sven@open-mesh.com> References: <1448459959-23641-1-git-send-email-sven@open-mesh.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP iw mesh supports non-HT and HT channel widths like HT20 or NOHT. But the Linux 802.11s implementation also supports VHT80 which can be specified during the mesh join. iw dev mesh0 mesh join "meshnet" freq 5180 80MHz Signed-off-by: Sven Eckelmann --- v3: * split patch into two different patches (0001/0002) as request by Julian Calaby * change join_ocb to also use get_cf1 * move NOHT to the last entry in the mesh/ibss join usage texts as requested by Julian Calaby v2: * rebase from v4.3-ish version to current master mesh.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mesh.c b/mesh.c index 593ab7a..d674d61 100644 --- a/mesh.c +++ b/mesh.c @@ -466,6 +466,10 @@ static int join_mesh(struct nl80211_state *state, .width = NL80211_CHAN_WIDTH_20_NOHT, .freq1_diff = 0, .chantype = NL80211_CHAN_NO_HT }, + { .name = "80MHz", + .width = NL80211_CHAN_WIDTH_80, + .freq1_diff = 0, + .chantype = -1 }, }; if (argc < 1) @@ -604,7 +608,7 @@ static int join_mesh(struct nl80211_state *state, nla_put_failure: return -ENOBUFS; } -COMMAND(mesh, join, " [[freq ]" +COMMAND(mesh, join, " [[freq ]" " [basic-rates ]], [mcast-rate ]" " [beacon-interval