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:15:18 +0000 (18:15 +0300)
OpenWrt commit 2984a0420 (cb650143 for 21.02) 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>
(cherry picked from commit 2c3c7f5c50efd71bf87c068359cb0110a513186f)

modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js

index 77f53e2b7dd4e2eb5ddaf093c3a67716616db3d3..20419a1cb20eff154d63fe95934ed46197348458 100644 (file)
@@ -1526,8 +1526,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.'));