diff mbox series

[LEDE-DEV,2/2] wifi: (80211r) add ft_over_ds support

Message ID 20171102202435.11490-3-lorenzo.santina.dev@gmail.com
State Not Applicable
Delegated to: Mathias Kresin
Headers show
Series wifi: 80211r psk_generate_local and ft_ver_ds | expand

Commit Message

Lorenzo Santina Nov. 2, 2017, 8:24 p.m. UTC
It's now possibile choose if use FT over DS
protocol or FT over the Air protocol for 80211r

Signed-off-by: Lorenzo Santina <lorenzo.santina.dev@gmail.com>
---
 modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua
index 8528f8624..c64226931 100644
--- a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua
+++ b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua
@@ -801,6 +801,12 @@  if hwtype == "mac80211" or hwtype == "prism2" then
 	reassociation_deadline.datatype = "range(1000,65535)"
 	reassociation_deadline.rmempty = true
 
+	ft_protocol = s:taboption("encryption", ListValue, "ft_over_ds", translate("FT protocol"))
+	ft_protocol:depends({ieee80211r="1"})
+	ft_protocol:value("1", translatef("FT over DS"))
+	ft_protocol:value("0", translatef("FT over the Air"))
+	ft_protocol.rmempty = true
+
 	ft_psk_generate_local = s:taboption("encryption", Flag, "ft_psk_generate_local",
 		translate("Generate PMK locally"),
 		translate("When using a PSK, the PMK can be generated locally without inter AP communications"))