aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wnm_sta.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-11-23 14:13:50 (GMT)
committerJouni Malinen <j@w1.fi>2014-11-23 14:13:50 (GMT)
commitf5f3728a811830051aa110c5f6790343c352de4b (patch)
tree45997241281130f61fae99cb0ce5a6ba90bbec74 /wpa_supplicant/wnm_sta.c
parent986ed3a9ca4a7970e6f910a34f2f0df50972bbc0 (diff)
downloadhostap-f5f3728a811830051aa110c5f6790343c352de4b.zip
hostap-f5f3728a811830051aa110c5f6790343c352de4b.tar.gz
hostap-f5f3728a811830051aa110c5f6790343c352de4b.tar.bz2
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>
Diffstat (limited to 'wpa_supplicant/wnm_sta.c')
-rw-r--r--wpa_supplicant/wnm_sta.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/wpa_supplicant/wnm_sta.c b/wpa_supplicant/wnm_sta.c
index 019dca1..a4743eb 100644
--- a/wpa_supplicant/wnm_sta.c
+++ b/wpa_supplicant/wnm_sta.c
@@ -532,6 +532,7 @@ static void wnm_send_bss_transition_mgmt_resp(
u8 buf[1000], *pos;
struct ieee80211_mgmt *mgmt;
size_t len;
+ int res;
wpa_printf(MSG_DEBUG, "WNM: Send BSS Transition Management Response "
"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;
- wpa_drv_send_action(wpa_s, wpa_s->assoc_freq, 0, wpa_s->bssid,
- wpa_s->own_addr, wpa_s->bssid,
- &mgmt->u.action.category, len, 0);
+ res = wpa_drv_send_action(wpa_s, wpa_s->assoc_freq, 0, wpa_s->bssid,
+ wpa_s->own_addr, wpa_s->bssid,
+ &mgmt->u.action.category, len, 0);
+ if (res < 0) {
+ wpa_printf(MSG_DEBUG,
+ "WNM: Failed to send BSS Transition Management Response");
+ }
}