mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
nl80211: Fix error print for hapd_send_eapol()
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>
This commit is contained in:
parent
a17cbcd698
commit
b0927e5d06
@ -5313,9 +5313,9 @@ static int wpa_driver_nl80211_hapd_send_eapol(
|
|||||||
|
|
||||||
res = nl80211_send_monitor(drv, hdr, len, encrypt, 0);
|
res = nl80211_send_monitor(drv, hdr, len, encrypt, 0);
|
||||||
if (res < 0) {
|
if (res < 0) {
|
||||||
wpa_printf(MSG_ERROR, "i802_send_eapol - packet len: %lu - "
|
wpa_printf(MSG_ERROR,
|
||||||
"failed: %d (%s)",
|
"hapd_send_eapol - packet len: %lu - failed",
|
||||||
(unsigned long) len, res, strerror(res));
|
(unsigned long) len);
|
||||||
}
|
}
|
||||||
os_free(hdr);
|
os_free(hdr);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user