]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - wpa_supplicant/config_ssid.h
DPP2: Allow AP to require or reject PFS
[thirdparty/hostap.git] / wpa_supplicant / config_ssid.h
index 3da3ed47208fb7274cc0c9049b23e1d40f6df7f5..618145e8b203101dc13d053b5c75a0a7f87115b1 100644 (file)
@@ -39,6 +39,7 @@
 #define DEFAULT_AMPDU_FACTOR -1 /* no change */
 #define DEFAULT_AMPDU_DENSITY -1 /* no change */
 #define DEFAULT_USER_SELECTED_SIM 1
+#define DEFAULT_MAX_OPER_CHWIDTH -1
 
 struct psk_list_entry {
        struct dl_list list;
@@ -47,6 +48,15 @@ struct psk_list_entry {
        u8 p2p;
 };
 
+enum wpas_mode {
+       WPAS_MODE_INFRA = 0,
+       WPAS_MODE_IBSS = 1,
+       WPAS_MODE_AP = 2,
+       WPAS_MODE_P2P_GO = 3,
+       WPAS_MODE_P2P_GROUP_FORMATION = 4,
+       WPAS_MODE_MESH = 5,
+};
+
 /**
  * struct wpa_ssid - Network configuration data
  *
@@ -203,6 +213,8 @@ struct wpa_ssid {
         */
        char *sae_password_id;
 
+       struct sae_pt *pt;
+
        /**
         * ext_psk - PSK/passphrase name in external storage
         *
@@ -288,6 +300,7 @@ struct wpa_ssid {
        struct eap_peer_config eap;
 #endif /* IEEE8021X_EAPOL */
 
+#ifdef CONFIG_WEP
 #define NUM_WEP_KEYS 4
 #define MAX_WEP_KEY_LEN 16
        /**
@@ -304,6 +317,7 @@ struct wpa_ssid {
         * wep_tx_keyidx - Default key index for TX frames using WEP
         */
        int wep_tx_keyidx;
+#endif /* CONFIG_WEP */
 
        /**
         * proactive_key_caching - Enable proactive key caching
@@ -393,14 +407,7 @@ struct wpa_ssid {
         * CCMP, but not both), and psk must also be set (either directly or
         * using ASCII passphrase).
         */
-       enum wpas_mode {
-               WPAS_MODE_INFRA = 0,
-               WPAS_MODE_IBSS = 1,
-               WPAS_MODE_AP = 2,
-               WPAS_MODE_P2P_GO = 3,
-               WPAS_MODE_P2P_GROUP_FORMATION = 4,
-               WPAS_MODE_MESH = 5,
-       } mode;
+       enum wpas_mode mode;
 
        /**
         * pbss - Whether to use PBSS. Relevant to DMG networks only.
@@ -443,7 +450,6 @@ struct wpa_ssid {
         */
        char *id_str;
 
-#ifdef CONFIG_IEEE80211W
        /**
         * ieee80211w - Whether management frame protection is enabled
         *
@@ -457,7 +463,6 @@ struct wpa_ssid {
         * followed).
         */
        enum mfp_options ieee80211w;
-#endif /* CONFIG_IEEE80211W */
 
 #ifdef CONFIG_OCV
        /**
@@ -482,6 +487,23 @@ struct wpa_ssid {
         */
        int frequency;
 
+       /**
+        * enable_edmg - Enable EDMG feature in STA/AP mode
+        *
+        * This flag is used for enabling the EDMG capability in STA/AP mode.
+        */
+       int enable_edmg;
+
+       /**
+        * edmg_channel - EDMG channel number
+        *
+        * This value is used to configure the EDMG channel bonding feature.
+        * In AP mode it defines the EDMG channel to start the AP on.
+        * in STA mode it defines the EDMG channel to use for connection
+        * (if supported by AP).
+        */
+       u8 edmg_channel;
+
        /**
         * fixed_freq - Use fixed frequency for IBSS
         */
@@ -518,6 +540,8 @@ struct wpa_ssid {
 
        int vht;
 
+       int he;
+
        int max_oper_chwidth;
 
        unsigned int vht_center_freq1;
@@ -531,6 +555,19 @@ struct wpa_ssid {
         */
        int wpa_ptk_rekey;
 
+       /** wpa_deny_ptk0_rekey - Control PTK0 rekeying
+        *
+        * Rekeying a pairwise key using only keyid 0 (PTK0 rekey) has many
+        * broken implementations and should be avoided when using or
+        * interacting with one.
+        *
+        * 0 = always rekey when configured/instructed
+        * 1 = only rekey when the local driver is explicitly indicating it can
+        *      perform this operation without issues
+        * 2 = never allow PTK0 rekeys
+        */
+       enum ptk0_rekey_handling wpa_deny_ptk0_rekey;
+
        /**
         * group_rekey - Group rekeying time in seconds
         *
@@ -855,8 +892,9 @@ struct wpa_ssid {
        /**
         * mka_cak - MKA pre-shared CAK
         */
-#define MACSEC_CAK_LEN 16
-       u8 mka_cak[MACSEC_CAK_LEN];
+#define MACSEC_CAK_MAX_LEN 32
+       size_t mka_cak_len;
+       u8 mka_cak[MACSEC_CAK_MAX_LEN];
 
 #define MKA_PSK_SET_CKN BIT(0)
 #define MKA_PSK_SET_CAK BIT(1)
@@ -985,6 +1023,19 @@ struct wpa_ssid {
         */
        int owe_only;
 
+       /**
+        * owe_ptk_workaround - OWE PTK derivation workaround
+        *
+        * Initial OWE implementation used SHA256 when deriving the PTK for all
+        * OWE groups. This was supposed to change to SHA384 for group 20 and
+        * SHA512 for group 21. This parameter can be used to enable older
+        * behavior mainly for testing purposes. There is no impact to group 19
+        * behavior, but if enabled, this will make group 20 and 21 cases use
+        * SHA256-based PTK derivation which will not work with the updated
+        * OWE implementation on the AP side.
+        */
+       int owe_ptk_workaround;
+
        /**
         * owe_transition_bss_select_count - OWE transition BSS select count
         *
@@ -1001,6 +1052,44 @@ struct wpa_ssid {
         * 1 = Multi-AP backhaul station
         */
        int multi_ap_backhaul_sta;
+
+       /**
+        * ft_eap_pmksa_caching - Whether FT-EAP PMKSA caching is allowed
+        * 0 = do not try to use PMKSA caching with FT-EAP
+        * 1 = try to use PMKSA caching with FT-EAP
+        *
+        * This controls whether to try to use PMKSA caching with FT-EAP for the
+        * FT initial mobility domain association.
+        */
+       int ft_eap_pmksa_caching;
+
+       /**
+        * beacon_prot - Whether Beacon protection is enabled
+        *
+        * This depends on management frame protection (ieee80211w) being
+        * 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 */