luci-mod-network: (wireless) Expose RSN Preauth WPA2-EAP setting.
authorPaul Dee <itsascambutmailmeanyway@gmail.com>
Thu, 2 Dec 2021 19:39:52 +0000 (20:39 +0100)
committerPaul Dee <itsascambutmailmeanyway@gmail.com>
Wed, 8 Dec 2021 01:00:44 +0000 (02:00 +0100)
Tested on: 21.02.1

Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js

index 77f53e2b7dd4e2eb5ddaf093c3a67716616db3d3..95b8890ece219867b293c09af426a3d8e3c0e51d 100644 (file)
@@ -1438,6 +1438,10 @@ return view.extend({
                                o.rmempty = true;
                                o.password = true;
 
+                               //WPA(1) has only WPA IE. Only >= WPA2 has RSN IE Preauth frames.
+                               o = ss.taboption('encryption', form.Flag, 'rsn_preauth', _('RSN Preauth'), _('Robust Security Network (RSN): Allow roaming preauth for WPA2-EAP networks (and advertise it in WLAN beacons). Only works if the specified network interface is a bridge. Shortens the time-critical reassociation process.'));
+                               add_dependency_permutations(o, { mode: ['ap', 'ap-wds'], encryption: ['wpa2', 'wpa3', 'wpa3-mixed'] });
+
 
                                o = ss.taboption('encryption', form.Value, '_wpa_key', _('Key'));
                                o.depends('encryption', 'psk');