summaryrefslogtreecommitdiff
path: root/iwinfo_nl80211.c
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2022-07-25 04:17:44 +0200
committerDaniel Golle <daniel@makrotopia.org>2022-08-31 14:08:39 +0100
commit46f04f3808e8b8c9608d0974c4cede1e78110b7f (patch)
tree7d5320a5f1e7d79546113e97db1e523d31c5f7b5 /iwinfo_nl80211.c
parent0dad3e6660594592071ae49a77a907e2b11a98fe (diff)
downloadiwinfo-46f04f3808e8b8c9608d0974c4cede1e78110b7f.tar.gz
devices: add MediaTek MT7986 WiSoC
Add detection of the MediaTek MT7986 WiSoC using the compatible string from device tree. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'iwinfo_nl80211.c')
-rw-r--r--iwinfo_nl80211.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c
index 30da680..d7fbd1e 100644
--- a/iwinfo_nl80211.c
+++ b/iwinfo_nl80211.c
@@ -3410,7 +3410,13 @@ static int nl80211_hardware_id_from_fdt(struct iwinfo_hardware_id *id, const cha
id->device_id = 0x7622;
id->subsystem_vendor_id = 0x14c3;
id->subsystem_device_id = 0x7622;
+ } else if (!strcmp(compat, "mediatek,mt7986-wmac")) {
+ id->vendor_id = 0x14c3;
+ id->device_id = 0x7986;
+ id->subsystem_vendor_id = 0x14c3;
+ id->subsystem_device_id = 0x7986;
}
+
return (id->vendor_id && id->device_id) ? 0 : -1;
}