wpa_supplicant control interface
j at w1.fi
Sat Oct 4 11:34:51 EDT 2014
On Wed, Oct 01, 2014 at 04:57:54PM +0200, Jörg Krause wrote:
> The documentation for wpa_ctrl_recv
> (http://w1.fi/wpa_supplicant/devel/wpa__ctrl_8h.html) says that it
> will block if no messages are available.
> Looking at the source code of wpa_ctrl.c shows this is not true for
> linux sockets. In wpa_ctrl_open() the unix socket is set as
> non-blocking and that's why wpa_ctrl_receive(), which calls recv(),
> returns immediatly with -1.
> Maybe the documentation needs an update since there was a patch in
> 2012 which introduced the non-blocking sockets?
Thanks for reporting this. I'll remove the sentence about blocking
behavior from wpa_ctrl_recv().
Jouni Malinen PGP id EFC895FA
More information about the HostAP