]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Show an error message if sending of Action frame fails
authorJouni Malinen <j@w1.fi>
Sun, 19 Aug 2012 15:34:16 +0000 (18:34 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 19 Aug 2012 15:34:16 +0000 (18:34 +0300)
Signed-hostap: Jouni Malinen <j@w1.fi>

src/ap/ieee802_11.c

index a795539ed9b6ae4fb33b753240096f85a62937d0..211ee1bc4cdde088ae121883a388f2c0392a3169 100644 (file)
@@ -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);
        }
 }