From patchwork Mon Jun 9 08:26:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jithu Jance X-Patchwork-Id: 357311 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 ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 35B65140080 for ; Mon, 9 Jun 2014 18:27:03 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id CEB309C1AD; Mon, 9 Jun 2014 04:26:59 -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 9lJdKzgp98sl; Mon, 9 Jun 2014 04:26:59 -0400 (EDT) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 1E43C9D0D5; Mon, 9 Jun 2014 04:26:54 -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 ED8539D0D5 for ; Mon, 9 Jun 2014 04:26:52 -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 3cxP2GqQ2DF4 for ; Mon, 9 Jun 2014 04:26:46 -0400 (EDT) Received: from mail-gw3-out.broadcom.com (mail-gw3-out.broadcom.com [216.31.210.64]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 2D8F49C1AD for ; Mon, 9 Jun 2014 04:26:46 -0400 (EDT) X-IronPort-AV: E=Sophos;i="4.98,1001,1392192000"; d="scan'208";a="33260216" Received: from irvexchcas06.broadcom.com (HELO IRVEXCHCAS06.corp.ad.broadcom.com) ([10.9.208.53]) by mail-gw3-out.broadcom.com with ESMTP; 09 Jun 2014 01:30:24 -0700 Received: from IRVEXCHSMTP3.corp.ad.broadcom.com (10.9.207.53) by IRVEXCHCAS06.corp.ad.broadcom.com (10.9.208.53) with Microsoft SMTP Server (TLS) id 14.3.174.1; Mon, 9 Jun 2014 01:26:45 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP3.corp.ad.broadcom.com (10.9.207.53) with Microsoft SMTP Server id 14.3.174.1; Mon, 9 Jun 2014 01:26:45 -0700 Received: from jithu?broadcom.com (dhcp-blr-24-243.ban.broadcom.com [10.132.24.243]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id C63A49FA03 for ; Mon, 9 Jun 2014 01:26:43 -0700 (PDT) Date: Mon, 9 Jun 2014 01:26:42 -0700 From: Jithu Jance To: Subject: [PATCH 1/1] P2P: Ignore RTM_NEWLINK event for the P2P Discovery Interface Message-ID: <5b014d8858cf9e4b703902a743588b51d3682e60.1402299980.git.jithu@broadcom.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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 Patch for Ignoring the RTM event for the dedicated P2P discovery Interface. Without the patch the IFFUP operation on the interface was failing (since there is no network device associated with the interface). Signed-off-by: Jithu Jance --- src/drivers/driver_nl80211.c | 5 +++++ 1 file changed, 5 insertions(+) -- 1.7.9.5 diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 709e13a..f4fa5d6 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -1203,6 +1203,11 @@ static void wpa_driver_nl80211_event_rtm_newlink(void *ctx, return; } + if (drv->nlmode == NL80211_IFTYPE_P2P_DEVICE) { + wpa_printf(MSG_INFO, "nl80211: Ignore RTM_NEWLINK for P2P Discovery Interface"); + return; + } + extra[0] = '\0'; pos = extra; end = pos + sizeof(extra);