summaryrefslogtreecommitdiff
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
parent23d2722b1251f1aba9355bba23e17596f93adb65 (diff)
downloadiwinfo-5a2dd180f7ae9bd810305a5673b4eed48d07349f.tar.gz
iwinfo: add hardware description for MediaTek MT7622
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
-rw-r--r--hardware.txt1
-rw-r--r--iwinfo_nl80211.c6
2 files changed, 6 insertions, 1 deletions
diff --git a/hardware.txt b/hardware.txt
index c2f9e66..da843be 100644
--- a/hardware.txt
+++ b/hardware.txt
@@ -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"
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;
}