OSDN Git Service

wifi: mt76: connac: add CMD_CBW_320MHZ
authorShayne Chen <shayne.chen@mediatek.com>
Tue, 31 Jan 2023 09:36:00 +0000 (17:36 +0800)
committerFelix Fietkau <nbd@nbd.name>
Fri, 3 Feb 2023 13:47:27 +0000 (14:47 +0100)
Add CMD_CBW_320MHZ for setting bandwidth 320 MHz to firmware.
This is the preliminary patch to add EHT support for mt7996.

Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76_connac.h

index 2ee9a3c..b339c50 100644 (file)
@@ -42,6 +42,7 @@ enum {
        CMD_CBW_10MHZ,
        CMD_CBW_5MHZ,
        CMD_CBW_8080MHZ,
+       CMD_CBW_320MHZ,
 
        CMD_HE_MCS_BW80 = 0,
        CMD_HE_MCS_BW160,
@@ -239,6 +240,7 @@ static inline u8 mt76_connac_chan_bw(struct cfg80211_chan_def *chandef)
                [NL80211_CHAN_WIDTH_10] = CMD_CBW_10MHZ,
                [NL80211_CHAN_WIDTH_20] = CMD_CBW_20MHZ,
                [NL80211_CHAN_WIDTH_20_NOHT] = CMD_CBW_20MHZ,
+               [NL80211_CHAN_WIDTH_320] = CMD_CBW_320MHZ,
        };
 
        if (chandef->width >= ARRAY_SIZE(width_to_bw))