mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-02-05 13:37:52 +01:00
mediatek: Fix setting MAC address for some devices
This fixes a previous commit breaking setting the MAC address for the
wifi devices.
Fixes: 9ed4d27fbf ("mediatek: filogic: fix 5G MAC address for Zyxel EX5601")
Link: https://github.com/openwrt/openwrt/pull/20100
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
8b891001f6
commit
e49a2192e5
1 changed files with 4 additions and 1 deletions
|
|
@ -215,7 +215,10 @@ case "$board" in
|
|||
routerich,ax3000-ubootmod|\
|
||||
zbtlink,zbt-z8102ax|\
|
||||
zbtlink,zbt-z8102ax-v2|\
|
||||
zbtlink,zbt-z8103ax|\
|
||||
zbtlink,zbt-z8103ax)
|
||||
addr=$(mtd_get_mac_binary "Factory" 0x4)
|
||||
[ "$PHYNBR" = "1" ] && macaddr_add $addr 1 > /sys${DEVPATH}/macaddress
|
||||
;;
|
||||
wavlink,wl-wn573hx3)
|
||||
addr=$(mtd_get_mac_binary factory 0x04)
|
||||
[ "$PHYNBR" = "1" ] && macaddr_setbit_la $(macaddr_add $addr -0x300000) > /sys${DEVPATH}/macaddress
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue