[PATCH 1/1] STA Fix error case prints for nl_recvmsgs

Jouni Malinen j
Sun Jun 1 12:51:11 PDT 2014


On Fri, May 23, 2014 at 11:21:07AM +0530, Jithu Jance wrote:
> I got the below prints on a particluar Android platform.
> 
> I/wpa_supplicant( 2637): nl80211: send_and_recv->nl_recvmsgs failed: 20
> I/wpa_supplicant( 2637): nl80211: send_and_recv->nl_recvmsgs failed: 20
> 
> In JellyBean libnl_2 code, I see that the nl_recvmsgs returns postive values
> too. In some cases, nl_recvmgs return the output of nl_recv function. nl_recv
> function can return Number of bytes read, 0 or a negative error code.
> 
> Looks like this postive return value for nl_recvmsgs may be specific to Android.

I applied this patch now since it can clean up debug results on Android
and does not cause any real issues with the standard libnl
implementation either.
 
-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list