mtwifi-cfg: move dtim_period to vif_cfg

This commit is contained in:
hanwckf 2024-09-20 02:19:56 +08:00
parent c0c3289b3f
commit 59930ea1b2
4 changed files with 10 additions and 8 deletions

View File

@ -1053,11 +1053,6 @@ return view.extend({
{
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;
o.datatype = 'range(1,255)';
o = ss.taboption('advanced', form.Value, 'beacon_int', _('Beacon Interval'));
o.optional = true;
@ -1357,6 +1352,12 @@ return view.extend({
o.depends('mode', 'ap');
o.placeholder = 2347;
o = ss.taboption('advanced', form.Value, 'dtim_period', _('DTIM Interval'), _('Delivery Traffic Indication Message Interval'));
o.optional = true;
o.placeholder = 1;
o.datatype = 'range(1,255)';
o.depends('mode', 'ap');
o = ss.taboption('advanced', form.Flag, 'mumimo_dl', _('MU-MIMO DL'));
o.depends('mode', 'ap');
o.default = o.disabled;

View File

@ -554,6 +554,7 @@ function mtwifi_cfg_setup(argv)
set_dat(dats, apidx, "APSDCapable", v.config.uapsd)
set_dat(dats, apidx, "RTSThreshold", v.config.rts)
set_dat(dats, apidx, "FragThreshold",v.config.frag)
set_dat(dats, apidx, "DtimPeriod",v.config.dtim_period)
set_dat(dats, apidx, "WirelessMode", WirelessMode)
if v.config.macfilter then

View File

@ -69,6 +69,7 @@ mtwifi_defs.vif_cfgs = {
["WdsEnable"] = "0",
["WscConfMode"] = "0",
["TxRate"] = "0",
["DtimPeriod"] = "1",
}
mtwifi_defs.vif_cfgs_idx = {
@ -85,7 +86,6 @@ mtwifi_defs.vif_acl = {
mtwifi_defs.chip_cfgs = {
-- uci config = dat config, default value
["beacon_int"] = { "BeaconPeriod" , "100"},
["dtim_period"] = { "DtimPeriod", "1"},
["whnat"] = { "WHNAT", "1"},
}

View File

@ -14,7 +14,7 @@ MTWIFI_MAX_APCLI_IDX=0
MTWIFI_CFG_IFNAME_KEY="mtwifi_ifname"
drv_mtwifi_init_device_config() {
config_add_int txpower beacon_int dtim_period
config_add_int txpower beacon_int
config_add_boolean mu_beamformer dbdc_main whnat
config_add_string country twt
}
@ -22,7 +22,7 @@ drv_mtwifi_init_device_config() {
drv_mtwifi_init_iface_config() {
config_add_string 'ssid:string' macfilter bssid kicklow assocthres
config_add_boolean wmm hidden isolate ieee80211k
config_add_int wpa_group_rekey frag rts
config_add_int wpa_group_rekey frag rts dtim_period
config_add_array 'maclist:list(macaddr)'
config_add_boolean mumimo_dl mumimo_ul ofdma_dl ofdma_ul amsdu autoba uapsd
}