]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_supplicant AP mode configuration for Transition Disable KDE
authorJouni Malinen <jouni@codeaurora.org>
Wed, 25 Mar 2020 22:18:06 +0000 (00:18 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 25 Mar 2020 22:18:06 +0000 (00:18 +0200)
Allow AP mode network profile in wpa_supplicant to be configured to
advertise Transition Disable DKE.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/ap.c
wpa_supplicant/config.c
wpa_supplicant/config_file.c
wpa_supplicant/config_ssid.h

index ee7c755b5f33fae1bc9ce988aa50b7116a1ccdef..6241682059b97677304ebc02462668e914bc130a 100644 (file)
@@ -607,6 +607,8 @@ no_wps:
        bss->ftm_responder = wpa_s->conf->ftm_responder;
        bss->ftm_initiator = wpa_s->conf->ftm_initiator;
 
+       bss->transition_disable = ssid->transition_disable;
+
        return 0;
 }
 
index 30801abd9b9a7f45e7b285dd43d03f8a0bf95b3b..e86fd7f81c74be04066c8850e98de8877b256ecb 100644 (file)
@@ -2577,6 +2577,7 @@ static const struct parse_data ssid_fields[] = {
        { INT_RANGE(multi_ap_backhaul_sta, 0, 1) },
        { INT_RANGE(ft_eap_pmksa_caching, 0, 1) },
        { INT_RANGE(beacon_prot, 0, 1) },
+       { INT_RANGE(transition_disable, 0, 255) },
 };
 
 #undef OFFSET
index e77cbca4f0153bf3a0022b1d0305c8f3e3c1b8c5..74068d66c5652ff76e0fc2a0be916a56e5d1a7fb 100644 (file)
@@ -935,6 +935,7 @@ static void wpa_config_write_network(FILE *f, struct wpa_ssid *ssid)
        INT(multi_ap_backhaul_sta);
        INT(ft_eap_pmksa_caching);
        INT(beacon_prot);
+       INT(transition_disable);
 #ifdef CONFIG_HT_OVERRIDES
        INT_DEF(disable_ht, DEFAULT_DISABLE_HT);
        INT_DEF(disable_ht40, DEFAULT_DISABLE_HT40);
index 24c7a3d9b9952e796eed4b530c837cac6d265fde..618145e8b203101dc13d053b5c75a0a7f87115b1 100644 (file)
@@ -1070,6 +1070,26 @@ struct wpa_ssid {
         * enabled.
         */
        int beacon_prot;
+
+       /**
+        * transition_disable - Transition Disable indication
+        * The AP can notify authenticated stations to disable transition mode
+        * in their network profiles when the network has completed transition
+        * steps, i.e., once sufficiently large number of APs in the ESS have
+        * been updated to support the more secure alternative. When this
+        * indication is used, the stations are expected to automatically
+        * disable transition mode and less secure security options. This
+        * includes use of WEP, TKIP (including use of TKIP as the group
+        * cipher), and connections without PMF.
+        * Bitmap bits:
+        * bit 0 (0x01): WPA3-Personal (i.e., disable WPA2-Personal = WPA-PSK
+        *      and only allow SAE to be used)
+        * bit 1 (0x02): SAE-PK (disable SAE without use of SAE-PK)
+        * bit 2 (0x04): WPA3-Enterprise (move to requiring PMF)
+        * bit 3 (0x08): Enhanced Open (disable use of open network; require
+        *      OWE)
+        */
+       u8 transition_disable;
 };
 
 #endif /* CONFIG_SSID_H */