ar71xx: limit Ethernet speed of UBNT Airmax M (XM) devices to 100Mbit/s
authorMatthias Schiffer <mschiffer@universe-factory.net>
Tue, 10 Apr 2018 11:00:42 +0000 (13:00 +0200)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Tue, 10 Apr 2018 13:27:39 +0000 (15:27 +0200)
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>
target/linux/ar71xx/files/arch/mips/ath79/mach-ubnt-xm.c

index 8afb3ad054b898b272e354c80964ea52bdc02967..8dc0be41a3a4c112246eac5046769687bc4fa114 100644 (file)
@@ -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);
 }