]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
util: add support for 320Mhz bandwidth
authorMordechay Goodstein <mordechay.goodstein@intel.com>
Sun, 29 May 2022 16:29:55 +0000 (19:29 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 14 Apr 2023 10:53:37 +0000 (12:53 +0200)
In the new standard 11be we can set up to 320Mhz bandwidth so add it
in parsing params.

Signed-off-by: Mordechay Goodstein <mordechay.goodstein@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
util.c

diff --git a/util.c b/util.c
index 8a2ba10c687a5e38e2df02c4d9c20e3efdb50727..93269abc7d5a4789d43ace1efa2cbe4379e8ac11 100644 (file)
--- a/util.c
+++ b/util.c
@@ -471,6 +471,7 @@ enum nl80211_chan_width str_to_bw(const char *str)
                { .name = "80", .val = NL80211_CHAN_WIDTH_80, },
                { .name = "80+80", .val = NL80211_CHAN_WIDTH_80P80, },
                { .name = "160", .val = NL80211_CHAN_WIDTH_160, },
+               { .name = "320", .val = NL80211_CHAN_WIDTH_320, },
        };
        unsigned int i;