ramips: TEW-691GR: fix switch and wireless

Due to the missing phy-mode setting, the switch wasn't initialised.

The wireless requires an eeprom to work. Use the same mac addresses as
the stock firmware.

Signed-off-by: Mathias Kresin <dev@kresin.me>
This commit is contained in:
Mathias Kresin
2016-08-19 20:46:50 +02:00
parent a7c6cf5182
commit bcd2113a32
2 changed files with 5 additions and 3 deletions

View File

@@ -333,8 +333,7 @@ ramips_setup_macs()
wan_mac=$(mtd_get_mac_binary factory 57350)
;;
tew-691gr)
lan_mac=$(cat /sys/class/net/eth0/address)
wan_mac=$(macaddr_add "$lan_mac" 3)
wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 4)" 3)
;;
tew-692gr)
wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 4)" 1)