diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-11-15 08:21:59 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-11-15 08:21:59 +0000 |
commit | 67eded254aa30dd8067d8ac0301c165ed9d722f3 (patch) | |
tree | 6239cef7bd90df9efe9106d970d19526d6f608d3 /target/linux/ar71xx/base-files/etc/uci-defaults | |
parent | f58bfd1df4e4a9b84a0e94691986c38bab6d8730 (diff) | |
download | mtk-20170518-67eded254aa30dd8067d8ac0301c165ed9d722f3.zip mtk-20170518-67eded254aa30dd8067d8ac0301c165ed9d722f3.tar.gz mtk-20170518-67eded254aa30dd8067d8ac0301c165ed9d722f3.tar.bz2 |
ar71xx: wndr4300: set official mac addresses
Get the factory assigned mac addresses stored in the caldata
partition and asign them to lan and wan interfaces. Also put
the correct mac addresses into the WiFi eeprom files to ensure
that the ath9k driver will use the correct ones.
Signed-off-by: Stefan Agner <stefan@agner.ch>
Patchwork: http://patchwork.openwrt.org/patch/4350/
[juhosg:
- move WiFi MAC address setup to the firmware hotplug file,
- use the official MAC address for the 2.4GHz as well,
- remove uci-defaults.sh modifications,
- update commit message]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38812
Diffstat (limited to 'target/linux/ar71xx/base-files/etc/uci-defaults')
-rwxr-xr-x | target/linux/ar71xx/base-files/etc/uci-defaults/02_network | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network index 0819cb2..49db21b 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network @@ -211,6 +211,10 @@ wndr4300) ucidef_add_switch "switch0" "1" "1" ucidef_add_switch_vlan "switch0" "1" "0t 1 2 3 4" ucidef_add_switch_vlan "switch0" "2" "0t 5" + mac_lan=$(mtd_get_mac_binary caldata 0) + [ -n "$mac_lan" ] && ucidef_set_interface_macaddr "lan" "$mac_lan" + mac_wan=$(mtd_get_mac_binary caldata 6) + [ -n "$mac_wan" ] && ucidef_set_interface_macaddr "wan" "$mac_wan" ;; all0305 |\ |