diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2021-07-11 15:19:47 +0200 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2021-07-12 00:19:36 +0200 |
commit | 3ac13416ca67908a691d3ae3c9b08623a56e9c60 (patch) | |
tree | 4fe3760d0a379e31dff57f9fa5ae31b7768dff42 | |
parent | 6639623e75b84de5cf4a657be7a80383309e290d (diff) | |
download | upstream-3ac13416ca67908a691d3ae3c9b08623a56e9c60.tar.gz upstream-3ac13416ca67908a691d3ae3c9b08623a56e9c60.tar.bz2 upstream-3ac13416ca67908a691d3ae3c9b08623a56e9c60.zip |
ramips: fix Wifi MAC address setup for D-Link DIR-853 R1
Commands in 10_fix_wifi_mac were not properly concatenated, so
this was also triggered for the second phy without giving a
MAC address as argument.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
-rw-r--r-- | target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac | 6 |
1 files changed, 3 insertions, 3 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 4349a3592d..711af4e3af 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 @@ -16,10 +16,10 @@ case "$board" in > /sys${DEVPATH}/macaddress ;; dlink,dir-853-r1) - [ "$PHYNBR" = "0" ] && \ - base_mac=$(mtd_get_mac_binary factory 0x4) - base_mac=$(macaddr_add "$base_mac" -1) + if [ "$PHYNBR" = "0" ]; then + base_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x4)" -1) macaddr_setbit_la "$base_mac" > /sys${DEVPATH}/macaddress + fi ;; glinet,gl-mt1300) [ "$PHYNBR" = "1" ] && \ |