aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2018-04-10 13:00:42 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-04-10 15:27:39 +0200
commitf8f6fa11c0410b3486494443739220244d2e9962 (patch)
tree3acd6f6a36d856179069e4897bc95bf7fcd73ce7 /target/linux
parent177fa14340ebd1784ea87b7c914cde3ffea81c97 (diff)
downloadupstream-f8f6fa11c0410b3486494443739220244d2e9962.tar.gz
upstream-f8f6fa11c0410b3486494443739220244d2e9962.tar.bz2
upstream-f8f6fa11c0410b3486494443739220244d2e9962.zip
ar71xx: limit Ethernet speed of UBNT Airmax M (XM) devices to 100Mbit/s
Some Airmax devices can establish a Gigabit link even though the MAC only supports 10/100 MBit/s, leading to broken connectivity. Prevent this from happening by limiting the speed to 100MBit/s. Fixes: FS#296 Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-ubnt-xm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-ubnt-xm.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-ubnt-xm.c
index 8afb3ad054..8dc0be41a3 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-ubnt-xm.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-ubnt-xm.c
@@ -97,7 +97,9 @@ static void __init ubnt_xm_init(void)
ap91_pci_init(eeprom, NULL);
ath79_register_mdio(0, ~UBNT_M_WAN_PHYMASK);
+ ath79_eth0_data.speed = SPEED_100;
ath79_init_mac(ath79_eth0_data.mac_addr, mac1, 0);
+ ath79_eth1_data.speed = SPEED_100;
ath79_init_mac(ath79_eth1_data.mac_addr, mac2, 0);
ath79_register_eth(0);
}