Attach to wpa_supplicant failed due to FD_ISSET returns -2

Kyeongyeon Song song.kyeongyeon at pantech.com
Wed Jun 13 06:13:49 EDT 2012


When Android framework turns Wi-Fi on, it starts wpa_supplicant, and then
makes monitor socket and connect to wpa_supplicant

Using following sequence.

wpa_ctrl_attach(monitor_conn)

- ret = wpa_ctrl_request(ctrl, attach ? "ATTACH" : "DETACH", 6, buf, &len,
NULL);

This function returned -2 because FD_ISSET(ctrl->s, &rfds) < 0

 

Have anybody experienced the same problem?

If someone knows what is the cause of this problem, it will be appreciated a
lot.

Thanks

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20120613/77fca50f/attachment.htm 


More information about the HostAP mailing list