]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Work around error case prints for nl_recvmsgs on Android
authorJithu Jance <jithu@broadcom.com>
Fri, 23 May 2014 05:51:07 +0000 (11:21 +0530)
committerJouni Malinen <j@w1.fi>
Sun, 1 Jun 2014 08:25:02 +0000 (11:25 +0300)
commitd3d048310c2b730bdfec057177a61e4962bea054
tree8acd5558c9f9121892a37dad0f736fd66ff84102
parent8f614cd7a7ca1676effffd86758656eae3aa1277
nl80211: Work around error case prints for nl_recvmsgs on Android

I got the below prints on a particular 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 positive return value for nl_recvmsgs may be specific to
Android. While this is not how the API is supposed to work, this does no
harm with upstream libnl which returns only 0 or -1 from the function.

Signed-off-by: Jithu Jance <jithu@broadcom.com>
src/drivers/driver_nl80211.c