summaryrefslogtreecommitdiff
path: root/target/linux/ramips/base-files/etc/board.d
diff options
context:
space:
mode:
authorJohn Marrett <johnf@zioncluster.ca>2017-07-13 08:03:07 -0400
committerMathias Kresin <dev@kresin.me>2017-07-15 07:02:59 +0200
commit4531bc4267c7701e3615a806a0fde8212076699a (patch)
tree1a9775b46f10871b126c20fe5ce4eee169bcae81 /target/linux/ramips/base-files/etc/board.d
parentf7eb7f577ff4b7c3afc0b0d2d8da459cba01ff9d (diff)
downloadmtk-20170518-4531bc4267c7701e3615a806a0fde8212076699a.zip
mtk-20170518-4531bc4267c7701e3615a806a0fde8212076699a.tar.gz
mtk-20170518-4531bc4267c7701e3615a806a0fde8212076699a.tar.bz2
ramips: fix GL-inet GL-MT300N-V2 WAN/LAN MAC address
Correct MAC address lookup to appropriate offset based on vendor source. Override the WAN MAC to use the same address as LAN. The switch driver increments the base MAC address for the WAN vlan but the stock firmware uses the same MAC address for all interfaces. Based on vendor source commit https://github.com/domino-team/lede-1701/commit/efb0518 Signed-off-by: John Marrett <johnf@zioncluster.ca>
Diffstat (limited to 'target/linux/ramips/base-files/etc/board.d')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index 22b231b..f6129b5 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -381,6 +381,9 @@ ramips_setup_macs()
e1700)
wan_mac=$(mtd_get_mac_ascii config WAN_MAC_ADDR)
;;
+ gl-mt300n-v2)
+ wan_mac=$(mtd_get_mac_binary factory 4)
+ ;;
hc5*61|\
hc5661a|\
hc5962)