mtwifi-cfg: luci: fix twt settings

This commit is contained in:
hanwckf 2023-12-04 19:23:44 +08:00
parent ca6260fbf2
commit 115a22fa14
3 changed files with 7 additions and 4 deletions

View File

@ -1012,7 +1012,10 @@ return view.extend({
o = ss.taboption('advanced', form.Flag, 'mu_beamformer', _('MU-MIMO'));
o = ss.taboption('advanced', form.Flag, 'twt', _('Target Wake Time'));
o = ss.taboption('advanced', form.ListValue, 'twt', _('Target Wake Time'));
o.value('', _('Disable'));
o.value('1', _('Enable'));
o.value('2', _('Force'));
o = ss.taboption('advanced', form.Value, 'frag', _('Fragmentation Threshold'));
o.datatype = 'min(256)';

View File

@ -269,7 +269,7 @@ function mtwifi_cfg_setup(argv)
-- setup dev cfgs
if cfg.config.twt then
dats.TWTSupport = 1
dats.TWTSupport = cfg.config.twt
else
dats.TWTSupport = 0
end

View File

@ -15,8 +15,8 @@ MTWIFI_CFG_IFNAME_KEY="mtwifi_ifname"
drv_mtwifi_init_device_config() {
config_add_int txpower frag rts
config_add_boolean mu_beamformer twt
config_add_string country
config_add_boolean mu_beamformer
config_add_string country twt
}
drv_mtwifi_init_iface_config() {