From patchwork Mon Aug 12 05:22:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jithu Jance X-Patchwork-Id: 266416 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]) by ozlabs.org (Postfix) with ESMTP id A7C812C00E5 for ; Mon, 12 Aug 2013 15:23:09 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 2EF849D238; Mon, 12 Aug 2013 01:23:07 -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 aE6WjE+qTyGI; Mon, 12 Aug 2013 01:23:06 -0400 (EDT) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 7B2E39D20A; Mon, 12 Aug 2013 01:23:02 -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 E02CE9D20A for ; Mon, 12 Aug 2013 01:23:00 -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 sb9NvSc5vldi for ; Mon, 12 Aug 2013 01:22:55 -0400 (EDT) Received: from mms3.broadcom.com (mms3.broadcom.com [216.31.210.19]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id BFB749D1FA for ; Mon, 12 Aug 2013 01:22:55 -0400 (EDT) Received: from [10.9.208.57] by mms3.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.5)); Sun, 11 Aug 2013 22:12:49 -0700 X-Server-Uuid: B86B6450-0931-4310-942E-F00ED04CA7AF Received: from IRVEXCHSMTP2.corp.ad.broadcom.com (10.9.207.52) by IRVEXCHCAS08.corp.ad.broadcom.com (10.9.208.57) with Microsoft SMTP Server (TLS) id 14.1.438.0; Sun, 11 Aug 2013 22:22:49 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP2.corp.ad.broadcom.com (10.9.207.52) with Microsoft SMTP Server id 14.1.438.0; Sun, 11 Aug 2013 22:22:49 -0700 Received: from jithu?broadcom.com (lbblr-jithu01.ban.broadcom.com [10.132.24.37]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 30942F2D73 for ; Sun, 11 Aug 2013 22:22:48 -0700 (PDT) Date: Mon, 12 Aug 2013 10:52:46 +0530 From: "Jithu Jance" To: hostap@lists.shmoo.com Subject: [PATCH 1/1] P2P: Handle P2P de-init incase of supplicant termination Message-ID: <20130812052246.GA15445@jithu@broadcom.com> MIME-Version: 1.0 User-Agent: Mutt/1.5.21 (2010-09-15) X-WSS-ID: 7E16B15B2L873266039-01-01 Content-Disposition: inline X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.11 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 This patch is for taking care of a case of supplicant receiving a terminate signal while running an active p2p interface. In this case, currently p2p de-initialization is not happening. This code was there earlier and got removed recently. Signed-hostap: Jithu Jance --- wpa_supplicant/wpa_supplicant.c | 2 ++ 1 file changed, 2 insertions(+) -- 1.7.9.5 diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index a18922a..630a545 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -3444,6 +3444,8 @@ void wpa_supplicant_deinit(struct wpa_global *global) wifi_display_deinit(global); #endif /* CONFIG_WIFI_DISPLAY */ + wpas_p2p_deinit_global(global); + while (global->ifaces) wpa_supplicant_remove_iface(global, global->ifaces, 1);