]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Fix libnl error string fetching
authorJouni Malinen <j@w1.fi>
Thu, 2 Jan 2020 14:50:50 +0000 (16:50 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 2 Jan 2020 16:05:38 +0000 (18:05 +0200)
commit3ea58a05485f7ccdc13973bce676d1896d0a6a5e
tree3be3a63f91d95d9370c7fa56c02941d5baaef120
parent139f7ab31190308a7f9d5299e2b94bc270619c94
nl80211: Fix libnl error string fetching

libnl functions return a library specific error value in libnl 2.0 and
newer. errno is not necessarily valid in all error cases and strerror()
for the returned value is not valid either.

Use nl_geterror() to get the correct error string from the returned
error code.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/drivers/driver_nl80211.c