From 8067a77f598fc7d32ecc1858e0078492f456e18e Mon Sep 17 00:00:00 2001 From: Jan-Niklas Burfeind Date: Tue, 29 Nov 2022 23:57:05 +0100 Subject: [PATCH] mt7621: add Wavlink Wavlink WS-WN572HP3 4G --- docs/user/supported_devices.rst | 4 ++++ package/gluon-core/luasrc/lib/gluon/upgrade/250-cellular | 4 ++++ package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua | 5 +++++ targets/ramips-mt7621 | 5 +++++ 4 files changed, 18 insertions(+) diff --git a/docs/user/supported_devices.rst b/docs/user/supported_devices.rst index a95f46e9..d4727ada 100644 --- a/docs/user/supported_devices.rst +++ b/docs/user/supported_devices.rst @@ -368,6 +368,10 @@ ramips-mt7621 - EdgeRouter X-SFP - UniFi 6 Lite +* Wavlink + + - WS-WN572HP3 (4G) + * ZBT - WG3526-16M diff --git a/package/gluon-core/luasrc/lib/gluon/upgrade/250-cellular b/package/gluon-core/luasrc/lib/gluon/upgrade/250-cellular index ab6bdfba..f428f67f 100755 --- a/package/gluon-core/luasrc/lib/gluon/upgrade/250-cellular +++ b/package/gluon-core/luasrc/lib/gluon/upgrade/250-cellular @@ -50,6 +50,10 @@ elseif platform.match('ipq40xx', 'generic', { 'glinet,gl-ap1300', }) then setup_ncm_qmi('/dev/cdc-wdm0', 'qmi', 15) +elseif platform.match('ramips', 'mt7621', { + 'wavlink,ws-wn572hp3-4g', +}) then + setup_ncm_qmi('/dev/ttyUSB2', 'ncm', 15) end uci:save('network') diff --git a/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua b/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua index 1d4a41b0..3301319e 100644 --- a/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua +++ b/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua @@ -61,6 +61,7 @@ function M.is_outdoor_device() return true elseif M.match('ramips', 'mt7621', { + 'wavlink,ws-wn572hp3-4g', 'zyxel,nwa55axe', }) then return true @@ -78,6 +79,10 @@ function M.is_cellular_device() 'glinet,gl-ap1300', }) then return true + elseif M.match('ramips', 'mt7621', { + 'wavlink,ws-wn572hp3-4g', + }) then + return true end return false diff --git a/targets/ramips-mt7621 b/targets/ramips-mt7621 index b127c8a5..988854e7 100644 --- a/targets/ramips-mt7621 +++ b/targets/ramips-mt7621 @@ -59,6 +59,11 @@ device('ubiquiti-unifi-6-lite', 'ubnt_unifi-6-lite', { factory = false, }) +-- Wavlink + +device('wavlink-ws-wn572hp3-4g', 'wavlink_ws-wn572hp3-4g', { + factory = false, +}) -- Xiaomi