WNM: Print debug message if Action frame sending fails
This makes wpa_drv_send_action() return value checking more consistent (CID 75390). Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
986ed3a9ca
commit
f5f3728a81
1 changed files with 8 additions and 3 deletions
|
@ -532,6 +532,7 @@ static void wnm_send_bss_transition_mgmt_resp(
|
||||||
u8 buf[1000], *pos;
|
u8 buf[1000], *pos;
|
||||||
struct ieee80211_mgmt *mgmt;
|
struct ieee80211_mgmt *mgmt;
|
||||||
size_t len;
|
size_t len;
|
||||||
|
int res;
|
||||||
|
|
||||||
wpa_printf(MSG_DEBUG, "WNM: Send BSS Transition Management Response "
|
wpa_printf(MSG_DEBUG, "WNM: Send BSS Transition Management Response "
|
||||||
"to " MACSTR " dialog_token=%u status=%u delay=%d",
|
"to " MACSTR " dialog_token=%u status=%u delay=%d",
|
||||||
|
@ -570,9 +571,13 @@ static void wnm_send_bss_transition_mgmt_resp(
|
||||||
|
|
||||||
len = pos - (u8 *) &mgmt->u.action.category;
|
len = pos - (u8 *) &mgmt->u.action.category;
|
||||||
|
|
||||||
wpa_drv_send_action(wpa_s, wpa_s->assoc_freq, 0, wpa_s->bssid,
|
res = wpa_drv_send_action(wpa_s, wpa_s->assoc_freq, 0, wpa_s->bssid,
|
||||||
wpa_s->own_addr, wpa_s->bssid,
|
wpa_s->own_addr, wpa_s->bssid,
|
||||||
&mgmt->u.action.category, len, 0);
|
&mgmt->u.action.category, len, 0);
|
||||||
|
if (res < 0) {
|
||||||
|
wpa_printf(MSG_DEBUG,
|
||||||
|
"WNM: Failed to send BSS Transition Management Response");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue