aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config_ssid.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2012-08-23 21:23:44 (GMT)
committerJouni Malinen <j@w1.fi>2012-08-23 21:25:14 (GMT)
commitb4a5dfa95da694e3f2bf1f635e3c039c726e65b9 (patch)
tree9f8fe10d8c33ac1bad8b5ad300e12c8ec3301cd6 /wpa_supplicant/config_ssid.h
parent223167956cee676fae65de5a4cbd7fb6aa0482ca (diff)
downloadhostap-b4a5dfa95da694e3f2bf1f635e3c039c726e65b9.zip
hostap-b4a5dfa95da694e3f2bf1f635e3c039c726e65b9.tar.gz
hostap-b4a5dfa95da694e3f2bf1f635e3c039c726e65b9.tar.bz2
P2P: Limit maximum number of stored P2P clients to 100
This limits the maximum size of the p2p_client_list parameter that is maintained at the GO for a persistent group. In other words, only the 100 most recently seen P2P clients are kept in the list. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com> intended-for: hostap-1
Diffstat (limited to 'wpa_supplicant/config_ssid.h')
-rw-r--r--wpa_supplicant/config_ssid.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/config_ssid.h b/wpa_supplicant/config_ssid.h
index 476a984..232c9c0 100644
--- a/wpa_supplicant/config_ssid.h
+++ b/wpa_supplicant/config_ssid.h
@@ -431,6 +431,10 @@ struct wpa_ssid {
*/
size_t num_p2p_clients;
+#ifndef P2P_MAX_STORED_CLIENTS
+#define P2P_MAX_STORED_CLIENTS 100
+#endif /* P2P_MAX_STORED_CLIENTS */
+
/**
* p2p_group - Network generated as a P2P group (used internally)
*/