luci-app-mtwifi-cfg: add whnat option

This commit is contained in:
hanwckf 2023-12-29 00:09:23 +08:00
parent 0d435d10b4
commit c287e219ee
4 changed files with 8 additions and 1 deletions

View File

@ -30,3 +30,6 @@ msgstr "弱信号剔除阈值"
msgid "Station associate threshold"
msgstr "弱信号接入阈值"
msgid "Wireless HWNAT"
msgstr "无线硬件加速"

View File

@ -1017,6 +1017,9 @@ return view.extend({
if (is_dbdc_main)
{
o = ss.taboption('advanced', form.Flag, 'whnat', _('Wireless HWNAT'));
o.default = o.enabled;
o = ss.taboption('advanced', form.Value, 'dtim_period', _('DTIM Interval'), _('Delivery Traffic Indication Message Interval'));
o.optional = true;
o.placeholder = 1;

View File

@ -85,6 +85,7 @@ mtwifi_defs.chip_cfgs = {
-- uci config = dat config, default value
["beacon_int"] = { "BeaconPeriod" , "100"},
["dtim_period"] = { "DtimPeriod", "1"},
["whnat"] = { "WHNAT", "1"},
}
mtwifi_defs.reinstall_cfgs = {

View File

@ -15,7 +15,7 @@ MTWIFI_CFG_IFNAME_KEY="mtwifi_ifname"
drv_mtwifi_init_device_config() {
config_add_int txpower beacon_int dtim_period
config_add_boolean mu_beamformer dbdc_main
config_add_boolean mu_beamformer dbdc_main whnat
config_add_string country twt
}