mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 02:44:03 -05:00
hostapd: Add INTERFACE-ENABLED and INTERFACE-DISABLED events
These can be convenient for upper layer programs to determine if the hostapd interface gets disabled/re-enabled, e.g., due to rfkill block/unblock. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
ac69c33297
commit
ab93fdebf1
@ -1168,6 +1168,12 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
|
|||||||
hapd->iface, data->channel_list_changed.initiator);
|
hapd->iface, data->channel_list_changed.initiator);
|
||||||
break;
|
break;
|
||||||
#endif /* NEED_AP_MLME */
|
#endif /* NEED_AP_MLME */
|
||||||
|
case EVENT_INTERFACE_ENABLED:
|
||||||
|
wpa_msg(hapd->msg_ctx, MSG_INFO, INTERFACE_ENABLED);
|
||||||
|
break;
|
||||||
|
case EVENT_INTERFACE_DISABLED:
|
||||||
|
wpa_msg(hapd->msg_ctx, MSG_INFO, INTERFACE_DISABLED);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
wpa_printf(MSG_DEBUG, "Unknown event %d", event);
|
wpa_printf(MSG_DEBUG, "Unknown event %d", event);
|
||||||
break;
|
break;
|
||||||
|
@ -208,6 +208,9 @@ extern "C" {
|
|||||||
#define AP_EVENT_ENABLED "AP-ENABLED "
|
#define AP_EVENT_ENABLED "AP-ENABLED "
|
||||||
#define AP_EVENT_DISABLED "AP-DISABLED "
|
#define AP_EVENT_DISABLED "AP-DISABLED "
|
||||||
|
|
||||||
|
#define INTERFACE_ENABLED "INTERFACE-ENABLED "
|
||||||
|
#define INTERFACE_DISABLED "INTERFACE-DISABLED "
|
||||||
|
|
||||||
#define ACS_EVENT_STARTED "ACS-STARTED "
|
#define ACS_EVENT_STARTED "ACS-STARTED "
|
||||||
#define ACS_EVENT_COMPLETED "ACS-COMPLETED "
|
#define ACS_EVENT_COMPLETED "ACS-COMPLETED "
|
||||||
#define ACS_EVENT_FAILED "ACS-FAILED "
|
#define ACS_EVENT_FAILED "ACS-FAILED "
|
||||||
|
Loading…
Reference in New Issue
Block a user