summaryrefslogtreecommitdiff
path: root/iwinfo_nl80211.c
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2021-01-28 22:34:42 +0000
committerDaniel Golle <daniel@makrotopia.org>2021-01-28 22:37:45 +0000
commit5a2dd180f7ae9bd810305a5673b4eed48d07349f (patch)
tree5a20385c8c402d892e5d95658d6b3480a1499c08 /iwinfo_nl80211.c
parent23d2722b1251f1aba9355bba23e17596f93adb65 (diff)
downloadiwinfo-5a2dd180f7ae9bd810305a5673b4eed48d07349f.tar.gz
iwinfo: add hardware description for MediaTek MT7622
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'iwinfo_nl80211.c')
-rw-r--r--iwinfo_nl80211.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c
index 29bdc8c..08b5dec 100644
--- a/iwinfo_nl80211.c
+++ b/iwinfo_nl80211.c
@@ -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;
}