how the CTRL_EVENT_DISCONNECT be sent

Jouni Malinen j
Sun Nov 1 12:27:02 PST 2009


On Thu, Oct 29, 2009 at 05:24:29PM +0800, belle.shi at yy.com wrote:
>    i turn off the ap, and watch the info printed by wpa_suppliant, 
> and as the Dan Williams said, the driver send a 
> 'disconnect'(CTRL_EVENT_DISCONNECT) event to the supplicant,  and i 
> changed the driver, the problem is resolved. but i check the source 
> code of wpa_suppliant, i can,t find the any code have 
> CTRL_EVENT_DISCONNECT. so where is the associated code?

The control interface event is WPA_EVENT_DISCONNECTED and it is sent
with the wpa_msg() call in wpa_supplicant_event_disassoc() (in
wpa_supplicant/events.c). This is called when the driver wrapper
indicates disassociation or deauthentication by calling
wpa_supplicant_event() with EVENT_DISASSOC or EVENT_DEAUTH.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list