mediatek: Fix MAC assignment for eth ports on Edgecore EAP112

Fixes: WIFI-14319
Signed-off-by: Tanya Singh <tanya_singh@accton.com>
This commit is contained in:
Tanya Singh
2024-12-12 15:34:07 +08:00
committed by John Crispin
parent 5f1d562f61
commit ee80309fc3

View File

@@ -4,7 +4,7 @@
mtk_qdma_debugfs_init(eth);
}
+ if (of_machine_is_compatible("edgecore,eap111")) {
+ if (of_machine_is_compatible("edgecore,eap111") || of_machine_is_compatible("edgecore,eap112")) {
+ sprintf(eth->netdev[0]->name, "eth1");
+ sprintf(eth->netdev[1]->name, "eth0");
+ }