aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-12-18 20:21:22 (GMT)
committerJouni Malinen <j@w1.fi>2011-12-18 20:21:22 (GMT)
commitc81066153cf35808147db5945faa67b5e4c82f78 (patch)
treea2df133f957ddc113f963fe8fed01c1f08aa62ab /wpa_supplicant/config.h
parent4c2c6751738ced8a4cdb654117495b06afbbd8a5 (diff)
downloadhostap-c81066153cf35808147db5945faa67b5e4c82f78.zip
hostap-c81066153cf35808147db5945faa67b5e4c82f78.tar.gz
hostap-c81066153cf35808147db5945faa67b5e4c82f78.tar.bz2
P2P: Use hardcoded idle timeout of 10 seconds in P2P client role
The p2p_group_idle configuration parameter is much more useful for GO role, so use a separate hardcoded value of 10 seconds in P2P client role. In practice, this means that the P2P client role will automatically tear down the group when the GO tears down the group. The 10 second timeout is enough to recover from temporary disconnections without unnecessary tearing down the group if the GO is still present and allows the client to connect. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/config.h')
-rw-r--r--wpa_supplicant/config.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/wpa_supplicant/config.h b/wpa_supplicant/config.h
index ae496ff..f9e5043 100644
--- a/wpa_supplicant/config.h
+++ b/wpa_supplicant/config.h
@@ -377,7 +377,10 @@ struct wpa_config {
* stations in the group. As a P2P client, this means no GO seen in
* scan results. The maximum idle time is specified in seconds with 0
* indicating no time limit, i.e., the P2P group remains in active
- * state indefinitely until explicitly removed.
+ * state indefinitely until explicitly removed. As a P2P client, the
+ * maximum idle time of P2P_MAX_CLIENT_IDLE seconds is enforced, i.e.,
+ * this parameter is mainly meant for GO use and for P2P client, it can
+ * only be used to reduce the default timeout to smaller value.
*/
unsigned int p2p_group_idle;