From: Jouni Malinen Date: Mon, 1 Sep 2014 13:14:07 +0000 (+0300) Subject: nl80211: Fix RTM_DELLINK processing for bridge events X-Git-Tag: hostap_2_3~129 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=728ff2f4697f94a6301e36eac187d4337ffcfe8d;p=thirdparty%2Fhostap.git nl80211: Fix RTM_DELLINK processing for bridge events When a netdev is removed from a bridge, RTM_DELLINK message is received with ifname (IFLA_IFNAME) pointing to the main netdev event though that netdev is not deleted. This was causing issues with P2P GO interface getting disabled when the netdev was removed from a bridge. Fix this by filtering RTM_DELLINK events that are related to the bridge when indicating interface status changes. Signed-off-by: Jouni Malinen --- diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 8ebf7d9cb..c1abe438e 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -1367,7 +1367,7 @@ static void wpa_driver_nl80211_event_rtm_dellink(void *ctx, attr = RTA_NEXT(attr, attrlen); } - if (ifname[0]) + if (ifname[0] && (ifi->ifi_family != AF_BRIDGE || !brid)) wpa_driver_nl80211_event_dellink(drv, ifname); if (ifi->ifi_family == AF_BRIDGE && brid) {