[PATCH] PATCH:P2P We need to set conf variable for group_idle time=
Neeraj Garg
neerajkg
Tue Oct 23 03:03:51 PDT 2012
out if application has not set it for p2p_client
Signed-off-by: Neeraj Garg <neerajkg at broadcom.com>
---
wpa_supplicant/p2p_supplicant.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
mode change 100644 =3D> 100755 wpa_supplicant/p2p_supplicant.c
diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplican=
t.c
old mode 100644
new mode 100755
index 9e552c8..6c10f5d
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -4620,8 +4620,10 @@ static void wpas_p2p_set_group_idle_timeout(struct w=
pa_supplicant *wpa_s)
=20
timeout =3D wpa_s->conf->p2p_group_idle;
if (wpa_s->current_ssid->mode =3D=3D WPAS_MODE_INFRA &&
- (timeout =3D=3D 0 || timeout > P2P_MAX_CLIENT_IDLE))
+ (timeout =3D=3D 0 || timeout > P2P_MAX_CLIENT_IDLE)) {
timeout =3D P2P_MAX_CLIENT_IDLE;
+ wpa_s->conf->p2p_group_idle =3D timeout;
+ }
=20
if (timeout =3D=3D 0)
return;
--=20
1.7.4.1
Regards,
-Neeraj
More information about the Hostap
mailing list