]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Fix error print for hapd_send_eapol()
authorJouni Malinen <j@w1.fi>
Sun, 8 Mar 2020 14:48:00 +0000 (16:48 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 8 Mar 2020 14:48:00 +0000 (16:48 +0200)
The return value from nl80211_send_monitor() is not suitable for use
with strerror(). Furthermore, nl80211_send_monitor() itself is printing
out a more detailed error reason.

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

index 254a47a7ff89a0b3a600c8b68984c53876d7a888..5b312502b89d6557808e9d83df874e515a324ac0 100644 (file)
@@ -5313,9 +5313,9 @@ static int wpa_driver_nl80211_hapd_send_eapol(
 
        res = nl80211_send_monitor(drv, hdr, len, encrypt, 0);
        if (res < 0) {
-               wpa_printf(MSG_ERROR, "i802_send_eapol - packet len: %lu - "
-                          "failed: %d (%s)",
-                          (unsigned long) len, res, strerror(res));
+               wpa_printf(MSG_ERROR,
+                          "hapd_send_eapol - packet len: %lu - failed",
+                          (unsigned long) len);
        }
        os_free(hdr);