From: Bob Copeland Date: Thu, 21 Jul 2016 15:39:48 +0000 (-0400) Subject: iw: display 5/10 MHz channel widths X-Git-Tag: v4.9~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=432b5ae2c87eb112464891e86b1306425f93dbfd;p=thirdparty%2Fiw.git iw: display 5/10 MHz channel widths 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 Signed-off-by: Johannes Berg --- 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"; }