iwinfo: add hardware description for MediaTek MT7622
authorDaniel Golle <daniel@makrotopia.org>
Thu, 28 Jan 2021 22:34:42 +0000 (22:34 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 28 Jan 2021 22:37:45 +0000 (22:37 +0000)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
hardware.txt
iwinfo_nl80211.c

index c2f9e66e7d83de0b85d93e40073459ccfacd7659..da843bec597cbd8ee279797e19f7353361dd351b 100644 (file)
 0x14c3 0x7612 0x14c3 0x7612    0      0  "MediaTek" "MT7612E"
 0x14c3 0x7615 0x7615 0x14c3    0      0  "MediaTek" "MT7615E"
 0x14c3 0x7620 0x14c3 0x000c    0      0  "MediaTek" "MT7620"
+0x14c3 0x7622 0x14c3 0x7622    0      0  "MediaTek" "MT7622"
 0x14c3 0x7628 0x14c3 0x0004    0      0  "MediaTek" "MT76x8"
 0x14c3 0x7650 0x14c3 0x7650    0      0  "MediaTek" "MT7610E"
 0x14c3 0x7662 0x14c3 0x7662    0      0  "MediaTek" "MT76x2E"
index 29bdc8c711fb088761058b6a54875e0a0e00f13b..08b5dece85bdf2016f141ffb104ed60082628be7 100644 (file)
@@ -3245,8 +3245,12 @@ static int nl80211_hardware_id_from_fdt(struct iwinfo_hardware_id *id, const cha
                id->device_id = 0x003c;
                id->subsystem_vendor_id = 0x168c;
                id->subsystem_device_id = 0x4019;
+       } else if (!strcmp(compat, "mediatek,mt7622-wmac")) {
+               id->vendor_id = 0x14c3;
+               id->device_id = 0x7622;
+               id->subsystem_vendor_id = 0x14c3;
+               id->subsystem_device_id = 0x7622;
        }
-
        return (id->vendor_id && id->device_id) ? 0 : -1;
 }