From dadbf9fbdb01e2784a6015bdf6759baaae7d7b59 Mon Sep 17 00:00:00 2001 From: John Dee Date: Wed, 2 Nov 2022 10:45:43 -0700 Subject: [PATCH 1/2] Adding Support to the Belabox UI for the MT76 Driver, used in the Linksys AE6000 --- belaUI.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/belaUI.js b/belaUI.js index 1da371d..abbd47b 100644 --- a/belaUI.js +++ b/belaUI.js @@ -311,6 +311,14 @@ function updateNetif() { wiFiDeviceListAdd(name, hwAddr[1], inetAddr); } } + // Adding support for MediaTek MT67 devices: + // Linksys AE6000 + if (name && name.match('^ra')) { + let hwAddr = int.match(/ether ([0-9a-f:]+)/); + if (hwAddr) { + wiFiDeviceListAdd(name, hwAddr[1], inetAddr); + } + } if (name == 'lo' || name.match('^docker') || name.match('^l4tbr')) continue; From 5436d5c3a21ad54ba843e53ad489a98f05b6fb8a Mon Sep 17 00:00:00 2001 From: John Dee Date: Wed, 2 Nov 2022 11:54:49 -0700 Subject: [PATCH 2/2] Adding ra as a pipe --- belaUI.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/belaUI.js b/belaUI.js index abbd47b..eff8177 100644 --- a/belaUI.js +++ b/belaUI.js @@ -305,21 +305,13 @@ function updateNetif() { if (inetAddr) inetAddr = inetAddr[1]; // update the list of WiFi devices - if (name && name.match('^wlan')) { + if (name && name.match('^(wlan|ra)')) { let hwAddr = int.match(/ether ([0-9a-f:]+)/); if (hwAddr) { wiFiDeviceListAdd(name, hwAddr[1], inetAddr); } } - // Adding support for MediaTek MT67 devices: - // Linksys AE6000 - if (name && name.match('^ra')) { - let hwAddr = int.match(/ether ([0-9a-f:]+)/); - if (hwAddr) { - wiFiDeviceListAdd(name, hwAddr[1], inetAddr); - } - } - + if (name == 'lo' || name.match('^docker') || name.match('^l4tbr')) continue; if (!inetAddr) continue;