]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/drivers/driver_nl80211.c
nl80211: Filter unexpected interface added/up events
authorJouni Malinen <j@w1.fi>
Sat, 18 Feb 2012 11:13:23 +0000 (13:13 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 18 Feb 2012 11:13:23 +0000 (13:13 +0200)
commitd1f4942ba18a303d275bbd955161674939d1d902
tree3b18c9f3af1df4102d1726479b06a6c94f7b27ef
parent8a6a1e1b14749a953814cf7e90da59649fa1ce59
nl80211: Filter unexpected interface added/up events

It looks like a RTM_NEWLINK event claiming the interface to be UP is
delivered just before removing an interface after having first indicated
that the interface was going down/removed. Ignore this event if the
interface is not present anymore at the moment the event is processed.
This fixes issues where an interface that was re-added after being
removed did not get reconfigured properly.

Signed-hostap: Jouni Malinen <j@w1.fi>
intended-for: hostap-1
src/drivers/driver_nl80211.c