]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Clear ignore_if_down_event if interface is up
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 27 Nov 2014 12:59:28 +0000 (14:59 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 27 Nov 2014 12:59:28 +0000 (14:59 +0200)
commit7a94120ea9dbea192e7dfb16a971509f673b167b
treee807914434e1973ec3f0a3820d2de6118b3cb7a7
parent1131a1c8d29c3d7951d60e4252821c3337604b20
nl80211: Clear ignore_if_down_event if interface is up

It was possible for the ignore_if_down_event flag to remain set in some
cases where interface mode change required the interface to be set down
temporarily. If that happened, the following rfkill interface down could
have been ignored and device could have been left trying to scan or
connect (which would all fail due to the interface beign down). Clean
this up by clearing the ignore_if_down_event flag on the interface down
event regardless of whether the interface is up at the time this event
is processed.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/drivers/driver_nl80211.c