Files
wlan-ap/feeds/ipq807x/qca-ssdk/patches/200-eap101.patch
John Crispin 8c987c4949 ipq807x: fix LAN2 on the new EAP101 PCB
The second LAN port is not setup correctly due to the new PHY.

Fixes: WIFI-6152
Signed-off-by: John Crispin <john@phrozen.org>
2021-12-12 08:03:33 +01:00

15 lines
390 B
Diff

diff --git a/src/hsl/phy/hsl_phy.c b/src/hsl/phy/hsl_phy.c
index 5866a522..41227581 100755
--- a/src/hsl/phy/hsl_phy.c
+++ b/src/hsl/phy/hsl_phy.c
@@ -608,6 +608,9 @@ hsl_port_phyid_get(a_uint32_t dev_id, fal_port_t port_id)
return INVALID_PHY_ID;
}
+ if (phy_id == MALIBU5PORT_PHY && of_machine_is_compatible("edgecore,eap101"))
+ phy_id = MALIBU2PORT_PHY;
+
return phy_id;
}