ramips: update Tenbay T-MB5EU wireless MAC address
authorDavid Bauer <mail@david-bauer.net>
Wed, 19 Jan 2022 21:47:37 +0000 (22:47 +0100)
committerDavid Bauer <mail@david-bauer.net>
Sat, 22 Jan 2022 00:16:49 +0000 (01:16 +0100)
The current MAC address assignment is still incorrect.

Use the same MAC address as seen on the stock firmware
for both wireless interfaces.

The 5GHz MAC address OUI is +2 in the first EUI octet. We currently
don't do this in OpenWrt. Ignore this offset for now. With the current
assignment, recurring MAC addresses between radios is already taken care
of.

Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac

index 3c3b1e62e74718577d73367792875d931c4bb349..242e1e6efeec66b0856b26b2f794b1f1746c59c2 100644 (file)
@@ -47,7 +47,6 @@ case "$board" in
                ;;
        tenbay,t-mb5eu-v01)
                hw_mac_addr="$(mtd_get_mac_binary factory 0x4)"
-               [ "$PHYNBR" = "0" ] && macaddr_add $hw_mac_addr "1" > /sys${DEVPATH}/macaddress
-               [ "$PHYNBR" = "1" ] && macaddr_add $hw_mac_addr "-1" > /sys${DEVPATH}/macaddress
+               [ "$PHYNBR" = "1" ] &&  macaddr_add $hw_mac_addr "0x100000" > /sys${DEVPATH}/macaddress
                ;;
 esac