diff options
author | Sungbo Eo <mans0n@gorani.run> | 2022-01-31 08:38:16 +0900 |
---|---|---|
committer | Sungbo Eo <mans0n@gorani.run> | 2022-02-11 22:30:04 +0900 |
commit | cdc735de621e09ae2f2c470f72d12d90eeb35ffa (patch) | |
tree | 9283e216958d52b845b0345097d5c92ecd14d836 | |
parent | 37753f34ac68fbd70730aa37a6b8b94ad3215d85 (diff) | |
download | upstream-cdc735de621e09ae2f2c470f72d12d90eeb35ffa.tar.gz upstream-cdc735de621e09ae2f2c470f72d12d90eeb35ffa.tar.bz2 upstream-cdc735de621e09ae2f2c470f72d12d90eeb35ffa.zip |
ramips: update WLAN MAC address of ipTIME A3004T
Reported MAC addresses:
| interface | MAC address | source | comment
|-----------|-------------------|----------------|---------
| LAN | 90:xx:xx:18:xx:1F | | [1]
| WAN | 90:xx:xx:18:xx:1D | |
| WLAN 2G | 92:xx:xx:48:xx:1C | |
| WLAN 5G | 90:xx:xx:18:xx:1C | factory 0x4 |
| | 90:xx:xx:18:xx:1C | config ethaddr |
[1] Used in this patch as WLAN 2G MAC address with the local bit set
Signed-off-by: Sungbo Eo <mans0n@gorani.run>
-rw-r--r-- | target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac | 6 |
1 files changed, 6 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 c5e6b6c89b..e3b79e1699 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 @@ -25,6 +25,12 @@ case "$board" in [ "$PHYNBR" = "1" ] && \ macaddr_add "$(mtd_get_mac_binary factory 0x4)" 1 > /sys${DEVPATH}/macaddress ;; + iptime,a3004t) + hw_mac_addr="$(mtd_get_mac_binary factory 0x4)" + [ "$PHYNBR" = "0" ] && \ + macaddr_setbit_la "$(macaddr_add $hw_mac_addr 3)" > /sys${DEVPATH}/macaddress + [ "$PHYNBR" = "1" ] && echo -n "$hw_mac_addr" > /sys${DEVPATH}/macaddress + ;; iptime,ax2004m) if [ "$PHYNBR" = "1" ]; then hw_mac_addr="$(mtd_get_mac_binary factory 0x4)" |