iwinfo: add hardware description for MediaTek MT7622

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle 2021-01-28 22:34:42 +00:00
parent 23d2722b12
commit 5a2dd180f7
2 changed files with 6 additions and 1 deletions

View file

@ -189,6 +189,7 @@
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"

View 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;
}