ramips-mt7620: add support for Xiaomi MiWifi Mini (#1638)

This commit is contained in:
Manu.WTF 2019-03-29 12:43:05 +01:00 committed by Andreas Ziegler
parent a9a4abb637
commit 3b0e5fab71
2 changed files with 9 additions and 0 deletions

View File

@ -51,6 +51,8 @@ elseif platform.match('ipq40xx', nil, {'avm,fritzbox-4040',
table.insert(try_files, 1, '/sys/class/net/eth0/address')
elseif platform.match('ipq806x', nil, {'netgear,r7800'}) then
table.insert(try_files, 1, '/sys/class/net/eth1/address')
elseif platform.match('ramips', 'mt7620', {'miwifi-mini'}) then
table.insert(try_files, 1, '/sys/class/net/eth0/address')
elseif platform.match('ramips', 'mt7621', {'dir-860l-b1'}) then
table.insert(try_files, 1, '/sys/class/ieee80211/phy1/macaddress')
end

7
targets/ramips-mt7620 Normal file → Executable file
View File

@ -21,3 +21,10 @@ device nexx-wt3020-8m wt3020-8M
alias nexx-wt3020ad
alias nexx-wt3020f
alias nexx-wt3020h
# Xiaomi
if [ "$BROKEN" ]; then
device xiaomi-miwifi-mini miwifi-mini # BROKEN: 2.4GHz WiFi is Unstable
factory
fi