ramips: fix ASUS WL-330N3G MAC address
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> SVN-Revision: 34877
This commit is contained in:
parent
c5a36f13f0
commit
69da894432
1 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,9 @@ preinit_set_mac_address() {
|
||||||
. /lib/ramips.sh
|
. /lib/ramips.sh
|
||||||
|
|
||||||
case $(ramips_board_name) in
|
case $(ramips_board_name) in
|
||||||
3g-6200n)
|
3g-6200n |\
|
||||||
|
wl-330n |\
|
||||||
|
wl-330n3g)
|
||||||
mac=$(ramips_get_mac_binary factory 4)
|
mac=$(ramips_get_mac_binary factory 4)
|
||||||
ifconfig eth0 hw ether $mac 2>/dev/null
|
ifconfig eth0 hw ether $mac 2>/dev/null
|
||||||
;;
|
;;
|
||||||
|
@ -54,8 +56,6 @@ preinit_set_mac_address() {
|
||||||
tew-692gr |\
|
tew-692gr |\
|
||||||
w306r-v20 |\
|
w306r-v20 |\
|
||||||
w502u |\
|
w502u |\
|
||||||
wl-330n |\
|
|
||||||
wl-330n3g |\
|
|
||||||
wr6202 |\
|
wr6202 |\
|
||||||
xdxrn502j)
|
xdxrn502j)
|
||||||
mac=$(ramips_get_mac_binary factory 40)
|
mac=$(ramips_get_mac_binary factory 40)
|
||||||
|
|
Loading…
Reference in a new issue