]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: display 5/10 MHz channel widths
authorBob Copeland <me@bobcopeland.com>
Thu, 21 Jul 2016 15:39:48 +0000 (11:39 -0400)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 1 Aug 2016 12:24:28 +0000 (14:24 +0200)
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@bobcopeland.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
interface.c

index 209561d55dc173051e81db04e87a7b802b5a0a1b..2802235b6cd31baa64aeb775e80c76c4186d80a0 100644 (file)
@@ -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";
        }