luci-mod-network: Offer ft-over-air by default for 802.11r
authorHannu Nyman <hannu.nyman@iki.fi>
Thu, 1 Sep 2022 15:08:56 +0000 (18:08 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Thu, 1 Sep 2022 15:08:56 +0000 (18:08 +0300)
OpenWrt commit 2984a0420 changed the default 802.11r Fast Transition
method to be ft-over-air instead of ft-over-ds.

Offer ft-over-air as the first item in the drop-down list, so that
it gets selected by default when 802.11r option is enabled.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js

index 9b4cb06f2926575730a2f2001f7e31f3f51465c6..e5e217346299cfa0bdf951b34cf423127b0522c7 100644 (file)
@@ -1544,8 +1544,8 @@ return view.extend({
 
                                        o = ss.taboption('encryption', form.ListValue, 'ft_over_ds', _('FT protocol'));
                                        o.depends({ ieee80211r: '1' });
-                                       o.value('1', _('FT over DS'));
                                        o.value('0', _('FT over the Air'));
+                                       o.value('1', _('FT over DS'));
                                        o.rmempty = true;
 
                                        o = ss.taboption('encryption', form.Flag, 'ft_psk_generate_local', _('Generate PMK locally'), _('When using a PSK, the PMK can be automatically generated. When enabled, the R0/R1 key options below are not applied. Disable this to use the R0 and R1 key options.'));