diff options
author | Chukun Pan <amadeus@jmu.edu.cn> | 2022-10-19 23:16:30 +0800 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2023-04-21 21:35:41 +0200 |
commit | 31c15813f9d273cf7c5683132baa12a6d728f3c8 (patch) | |
tree | 05dcc6579100955177bff1e066e796da25726647 /target/linux/ramips/mt7621 | |
parent | 1f68baf5f0d86f321fb90453e68bcfde0d45fd08 (diff) | |
download | upstream-31c15813f9d273cf7c5683132baa12a6d728f3c8.tar.gz upstream-31c15813f9d273cf7c5683132baa12a6d728f3c8.tar.bz2 upstream-31c15813f9d273cf7c5683132baa12a6d728f3c8.zip |
ramips: MSG1500 X.00: switch to mac-address-ascii dts
The Config partition of some machines is special, and the openwrt script
cannot read the protest_lan_mac correctly. This problem can be solved by
reading the mac address (ascii) in dts.
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Diffstat (limited to 'target/linux/ramips/mt7621')
-rw-r--r-- | target/linux/ramips/mt7621/base-files/etc/board.d/02_network | 5 | ||||
-rw-r--r-- | target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac | 3 |
2 files changed, 1 insertions, 7 deletions
diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network index 3a864f6f04..e357b47a4c 100644 --- a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network +++ b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network @@ -277,11 +277,6 @@ ramips_setup_macs() wan_mac=$(macaddr_add "$lan_mac" 1) label_mac=$lan_mac ;; - raisecom,msg1500-x-00) - lan_mac=$(mtd_get_mac_ascii Config protest_lan_mac) - wan_mac=$(mtd_get_mac_ascii Config protest_wan_mac) - label_mac=$lan_mac - ;; yuncore,ax820) label_mac=$(mtd_get_mac_binary Factory 0x4) ;; diff --git a/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac b/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac index b3de1f39cf..30a10423ad 100644 --- a/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac +++ b/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac @@ -141,8 +141,7 @@ case "$board" in ;; raisecom,msg1500-x-00) [ "$PHYNBR" = "0" ] && \ - macaddr_setbit_la "$(mtd_get_mac_ascii Config protest_lan_mac)" \ - > /sys${DEVPATH}/macaddress + macaddr_setbit_la "$(get_mac_label)" > /sys${DEVPATH}/macaddress ;; snr,snr-cpe-me2-sfp) hw_mac_addr="$(mtd_get_mac_binary factory 0x8004)" |