From: Jouni Malinen Date: Sun, 19 Aug 2012 15:34:16 +0000 (+0300) Subject: Show an error message if sending of Action frame fails X-Git-Tag: hostap_2_0~370 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41fe8b42b5f06341062c3a9247c5d577deb6a80e;p=thirdparty%2Fhostap.git Show an error message if sending of Action frame fails Signed-hostap: Jouni Malinen --- diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index a795539ed..211ee1bc4 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -1351,7 +1351,10 @@ static void handle_action(struct hostapd_data *hapd, os_memcpy(resp->bssid, hapd->own_addr, ETH_ALEN); resp->u.action.category |= 0x80; - hostapd_drv_send_mlme(hapd, resp, len, 0); + if (hostapd_drv_send_mlme(hapd, resp, len, 0) < 0) { + wpa_printf(MSG_ERROR, "IEEE 802.11: Failed to send " + "Action frame"); + } os_free(resp); } }