aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/p2p_supplicant.h
diff options
context:
space:
mode:
authorJimmy Chen <jimmycmchen@google.com>2018-11-13 07:19:57 (GMT)
committerJouni Malinen <j@w1.fi>2019-01-12 15:55:42 (GMT)
commit9359cc8483eb84fbbb0a75cf64dcffd213fb412e (patch)
tree3d2b4c8ce8d985515aa8553db696b1bc763949b5 /wpa_supplicant/p2p_supplicant.h
parent222ff97bc3107b2a2a08631453a261e047b7ddcb (diff)
downloadhostap-9359cc8483eb84fbbb0a75cf64dcffd213fb412e.zip
hostap-9359cc8483eb84fbbb0a75cf64dcffd213fb412e.tar.gz
hostap-9359cc8483eb84fbbb0a75cf64dcffd213fb412e.tar.bz2
P2P: Support random device address
To enhance privacy, generate a random device address for P2P interface. If there is no saved persistent group, it generate a new random MAC address on bringing up p2p0. If there is saved persistent group, it will use last MAC address to avoid breaking group reinvoke behavior. There are two configurations are introduced: * p2p_device_random_mac_addr enable device random MAC address feature, default disable. * p2p_device_persistent_mac_addr store last used random MAC address. Signed-off-by: Jimmy Chen <jimmycmchen@google.com>
Diffstat (limited to 'wpa_supplicant/p2p_supplicant.h')
-rw-r--r--wpa_supplicant/p2p_supplicant.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/p2p_supplicant.h b/wpa_supplicant/p2p_supplicant.h
index 128dfb7..24ec2ca 100644
--- a/wpa_supplicant/p2p_supplicant.h
+++ b/wpa_supplicant/p2p_supplicant.h
@@ -211,6 +211,7 @@ int wpas_p2p_lo_start(struct wpa_supplicant *wpa_s, unsigned int freq,
unsigned int period, unsigned int interval,
unsigned int count);
int wpas_p2p_lo_stop(struct wpa_supplicant *wpa_s);
+int wpas_p2p_mac_setup(struct wpa_supplicant *wpa_s);
#else /* CONFIG_P2P */