how the CTRL_EVENT_DISCONNECT be sent

Jouni Malinen j at w1.fi
Sun Nov 1 15:27:02 EST 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