From patchwork Mon May 21 05:16:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jithu Jance X-Patchwork-Id: 160314 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "maxx.shmoo.com", Issuer "CA Cert Signing Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 1D183B6F62 for ; Mon, 21 May 2012 15:17:24 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 259859C1F6; Mon, 21 May 2012 01:17:19 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fQSbm+IBKbYn; Mon, 21 May 2012 01:17:18 -0400 (EDT) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 46AD39C1E5; Mon, 21 May 2012 01:17:15 -0400 (EDT) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id DFADE9C1E5 for ; Mon, 21 May 2012 01:17:13 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3IdW4SdVFTgl for ; Mon, 21 May 2012 01:17:09 -0400 (EDT) Received: from MMS3.broadcom.com (mms3.broadcom.com [216.31.210.19]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id D6A039C1A2 for ; Mon, 21 May 2012 01:17:08 -0400 (EDT) Received: from [10.16.192.232] by MMS3.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.5)); Sun, 20 May 2012 22:17:25 -0700 X-Server-Uuid: B730DE51-FC43-4C83-941F-F1F78A914BDD Received: from SJEXCHCAS05.corp.ad.broadcom.com (10.16.203.13) by SJEXCHHUB02.corp.ad.broadcom.com (10.16.192.232) with Microsoft SMTP Server (TLS) id 8.2.247.2; Sun, 20 May 2012 22:16:54 -0700 Received: from SJEXCHMB09.corp.ad.broadcom.com ( [fe80::3da7:665e:cc78:181f]) by SJEXCHCAS05.corp.ad.broadcom.com ( [::1]) with mapi id 14.01.0355.002; Sun, 20 May 2012 22:16:33 -0700 From: "Jithu Jance" To: "hostap@lists.shmoo.com" Subject: [PATCH] Set default P2P_MAX_CLIENT_IDLE to 20 Thread-Topic: [PATCH] Set default P2P_MAX_CLIENT_IDLE to 20 Thread-Index: Ac03EGtL9xq0cOgNQO+1XULlzwYEKQ== Date: Mon, 21 May 2012 05:16:33 +0000 Message-ID: <25A448014331D04F82E3035BCF9620AF06E5ED@SJEXCHMB09.corp.ad.broadcom.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.9.208.26] MIME-Version: 1.0 X-WSS-ID: 63A7106F3E036181271-01-01 X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com Consider the disconnect event generated due to EAP-FAILURE(after WPS handshake) during the P2P connection. In this disconnect context, the group idle timer will be set to 10 and assoc retry starts. If the connection doesn't go through in the first attempt the group will be removed. This is because the authentication timeout happens at 10secs and the assoc will be retried only after that. I feel setting to twenty seconds will help to retry at least two times. Please see whether it is okay. Setting authentication timeout to 5secs is also another option. But not sure whether there are some systems requiring 10secs time. [PATCH] Set default P2P_MAX_CLIENT_IDLE to 20 Signed-hostap: Jithu Jance --- wpa_supplicant/p2p_supplicant.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index 44aadf1..4054b3b 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -44,7 +44,7 @@ * How many seconds to try to reconnect to the GO when connection in P2P client * role has been lost. */ -#define P2P_MAX_CLIENT_IDLE 10 +#define P2P_MAX_CLIENT_IDLE 20 #endif /* P2P_MAX_CLIENT_IDLE */ #ifndef P2P_MAX_INITIAL_CONN_WAIT