WPS: Allow the priority for the WPS networks to be configured
[mech_eap.git] / wpa_supplicant / config.h
index 34b754e..545a4bd 100644 (file)
@@ -37,6 +37,7 @@
 
 #include "config_ssid.h"
 #include "wps/wps.h"
+#include "common/ieee802_11_defs.h"
 #include "common/ieee802_11_common.h"
 
 
@@ -241,7 +242,7 @@ struct wpa_cred {
        char *phase2;
 
        struct excluded_ssid {
-               u8 ssid[MAX_SSID_LEN];
+               u8 ssid[SSID_MAX_LEN];
                size_t ssid_len;
        } *excluded_ssid;
        size_t num_excluded_ssid;
@@ -1163,6 +1164,14 @@ struct wpa_config {
         * reassoc_same_bss_optim - Whether to optimize reassoc-to-same-BSS
         */
        int reassoc_same_bss_optim;
+
+       /**
+        * wps_priority - Priority for the networks added through WPS
+        *
+        * This priority value will be set to each network profile that is added
+        * by executing the WPS protocol.
+        */
+       int wps_priority;
 };