diff options
author | David Bauer <mail@david-bauer.net> | 2022-01-19 22:47:37 +0100 |
---|---|---|
committer | David Bauer <mail@david-bauer.net> | 2022-01-22 01:16:49 +0100 |
commit | b0c04a37e48547e1c420386b6bd9b08c93de3429 (patch) | |
tree | 9b45a7f0923bdfd4a0dab5f62b58a4060f73817f | |
parent | 6ae657e459c8c62f4f844a17098d6cc75b81c91b (diff) | |
download | upstream-b0c04a37e48547e1c420386b6bd9b08c93de3429.tar.gz upstream-b0c04a37e48547e1c420386b6bd9b08c93de3429.tar.bz2 upstream-b0c04a37e48547e1c420386b6bd9b08c93de3429.zip |
ramips: update Tenbay T-MB5EU wireless MAC address
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>
-rw-r--r-- | target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac | 3 |
1 files changed, 1 insertions, 2 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 3c3b1e62e7..242e1e6efe 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 @@ -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 |