aboutsummaryrefslogtreecommitdiffstats
path: root/src/p2p/p2p.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2012-01-25 17:00:59 +0200
committerJouni Malinen <j@w1.fi>2012-01-25 17:00:59 +0200
commit1d277f02600d285b2cb6f636dd0fd6b8c960854d (patch)
tree6dfbb48af72f78ff449600cb11f65daf9883d0a1 /src/p2p/p2p.h
parentd8d6b32eec68457279c27854b5aea1166136667b (diff)
downloadexternal_wpa_supplicant_8_ti-1d277f02600d285b2cb6f636dd0fd6b8c960854d.zip
external_wpa_supplicant_8_ti-1d277f02600d285b2cb6f636dd0fd6b8c960854d.tar.gz
external_wpa_supplicant_8_ti-1d277f02600d285b2cb6f636dd0fd6b8c960854d.tar.bz2
P2P: Do not expire peer entry if peer is connected as a client
Even though we may not receive a Probe Response from the peer during the connection, we should not be expiring a P2P peer entry while that peer is connected to a group where we are the GO. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src/p2p/p2p.h')
-rw-r--r--src/p2p/p2p.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/p2p/p2p.h b/src/p2p/p2p.h
index ce41ca8..d929c50 100644
--- a/src/p2p/p2p.h
+++ b/src/p2p/p2p.h
@@ -1552,6 +1552,14 @@ const u8 * p2p_iterate_group_members(struct p2p_group *group, void **next);
const u8 * p2p_group_get_dev_addr(struct p2p_group *group, const u8 *addr);
/**
+ * p2p_group_is_client_connected - Check whether a specific client is connected
+ * @group: P2P group context from p2p_group_init()
+ * @addr: P2P Device Address of the client
+ * Returns: 1 if client is connected or 0 if not
+ */
+int p2p_group_is_client_connected(struct p2p_group *group, const u8 *dev_addr);
+
+/**
* p2p_get_peer_found - Get P2P peer info structure of a found peer
* @p2p: P2P module context from p2p_init()
* @addr: P2P Device Address of the peer or %NULL to indicate the first peer