Search Linux Wireless

Re: iw: add VHT80 support for 802.11s

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sven,

On Wed, Nov 25, 2015 at 4:42 AM, Sven Eckelmann <sven@xxxxxxxxxxxxx> wrote:
> 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@xxxxxxxxxxxxx>
> ---
>  ibss.c | 33 ---------------------------------
>  iw.h   |  9 +++++++++
>  mesh.c | 16 ++++++++--------
>  util.c | 26 ++++++++++++++++++++++++++
>  4 files changed, 43 insertions(+), 41 deletions(-)
>
> diff --git a/mesh.c b/mesh.c
> index 0090530..930d58f 100644
> --- a/mesh.c
> +++ b/mesh.c
> @@ -439,12 +439,8 @@ static int join_mesh(struct nl80211_state *state,
>         int bintval, dtim_period, i, n_rates = 0;
>         char *end, *value = NULL, *sptr = NULL;
>         unsigned long freq = 0;
> -       static const struct {
> -               const char *name;
> -               unsigned int width;
> -               int freq1_diff;
> -               int chantype; /* for older kernel */
> -       } *chanmode_selected = NULL, chanmode[] = {
> +       const struct chanmode *chanmode_selected = NULL;
> +       static const struct chanmode chanmode[] = {

You might want to make this change in a separate patch.

>                 { .name = "HT20",
>                   .width = NL80211_CHAN_WIDTH_20,
>                   .freq1_diff = 0,
> @@ -599,7 +599,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>]"

Should NOHT remain last in the list?

>         " [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>]*",

Thanks,

-- 
Julian Calaby

Email: julian.calaby@xxxxxxxxx
Profile: http://www.google.com/profiles/julian.calaby/
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux