Send "TERMINATING" event from hostapd
hostapd didn't send "TERMINATING" event when stopped by SIGTERM. Android handles this event to stop monitor thread. This commit adds "TERMINATING" event same as with wpa_supplicant. Signed-off-by: Tomoharu Hatano <tomoharu.hatano@sonymobile.com>
This commit is contained in:
parent
5149a0f04c
commit
655dc4a432
1 changed files with 3 additions and 1 deletions
|
@ -357,8 +357,10 @@ static void hostapd_cleanup(struct hostapd_data *hapd)
|
|||
wpa_printf(MSG_DEBUG, "%s(hapd=%p (%s))", __func__, hapd,
|
||||
hapd->conf->iface);
|
||||
if (hapd->iface->interfaces &&
|
||||
hapd->iface->interfaces->ctrl_iface_deinit)
|
||||
hapd->iface->interfaces->ctrl_iface_deinit) {
|
||||
wpa_msg(hapd->msg_ctx, MSG_INFO, WPA_EVENT_TERMINATING);
|
||||
hapd->iface->interfaces->ctrl_iface_deinit(hapd);
|
||||
}
|
||||
hostapd_free_hapd_data(hapd);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue