]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - wpa_supplicant/config_ssid.h
Add support for using random local MAC address
[thirdparty/hostap.git] / wpa_supplicant / config_ssid.h
index 26b91bd18024e070d7c18a88673f97a3c4e2fe43..b5dbf6ee38c8bc2e0310368ac1cf2907d0c20d78 100644 (file)
@@ -653,6 +653,18 @@ struct wpa_ssid {
 #endif /* CONFIG_HS20 */
 
        unsigned int wps_run;
+
+       /**
+        * mac_addr - MAC address policy
+        *
+        * 0 = use permanent MAC address
+        * 1 = use random MAC address for each ESS connection
+        *
+        * Internally, special value -1 is used to indicate that the parameter
+        * was not specified in the configuration (i.e., default behavior is
+        * followed).
+        */
+       int mac_addr;
 };
 
 #endif /* CONFIG_SSID_H */