mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
nl80211: Make MLME failure messages unique
Without this, it is impossible to tell exactly which MLME code returned the error. Also, convert to wpa_dbg so that we get device names in the messages. Signed-hostap: Ben Greear <greearb@candelatech.com>
This commit is contained in:
parent
eb916eb899
commit
3b7ea88047
@ -3532,8 +3532,9 @@ static int wpa_driver_nl80211_mlme(struct wpa_driver_nl80211_data *drv,
|
|||||||
ret = send_and_recv_msgs(drv, msg, NULL, NULL);
|
ret = send_and_recv_msgs(drv, msg, NULL, NULL);
|
||||||
msg = NULL;
|
msg = NULL;
|
||||||
if (ret) {
|
if (ret) {
|
||||||
wpa_printf(MSG_DEBUG, "nl80211: MLME command failed: ret=%d "
|
wpa_dbg(drv->ctx, MSG_DEBUG,
|
||||||
"(%s)", ret, strerror(-ret));
|
"nl80211: MLME command failed: reason=%u ret=%d (%s)",
|
||||||
|
reason_code, ret, strerror(-ret));
|
||||||
goto nla_put_failure;
|
goto nla_put_failure;
|
||||||
}
|
}
|
||||||
ret = 0;
|
ret = 0;
|
||||||
@ -3672,8 +3673,9 @@ retry:
|
|||||||
ret = send_and_recv_msgs(drv, msg, NULL, NULL);
|
ret = send_and_recv_msgs(drv, msg, NULL, NULL);
|
||||||
msg = NULL;
|
msg = NULL;
|
||||||
if (ret) {
|
if (ret) {
|
||||||
wpa_printf(MSG_DEBUG, "nl80211: MLME command failed: ret=%d "
|
wpa_dbg(drv->ctx, MSG_DEBUG,
|
||||||
"(%s)", ret, strerror(-ret));
|
"nl80211: MLME command failed (auth): ret=%d (%s)",
|
||||||
|
ret, strerror(-ret));
|
||||||
count++;
|
count++;
|
||||||
if (ret == -EALREADY && count == 1 && params->bssid &&
|
if (ret == -EALREADY && count == 1 && params->bssid &&
|
||||||
!params->local_state_change) {
|
!params->local_state_change) {
|
||||||
@ -5718,8 +5720,9 @@ static int wpa_driver_nl80211_associate(
|
|||||||
ret = send_and_recv_msgs(drv, msg, NULL, NULL);
|
ret = send_and_recv_msgs(drv, msg, NULL, NULL);
|
||||||
msg = NULL;
|
msg = NULL;
|
||||||
if (ret) {
|
if (ret) {
|
||||||
wpa_printf(MSG_DEBUG, "nl80211: MLME command failed: ret=%d "
|
wpa_dbg(drv->ctx, MSG_DEBUG,
|
||||||
"(%s)", ret, strerror(-ret));
|
"nl80211: MLME command failed (assoc): ret=%d (%s)",
|
||||||
|
ret, strerror(-ret));
|
||||||
nl80211_dump_scan(drv);
|
nl80211_dump_scan(drv);
|
||||||
goto nla_put_failure;
|
goto nla_put_failure;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user