]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: add VHT80 support for 802.11s
authorSven Eckelmann <sven@open-mesh.com>
Wed, 25 Nov 2015 13:59:16 +0000 (14:59 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 6 Jan 2016 11:03:02 +0000 (12:03 +0100)
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 <sven@open-mesh.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
mesh.c

diff --git a/mesh.c b/mesh.c
index 593ab7a8f05455928c455211fca2edeb2193b475..d674d6140b528ac3065dad874be6870be2896246 100644 (file)
--- 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, "<mesh ID> [[freq <freq in MHz> <HT20|HT40+|HT40-|NOHT>]"
+COMMAND(mesh, join, "<mesh ID> [[freq <freq in MHz> <HT20|HT40+|HT40-|NOHT|80MHz>]"
        " [basic-rates <rate in Mbps,rate2,...>]], [mcast-rate <rate in Mbps>]"
        " [beacon-interval <time in TUs>] [dtim-period <value>]"
        " [vendor_sync on|off] [<param>=<value>]*",