diff options
author | Chuanhong Guo <gch981213@gmail.com> | 2023-03-26 23:50:43 +0800 |
---|---|---|
committer | Chuanhong Guo <gch981213@gmail.com> | 2023-03-27 00:07:34 +0800 |
commit | 96e3fee7add1acf6da26d524c6b7098f5c809ebd (patch) | |
tree | 1aed0af705c1f688b15528c7f769d37dce63b634 /target/linux/ramips | |
parent | f5db04e8ea8377046a86885fdd5a83e948b54918 (diff) | |
download | upstream-96e3fee7add1acf6da26d524c6b7098f5c809ebd.tar.gz upstream-96e3fee7add1acf6da26d524c6b7098f5c809ebd.tar.bz2 upstream-96e3fee7add1acf6da26d524c6b7098f5c809ebd.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>
(cherry picked from commit 212632540043cc9b911c2efb86156479f2710836)
Diffstat (limited to 'target/linux/ramips')
-rw-r--r-- | target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac | 4 |
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 07cfd9c51a..78c5d248f9 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 @@ -103,6 +103,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" |