aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-12-24 09:13:58 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-12-24 09:13:58 +0000
commitf50243ec6458475dbe7fef411799c5e4b952aff6 (patch)
treebbdf4466e6b633bb460beb19c73835fc37a2ef05 /target
parent4247904657ae5004729fe93f6790c307cfd2ab6c (diff)
downloadupstream-f50243ec6458475dbe7fef411799c5e4b952aff6.tar.gz
upstream-f50243ec6458475dbe7fef411799c5e4b952aff6.tar.bz2
upstream-f50243ec6458475dbe7fef411799c5e4b952aff6.zip
AA: ramips: fix ASUS WL-330N3G MAC address
Backport of r34877. The ASUS WL-330N and WL-330N3G has the MAC address stored at offset 4, not 40. This is verified by reading original ASUS firmware GPL_WL-330N3G_source.1028/user/rc/common_ex.c and GPL_WL-330N_source.1021/user/rc/common_ex.c. Tested on WL-330N3G, it now gets the same MAC as is printed on the label on the router. Signed-off-by: Jan Kardell <jan.kardell@arkub.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34879 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/ramips/base-files/lib/preinit/06_set_iface_mac6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
index f1fcd96e21..20b9a95969 100644
--- a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
+++ b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
@@ -8,7 +8,9 @@ preinit_set_mac_address() {
. /lib/ramips.sh
case $(ramips_board_name) in
- 3g-6200n)
+ 3g-6200n |\
+ wl-330n |\
+ wl-330n3g)
mac=$(ramips_get_mac_binary factory 4)
ifconfig eth0 hw ether $mac 2>/dev/null
;;
@@ -52,8 +54,6 @@ preinit_set_mac_address() {
tew-692gr |\
w306r-v20 |\
w502u |\
- wl-330n |\
- wl-330n3g |\
wr6202 |\
xdxrn502j)
mac=$(ramips_get_mac_binary factory 40)