Search Linux Wireless

Re: [PATCH] iw: display 5/10 MHz channel widths

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

 



Hi Bob,

On Fri, Jul 22, 2016 at 1:39 AM, Bob Copeland <me@xxxxxxxxxxxxxxx> wrote:
> iw was showing 'width: unknown' for channels on OCB interfaces; teach
> it the values for 5/10 MHz so it will show the configured width.
>
> Signed-off-by: Bob Copeland <me@xxxxxxxxxxxxxxx>
> ---
>  interface.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/interface.c b/interface.c
> index 209561d..2802235 100644
> --- a/interface.c
> +++ b/interface.c
> @@ -295,6 +295,10 @@ char *channel_width_name(enum nl80211_chan_width width)
>                 return "80+80 MHz";
>         case NL80211_CHAN_WIDTH_160:
>                 return "160 MHz";
> +       case NL80211_CHAN_WIDTH_5:
> +               return "5 MHz";
> +       case NL80211_CHAN_WIDTH_10:
> +               return "10 MHz";
>         default:
>                 return "unknown";
>         }

Judging by the previous two entries, it looks like the case statements
are sorted, so should these ones therefore be at the top of the list?

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