diff options
author | Daniel Golle <daniel@makrotopia.org> | 2022-11-24 16:38:29 +0000 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2022-11-24 16:46:33 +0000 |
commit | c1d1202e67dc929e58c4d6d1f2698363cbf1b6f7 (patch) | |
tree | 159e73490157c0e5183ac29759237a959a256492 /target/linux/mediatek/mt7622 | |
parent | 87fc4854505fc459e9e9bedb7474f47d84077ab0 (diff) | |
download | upstream-c1d1202e67dc929e58c4d6d1f2698363cbf1b6f7.tar.gz upstream-c1d1202e67dc929e58c4d6d1f2698363cbf1b6f7.tar.bz2 upstream-c1d1202e67dc929e58c4d6d1f2698363cbf1b6f7.zip |
mediatek: set persistent wifi mac for bpi-r64 and bpi-r3
Use persistent MAC address for the built-in wireless interfaces of the
BPi-R64 and BPi-R3 development boards.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'target/linux/mediatek/mt7622')
-rw-r--r-- | target/linux/mediatek/mt7622/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/mediatek/mt7622/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac b/target/linux/mediatek/mt7622/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac index d573465745..00ed12cd2f 100644 --- a/target/linux/mediatek/mt7622/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac +++ b/target/linux/mediatek/mt7622/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac @@ -10,6 +10,9 @@ PHYNBR=${DEVPATH##*/phy} board=$(board_name) case "$board" in + bananapi,bpi-r64) + [ "$PHYNBR" = "0" ] && macaddr_add $(cat /sys/class/net/eth0/address) 2 > /sys${DEVPATH}/macaddress + ;; ruijie,rg-ew3200gx-pro) [ "$PHYNBR" = "0" ] && macaddr_add $(get_mac_label) 3 > /sys${DEVPATH}/macaddress [ "$PHYNBR" = "1" ] && macaddr_add $(get_mac_label) 2 > /sys${DEVPATH}/macaddress |