[PATCH 1/1] P2P: Ignore RTM_NEWLINK event for the P2P Discovery Interface

Jithu Jance jithu at broadcom.com
Mon Jun 9 04:26:42 EDT 2014


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 <jithu at broadcom.com>
---
 src/drivers/driver_nl80211.c |    5 +++++
 1 file changed, 5 insertions(+)

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);
--
1.7.9.5



More information about the HostAP mailing list