mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-07 01:53:34 +08:00
mtwifi-cfg: luci: fix twt settings
This commit is contained in:
parent
ca6260fbf2
commit
115a22fa14
@ -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)';
|
||||
|
@ -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
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user