nl80211: Ensure nl_preq unregistration on driver deinit
authorCedric IZOARD <cedricx.izoard@intel.com>
Tue, 8 Jul 2014 07:50:32 +0000 (09:50 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 8 Jul 2014 13:01:43 +0000 (16:01 +0300)
commit6d00ab04302df257cb3092b2b31b4eac42e77569
treec43e82c002011deff2ac6a73006f2491e66f8732
parent1f41a20c9233fbad239c404b34117e8bc23f7952
nl80211: Ensure nl_preq unregistration on driver deinit

When driver interface is destroyed (via wpa_driver_nl80211_deinit) the
"preq" nl socket isn't always deleted but the callback struct associated
is. After the interface is destroyed we may still get event on the
socket but as the callback has been freed this will cause wpa_supplicant
to crash.

This patch ensures that the "preq" socket is destroyed when destroying
the interface.

Signed-off-by: Cedric IZOARD <cedricx.izoard@intel.com>
src/drivers/driver_nl80211.c