aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/mt7621/base-files/etc
diff options
context:
space:
mode:
authorChuanhong Guo <gch981213@gmail.com>2023-03-26 23:50:43 +0800
committerChuanhong Guo <gch981213@gmail.com>2023-03-26 23:55:54 +0800
commit212632540043cc9b911c2efb86156479f2710836 (patch)
tree7e86c0561c850ee4d76cd7f6bebefea7fc09c68c /target/linux/ramips/mt7621/base-files/etc
parent3ab670b24eee8adef77a71d9d11ee362c1668b26 (diff)
downloadupstream-212632540043cc9b911c2efb86156479f2710836.tar.gz
upstream-212632540043cc9b911c2efb86156479f2710836.tar.bz2
upstream-212632540043cc9b911c2efb86156479f2710836.zip
ramips: fix 5g mac for TOTOLINK X5000R
There's no valid mac address for the second band in the eeprom. The vendor fw uses 2.4G mac + 4 as the mac for 5G radio. Do the same in our firmware. Fixes: 23be410b3d ("ramips: add support for TOTOLINK X5000R") Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target/linux/ramips/mt7621/base-files/etc')
-rw-r--r--target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac4
1 files changed, 4 insertions, 0 deletions
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 b23464bebe..b3de1f39cf 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
@@ -152,6 +152,10 @@ case "$board" in
hw_mac_addr="$(mtd_get_mac_binary factory 0x4)"
[ "$PHYNBR" = "1" ] && macaddr_add $hw_mac_addr "0x100000" > /sys${DEVPATH}/macaddress
;;
+ totolink,x5000r)
+ hw_mac_addr="$(mtd_get_mac_binary factory 0x4)"
+ [ "$PHYNBR" = "1" ] && macaddr_add $hw_mac_addr 4 > /sys${DEVPATH}/macaddress
+ ;;
tplink,eap615-wall-v1)
hw_mac_addr="$(mtd_get_mac_binary product-info 0x8)"
macaddr_add "$hw_mac_addr" "$PHYNBR" > "/sys${DEVPATH}/macaddress"