]> git.ipfire.org Git - thirdparty/hostap.git/commit
mac80211_linux: 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)
commit139f7ab31190308a7f9d5299e2b94bc270619c94
treefaf759e7cad91a5901d5184033648cce61e11841
parent25ebd538a4d1160bd39c7c9dbf6c977585d36800
mac80211_linux: Fix libnl error string fetching

libnl functions return a library specific error value. 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_macsec_linux.c