mediatek: fix setup wifi mac addr for 360 t7
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 6420b7432f)
This commit is contained in:
@@ -249,8 +249,4 @@
|
||||
status = "okay";
|
||||
|
||||
mediatek,mtd-eeprom = <&factory 0x0>;
|
||||
|
||||
nvmem-cells = <&macaddr_factory_14>;
|
||||
nvmem-cell-names = "mac-address-ascii";
|
||||
mac-address-increment = <2>;
|
||||
};
|
||||
|
||||
@@ -36,12 +36,16 @@ case "$board" in
|
||||
addr=$(mtd_get_mac_ascii config2 wifi5gmac)
|
||||
[ "$PHYNBR" = "1" ] && echo $macaddr > /sys${DEVPATH}/macaddress
|
||||
;;
|
||||
qihoo,360t7|\
|
||||
qihoo,360t7-ubootmod)
|
||||
qihoo,360t7)
|
||||
addr=$(mtd_get_mac_ascii factory lanMac)
|
||||
[ "$PHYNBR" = "0" ] && macaddr_add $addr 2 > /sys${DEVPATH}/macaddress
|
||||
[ "$PHYNBR" = "1" ] && macaddr_add $addr 3 > /sys${DEVPATH}/macaddress
|
||||
;;
|
||||
qihoo,360t7-ubootmod)
|
||||
addr=$(cat /sys/class/net/eth0/address)
|
||||
[ "$PHYNBR" = "0" ] && macaddr_add $addr 2 > /sys${DEVPATH}/macaddress
|
||||
[ "$PHYNBR" = "1" ] && macaddr_add $addr 3 > /sys${DEVPATH}/macaddress
|
||||
;;
|
||||
tplink,tl-xdr4288|\
|
||||
tplink,tl-xdr6086|\
|
||||
tplink,tl-xdr6088)
|
||||
|
||||
Reference in New Issue
Block a user