Do not call hapd_deinit if driver was not initialized
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
31b79e1197
commit
c0971c561f
1 changed files with 1 additions and 1 deletions
|
@ -315,7 +315,7 @@ static void hostapd_interface_deinit_free(struct hostapd_iface *iface)
|
||||||
driver = iface->bss[0]->driver;
|
driver = iface->bss[0]->driver;
|
||||||
drv_priv = iface->bss[0]->drv_priv;
|
drv_priv = iface->bss[0]->drv_priv;
|
||||||
hostapd_interface_deinit(iface);
|
hostapd_interface_deinit(iface);
|
||||||
if (driver && driver->hapd_deinit)
|
if (driver && driver->hapd_deinit && drv_priv)
|
||||||
driver->hapd_deinit(drv_priv);
|
driver->hapd_deinit(drv_priv);
|
||||||
hostapd_interface_free(iface);
|
hostapd_interface_free(iface);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue