lib_wpa_client: making it thread safe?

Vivek Natarajan vivek.natraj
Mon Jun 3 04:58:42 PDT 2013


On Mon, Jun 3, 2013 at 3:09 PM, Jouni Malinen <j at w1.fi> wrote:
>
> > On Android platform though, the framework (which I believe is multi-threaded) is linked with libhardware_legacy (native library used for the HAL), itself linked with lib_wpa_client. During some monkey testing on our platform, we've seen different random crashes in lib_wpa_client, because no locking was used by the framework to use this interface.
>
> This is a known issue with Android and should be fixed (and have been
> fixed in some branches, I'd assume) to not misuse wpa_ctrl.c functions,
> i.e., mainly to not close the connection while there is a pending

A similar crash issue was fixed with this:

https://android.googlesource.com/platform/hardware/libhardware_legacy/+/897f6dd64224d22c22c8f7a497331bf5bc335e4c%5E%21/

Please check if you have the above patch.

Vivek.



More information about the Hostap mailing list