aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config.h
diff options
context:
space:
mode:
authorJimmy Chen <jimmycmchen@google.com>2018-11-29 08:46:43 (GMT)
committerJouni Malinen <j@w1.fi>2019-01-12 15:58:30 (GMT)
commita95906f9381ee8aa4ccb66e1c99952658d8e3369 (patch)
tree92e523e361885382de8bb6d3832fbbc39334708c /wpa_supplicant/config.h
parent9359cc8483eb84fbbb0a75cf64dcffd213fb412e (diff)
downloadhostap-a95906f9381ee8aa4ccb66e1c99952658d8e3369.zip
hostap-a95906f9381ee8aa4ccb66e1c99952658d8e3369.tar.gz
hostap-a95906f9381ee8aa4ccb66e1c99952658d8e3369.tar.bz2
P2P: support random interface address
To enhance privacy, generate a random interface for each group. There are two configurations are introduced: * p2p_interface_random_mac_addr enable interface random MAC address feature, default disable. Signed-off-by: Jimmy Chen <jimmycmchen@google.com>
Diffstat (limited to 'wpa_supplicant/config.h')
-rw-r--r--wpa_supplicant/config.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/wpa_supplicant/config.h b/wpa_supplicant/config.h
index 0d02827..15d8c48 100644
--- a/wpa_supplicant/config.h
+++ b/wpa_supplicant/config.h
@@ -1507,6 +1507,16 @@ struct wpa_config {
* random MAC address, and need to restore to last used MAC address.
*/
u8 p2p_device_persistent_mac_addr[ETH_ALEN];
+
+ /**
+ * p2p_interface_random_mac_addr - P2P Interface MAC address policy default
+ *
+ * 0 = use permanent MAC address
+ * 1 = use random MAC address on creating the interface.
+ *
+ * By default, permanent MAC address is used.
+ */
+ int p2p_interface_random_mac_addr;
};