aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-10-25 15:24:15 (GMT)
committerJouni Malinen <j@w1.fi>2010-10-25 15:24:15 (GMT)
commit3071e18109502e7504ab6e3d19a2de102e1f7050 (patch)
treed8b44a31264e0a931fcccf92517fdc8ab56501f5 /wpa_supplicant/config.h
parent1f4c7b6b2aa19d100179750d310b5a8adc288a77 (diff)
downloadhostap-3071e18109502e7504ab6e3d19a2de102e1f7050.zip
hostap-3071e18109502e7504ab6e3d19a2de102e1f7050.tar.gz
hostap-3071e18109502e7504ab6e3d19a2de102e1f7050.tar.bz2
P2P: Add mechanism for timing out idle groups
A new configuration parameter, p2p_group_idle, can now be used to set idle timeout value for P2P groups in seconds (0 = no timeout). If set, this values is used to remove P2P group (both GO and P2P client) interfaces after the group has been idle (no clients/GO seen) for the configuration duration. The P2P-GROUP-REMOVED event is now indicating the reason for group removal when known. For example: P2P-GROUP-REMOVED wlan0 GO reason=REQUESTED P2P-GROUP-REMOVED wlan1 client reason=IDLE
Diffstat (limited to 'wpa_supplicant/config.h')
-rw-r--r--wpa_supplicant/config.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/wpa_supplicant/config.h b/wpa_supplicant/config.h
index ff4cf22..f288b2c 100644
--- a/wpa_supplicant/config.h
+++ b/wpa_supplicant/config.h
@@ -367,6 +367,18 @@ struct wpa_config {
int p2p_intra_bss;
/**
+ * p2p_group_idle - Maximum idle time in seconds for P2P group
+ *
+ * This value controls how long a P2P group is maintained after there
+ * is no other members in the group. As a GO, this means no associated
+ * 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.
+ */
+ unsigned int p2p_group_idle;
+
+ /**
* bss_max_count - Maximum number of BSS entries to keep in memory
*/
unsigned int bss_max_count;