mac80211: Add initial support for EHT and 320 MHz channels
[linux-2.6-microblaze.git] / net / mac80211 / chan.c
index 76fc36a..e26d42d 100644 (file)
@@ -218,6 +218,8 @@ static enum nl80211_chan_width ieee80211_get_sta_bw(struct sta_info *sta)
                 * might be smaller than the configured bw (160).
                 */
                return NL80211_CHAN_WIDTH_160;
+       case IEEE80211_STA_RX_BW_320:
+               return NL80211_CHAN_WIDTH_320;
        default:
                WARN_ON(1);
                return NL80211_CHAN_WIDTH_20;
@@ -417,7 +419,7 @@ static void ieee80211_change_chanctx(struct ieee80211_local *local,
 {
        u32 changed;
 
-       /* expected to handle only 20/40/80/160 channel widths */
+       /* expected to handle only 20/40/80/160/320 channel widths */
        switch (chandef->width) {
        case NL80211_CHAN_WIDTH_20_NOHT:
        case NL80211_CHAN_WIDTH_20:
@@ -425,6 +427,7 @@ static void ieee80211_change_chanctx(struct ieee80211_local *local,
        case NL80211_CHAN_WIDTH_80:
        case NL80211_CHAN_WIDTH_80P80:
        case NL80211_CHAN_WIDTH_160:
+       case NL80211_CHAN_WIDTH_320:
                break;
        default:
                WARN_ON(1);