diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2018-09-29 21:50:33 +0200 |
---|---|---|
committer | Ansuel Smith <ansuelsmth@gmail.com> | 2018-09-29 22:10:57 +0200 |
commit | 7d09ee81a02684ab516b2cfaf2dcb682f07b8bb9 (patch) | |
tree | e0acf3c0c09ff281d07a82eb4db6f57ecd4a68f2 /modules/luci-mod-network/luasrc/model | |
parent | 15fc6bf48d0e856d3390ba929bee0165fa81d673 (diff) |
luci-app-network: add rekey option and inactivity tweak
This option is usefull to solve some problems with ath10k-ct and random client disconnect. This also adds some extra option to tune inactivity settings
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Diffstat (limited to 'modules/luci-mod-network/luasrc/model')
-rw-r--r-- | modules/luci-mod-network/luasrc/model/cbi/admin_network/wifi.lua | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/modules/luci-mod-network/luasrc/model/cbi/admin_network/wifi.lua b/modules/luci-mod-network/luasrc/model/cbi/admin_network/wifi.lua index 743efaa1e8..8ed39df486 100644 --- a/modules/luci-mod-network/luasrc/model/cbi/admin_network/wifi.lua +++ b/modules/luci-mod-network/luasrc/model/cbi/admin_network/wifi.lua @@ -16,7 +16,8 @@ local acct_port, acct_secret, acct_server, anonymous_identity, ant1, ant2, mp, nasid, network, password, pmk_r1_push, privkey, privkey2, privkeypwd, privkeypwd2, r0_key_lifetime, r0kh, r1_key_holder, r1kh, reassociation_deadline, retry_timeout, ssid, st, tp, wepkey, wepslot, - wmm, wpakey, wps, disassoc_low_ack, short_preamble, beacon_int, dtim_period + wmm, wpakey, wps, disassoc_low_ack, short_preamble, beacon_int, dtim_period, + wparekey, inactivitypool, maxinactivity, listeninterval arg[1] = arg[1] or "" @@ -507,6 +508,26 @@ if hwtype == "mac80211" then dtim_period.optional = true dtim_period.placeholder = 2 dtim_period.datatype = "range(1,255)" + + + wparekey = s:taboption("advanced", Value, "wpa_group_rekey", translate("Time interval for rekeying GTK"), translate("sec")) + wparekey.optional = true + wparekey.placeholder = 600 + wparekey.datatype = "uinteger" + + inactivitypool = s:taboption("advanced", Flag , "skip_inactivity_poll", translate("Disable Inactivity Polling")) + inactivitypool.optional = true + inactivitypool.datatype = "uinteger" + + maxinactivity = s:taboption("advanced", Value, "max_inactivity", translate("Station inactivity limit"), translate("sec")) + maxinactivity.optional = true + maxinactivity.placeholder = 300 + maxinactivity.datatype = "uinteger" + + listeninterval = s:taboption("advanced", Value, "max_listen_interval", translate("Maximum allowed Listen Interval")) + listeninterval.optional = true + listeninterval.placeholder = 65535 + listeninterval.datatype = "uinteger" disassoc_low_ack = s:taboption("advanced", Flag, "disassoc_low_ack", translate("Disassociate On Low Acknowledgement"), translate("Allow AP mode to disconnect STAs based on low ACK condition")) @@ -794,7 +815,6 @@ for slot=1,4 do end end - if hwtype == "mac80211" or hwtype == "prism2" then -- Probe 802.11r support (and EAP support as a proxy for Openwrt) |