summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Leung2026-06-06 11:19:24 +0000
committerHauke Mehrtens2026-06-25 19:16:10 +0000
commit333ff2d1de21781bdda844341a7aef876f3c287b (patch)
treea39b82ba8ca678ec6bac935f41bd315e3c7a0142
parent7ae998c4b62d05f6121e31b8aedb5a862794b11a (diff)
downloadopenwrt-333ff2d1de21781bdda844341a7aef876f3c287b.tar.gz
mediatek: wavlink wl-wn536ax6 rev a: fix WLAN 5GHz MAC address
The second WLAN MAC address in the "Factory" partition at 0x0a is not the same as the WLAN 5GHz BSSID observed when using the manufacturer's stock firmware, which is derived from the 2.4GHz/label MAC address by setting bits 26 and 7 (Locally Administered). While at it, also fix alphabetical ordering of some other device names. Fixes: 1748ce829537 ("mediatek: add support for WAVLINK WL-WN536AX6 Rev a") Signed-off-by: Ryan Leung <untilscour@protonmail.com> Link: https://github.com/openwrt/openwrt/pull/23682 Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com> (cherry picked from commit 2fe7396cabc00fe9bcab57cc8f83006495d9a6ed) Link: https://github.com/openwrt/openwrt/pull/23791 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--target/linux/mediatek/filogic/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac14
1 files changed, 9 insertions, 5 deletions
diff --git a/target/linux/mediatek/filogic/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac b/target/linux/mediatek/filogic/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac
index ea04d7fc1c..73c49931ef 100644
--- a/target/linux/mediatek/filogic/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac
+++ b/target/linux/mediatek/filogic/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac
@@ -218,6 +218,13 @@ case "$board" in
[ "$PHYNBR" = "0" ] && macaddr_add $addr 2 > /sys${DEVPATH}/macaddress
[ "$PHYNBR" = "1" ] && macaddr_add $addr 3 > /sys${DEVPATH}/macaddress
;;
+ routerich,ax3000|\
+ routerich,ax3000-ubootmod|\
+ zbtlink,zbt-z8102ax|\
+ zbtlink,zbt-z8102ax-v2)
+ addr=$(mtd_get_mac_binary "Factory" 0x4)
+ [ "$PHYNBR" = "1" ] && macaddr_add $addr 1 > /sys${DEVPATH}/macaddress
+ ;;
ruijie,rg-x60-pro)
addr=$(mtd_get_mac_ascii product_info ethaddr)
[ "$PHYNBR" = "0" ] && macaddr_add $addr 2 > /sys${DEVPATH}/macaddress
@@ -241,12 +248,9 @@ case "$board" in
tplink,tl-xtr8488)
[ "$PHYNBR" = "1" ] && get_mac_label > /sys${DEVPATH}/macaddress
;;
- routerich,ax3000|\
- routerich,ax3000-ubootmod|\
- zbtlink,zbt-z8102ax|\
- zbtlink,zbt-z8102ax-v2)
+ wavlink,wl-wn536ax6-a)
addr=$(mtd_get_mac_binary "Factory" 0x4)
- [ "$PHYNBR" = "1" ] && macaddr_add $addr 1 > /sys${DEVPATH}/macaddress
+ [ "$PHYNBR" = "1" ] && macaddr_setbit_la $(macaddr_setbit $addr 26) > /sys${DEVPATH}/macaddress
;;
wavlink,wl-wn573hx3)
addr=$(mtd_get_mac_binary factory 0x04)