aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_supplicant_i.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-05-10 10:49:22 +0300
committerJouni Malinen <j@w1.fi>2012-05-10 10:49:22 +0300
commitab28911dbf77fa050459fb30d28037f54c04bde6 (patch)
tree86cbdc2ace06fcd9dbacf22b4c189a61db3ac287 /wpa_supplicant/wpa_supplicant_i.h
parent2249d7149ebbe945f5145dd611b2633d82ef211d (diff)
downloadexternal_wpa_supplicant_8_ti-ab28911dbf77fa050459fb30d28037f54c04bde6.zip
external_wpa_supplicant_8_ti-ab28911dbf77fa050459fb30d28037f54c04bde6.tar.gz
external_wpa_supplicant_8_ti-ab28911dbf77fa050459fb30d28037f54c04bde6.tar.bz2
P2P: Deinitialize global P2P context on P2P mgmt interface removal
The P2P implementation assumes that the first wpa_s interface instance is used to manage P2P operations and the P2P module maintains a pointer to this interface in msg_ctx. This can result in issues (e.g., use of freed memory) when the management interface is removed. Fix this by deinitializing global P2P data if the interface that created it is removed. This will disable P2P until the next interface is added. Signed-hostap: Jouni Malinen <j@w1.fi> intended-for: hostap-1
Diffstat (limited to 'wpa_supplicant/wpa_supplicant_i.h')
-rw-r--r--wpa_supplicant/wpa_supplicant_i.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/wpa_supplicant_i.h b/wpa_supplicant/wpa_supplicant_i.h
index 248c541..f36d117 100644
--- a/wpa_supplicant/wpa_supplicant_i.h
+++ b/wpa_supplicant/wpa_supplicant_i.h
@@ -225,6 +225,7 @@ struct wpa_global {
size_t drv_count;
struct os_time suspend_time;
struct p2p_data *p2p;
+ struct wpa_supplicant *p2p_init_wpa_s;
struct wpa_supplicant *p2p_group_formation;
u8 p2p_dev_addr[ETH_ALEN];
struct dl_list p2p_srv_bonjour; /* struct p2p_srv_bonjour */