From 5b1a7d3b2471263c6ca3a7f7a49a47777828d8ea Mon Sep 17 00:00:00 2001 From: hanwckf Date: Tue, 5 Dec 2023 22:17:52 +0800 Subject: [PATCH] luci-app-mtwifi-cfg: add kicklow and assocthres options --- .../luci-app-mtwifi-cfg/po/zh_Hans/mtwifi-cfg.po | 6 ++++++ .../usr/share/luci-app-mtwifi-cfg/wireless-mtk.js | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/package/mtk/applications/luci-app-mtwifi-cfg/po/zh_Hans/mtwifi-cfg.po b/package/mtk/applications/luci-app-mtwifi-cfg/po/zh_Hans/mtwifi-cfg.po index 2deb51a39d..8c3565c693 100644 --- a/package/mtk/applications/luci-app-mtwifi-cfg/po/zh_Hans/mtwifi-cfg.po +++ b/package/mtk/applications/luci-app-mtwifi-cfg/po/zh_Hans/mtwifi-cfg.po @@ -24,3 +24,9 @@ msgstr "自动块确认" msgid "U-APSD" msgstr "U-APSD 省电模式" + +msgid "Kick low RSSI station threshold" +msgstr "弱信号剔除阈值" + +msgid "Station associate threshold" +msgstr "弱信号接入阈值" diff --git a/package/mtk/applications/luci-app-mtwifi-cfg/root/usr/share/luci-app-mtwifi-cfg/wireless-mtk.js b/package/mtk/applications/luci-app-mtwifi-cfg/root/usr/share/luci-app-mtwifi-cfg/wireless-mtk.js index 7932211034..d5beb6c09d 100644 --- a/package/mtk/applications/luci-app-mtwifi-cfg/root/usr/share/luci-app-mtwifi-cfg/wireless-mtk.js +++ b/package/mtk/applications/luci-app-mtwifi-cfg/root/usr/share/luci-app-mtwifi-cfg/wireless-mtk.js @@ -1296,6 +1296,18 @@ return view.extend({ o.datatype = 'uinteger'; o.depends('mode', 'ap'); + o = ss.taboption('advanced', form.Value, 'kicklow', _('Kick low RSSI station threshold'), _('dBm')); + o.optional = true; + o.placeholder = 0; + o.datatype = 'range(-100,0)'; + o.depends('mode', 'ap'); + + o = ss.taboption('advanced', form.Value, 'assocthres', _('Station associate threshold'), _('dBm')); + o.optional = true; + o.placeholder = 0; + o.datatype = 'range(-100,0)'; + o.depends('mode', 'ap'); + o = ss.taboption('advanced', form.Flag, 'mumimo_dl', _('MU-MIMO DL')); o.depends('mode', 'ap'); o.default = o.enabled;