]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Fix deinit path to unregister nl_mgmt socket
authorJouni Malinen <j@w1.fi>
Sat, 24 Aug 2013 20:45:11 +0000 (23:45 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 24 Aug 2013 20:45:11 +0000 (23:45 +0300)
commitb378c41fbc203d3f41582a21525057f44cfe2c12
tree549b67b238d1113ad4c7b125d4461d6f86bad9e0
parenta235aca316a8a4729735fecb00f7d7775b38d993
nl80211: Fix deinit path to unregister nl_mgmt socket

Commit 8e12685c43546d03ced5ec5dc4b56486a1204115 replaced call to
nl80211_mgmt_unsubscribe() on the deinit path with a
wpa_driver_nl80211_set_mode() call. This is not enough to unregister the
bss->nl_mgmt read socket in all cases. Fix this by unconditionally
unsubscribing from the nl80211 events after having change mode to
station.

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