ramips-mt7620: add support for TP-Link Archer C2 v1

This commit is contained in:
Dark4MD 2020-01-06 00:02:44 +01:00 committed by David Bauer
parent bc5707340d
commit 13f16ed737
3 changed files with 12 additions and 1 deletions

View File

@ -300,6 +300,10 @@ ramips-mt7620
- WT3020AD/F/H - WT3020AD/F/H
* TP-Link
- Archer C2 v1
* Xiaomi * Xiaomi
- MiWiFi Mini - MiWiFi Mini

View File

@ -61,7 +61,7 @@ elseif platform.match('mpc85xx', 'p1020', {'aerohive,hiveap-330'}) then
table.insert(try_files, 1, '/sys/class/net/eth0/address') table.insert(try_files, 1, '/sys/class/net/eth0/address')
elseif platform.match('mpc85xx', 'p1020', {'ocedo,panda'}) then elseif platform.match('mpc85xx', 'p1020', {'ocedo,panda'}) then
table.insert(try_files, 1, '/sys/class/net/eth1/address') table.insert(try_files, 1, '/sys/class/net/eth1/address')
elseif platform.match('ramips', 'mt7620', {'miwifi-mini'}) then elseif platform.match('ramips', 'mt7620', {'miwifi-mini', 'tplink,c2-v1'}) then
table.insert(try_files, 1, '/sys/class/net/eth0/address') table.insert(try_files, 1, '/sys/class/net/eth0/address')
elseif platform.match('ramips', 'mt7621', {'dir-860l-b1'}) then elseif platform.match('ramips', 'mt7621', {'dir-860l-b1'}) then
table.insert(try_files, 1, '/sys/class/ieee80211/phy1/macaddress') table.insert(try_files, 1, '/sys/class/ieee80211/phy1/macaddress')

View File

@ -32,6 +32,13 @@ device('nexx-wt3020-8m', 'wt3020-8M', {
}) })
-- TP-Link
device('tp-link-archer-c2-v1', 'tplink_c2-v1', {
factory = false,
})
-- Xiaomi -- Xiaomi
device('xiaomi-miwifi-mini', 'miwifi-mini', { device('xiaomi-miwifi-mini', 'miwifi-mini', {