wifi: mt76: mt7996: remove unused eeprom band selection
authorShayne Chen <shayne.chen@mediatek.com>
Fri, 3 Mar 2023 08:35:54 +0000 (16:35 +0800)
committerFelix Fietkau <nbd@nbd.name>
Mon, 17 Apr 2023 14:08:47 +0000 (16:08 +0200)
Tri-band chipsets support one band on each a-die, so remove the unused
definition of eeprom band selection.

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

index 2e48c5a..544b6c6 100644 (file)
@@ -138,10 +138,6 @@ static int mt7996_eeprom_parse_band_config(struct mt7996_phy *phy)
        case MT_EE_BAND_SEL_6GHZ:
                phy->mt76->cap.has_6ghz = true;
                break;
-       case MT_EE_BAND_SEL_5GHZ_6GHZ:
-               phy->mt76->cap.has_5ghz = true;
-               phy->mt76->cap.has_6ghz = true;
-               break;
        default:
                ret = -EINVAL;
                break;
index 8da599e..5571881 100644 (file)
@@ -46,7 +46,6 @@ enum mt7996_eeprom_band {
        MT_EE_BAND_SEL_2GHZ,
        MT_EE_BAND_SEL_5GHZ,
        MT_EE_BAND_SEL_6GHZ,
-       MT_EE_BAND_SEL_5GHZ_6GHZ,
 };
 
 static inline int