hostapd-2.0/src/drivers/driver.h
static inline void drv_event_assoc(void *ctx, const u8 *addr, const u8 *ie,
				   size_t ielen, int reassoc)
{
	union wpa_event_data event;
	os_memset(&event, 0, sizeof(event));
	event.assoc_info.reassoc = reassoc;
	event.assoc_info.req_ies = ie;
	event.assoc_info.req_ies_len = ielen;
	event.assoc_info.addr = addr;
	wpa_supplicant_event(ctx, EVENT_ASSOC, &event);
}
/*
 * The following inline functions are provided for convenience to simplify
 * event indication for some of the common events.
 */
The following inline functions are provided for convenience to simplify
event indication for some of the common events.
The following inline functions are provided for convenience to simplify event indication for some of the common events .
static inline void drv_event_assoc(void *ctx, const u8 *addr, const u8 *ie,
				   size_t ielen, int reassoc)
{
	union wpa_event_data event;
	os_memset(&event, 0, sizeof(event));
	event.assoc_info.reassoc = reassoc;
	event.assoc_info.req_ies = ie;
	event.assoc_info.req_ies_len = ielen;
	event.assoc_info.addr = addr;
	wpa_supplicant_event(ctx, EVENT_ASSOC, &event);
}
static inline void drv_event_assoc ( void * ctx , const u8 * addr , const u8 * ie , size_t ielen , int reassoc ) { union wpa_event_data event ; os_memset ( & event , 0 , sizeof ( event ) ) ; event . assoc_info . reassoc = reassoc ; event . assoc_info . req_ies = ie ; event . assoc_info . req_ies_len = ielen ; event . assoc_info . addr = addr ; wpa_supplicant_event ( ctx , EVENT_ASSOC , & event ) ; }
The following inline functions are provided for convenience to simplify
 event indication for some of the common events.
The following inline functions are provided for convenience to simplify event indication for some of the common events .