]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add BSS-TM-RESP ctrl_iface event
authorJouni Malinen <j@w1.fi>
Sat, 22 Nov 2014 10:02:09 +0000 (12:02 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 22 Nov 2014 14:34:34 +0000 (16:34 +0200)
This event allows external monitors to track STA response to BSS
Transition Management Request.

BSS-TM-RESP <STA addr> status_code=<#> bss_termination_delay=<#>
[target_bssid=<BSSID>]

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/wnm_ap.c
src/common/wpa_ctrl.h

index a24900a1ffb9f47e1d02af0c45e63c487b50939f..7e8fb5c6d8863f5df2e1fe9bfae150e7138929bf 100644 (file)
@@ -11,6 +11,7 @@
 #include "utils/common.h"
 #include "utils/eloop.h"
 #include "common/ieee802_11_defs.h"
+#include "common/wpa_ctrl.h"
 #include "ap/hostapd.h"
 #include "ap/sta_info.h"
 #include "ap/ap_config.h"
@@ -358,7 +359,16 @@ static void ieee802_11_rx_bss_trans_mgmt_resp(struct hostapd_data *hapd,
                }
                wpa_printf(MSG_DEBUG, "WNM: Target BSSID: " MACSTR,
                           MAC2STR(pos));
+               wpa_msg(hapd->msg_ctx, MSG_INFO, BSS_TM_RESP MACSTR
+                       " status_code=%u bss_termination_delay=%u target_bssid="
+                       MACSTR,
+                       MAC2STR(addr), status_code, bss_termination_delay,
+                       MAC2STR(pos));
                pos += ETH_ALEN;
+       } else {
+               wpa_msg(hapd->msg_ctx, MSG_INFO, BSS_TM_RESP MACSTR
+                       " status_code=%u bss_termination_delay=%u",
+                       MAC2STR(addr), status_code, bss_termination_delay);
        }
 
        wpa_hexdump(MSG_DEBUG, "WNM: BSS Transition Candidate List Entries",
index 4c88a0c197f9bc20ac76fe43b37bf09302db0aa3..e48bbed85996ff7029ff1ca49a6c0ee7127c9707 100644 (file)
@@ -232,6 +232,9 @@ extern "C" {
 
 #define AP_CSA_FINISHED "AP-CSA-FINISHED "
 
+/* BSS Transition Management Response frame received */
+#define BSS_TM_RESP "BSS-TM-RESP "
+
 /* BSS command information masks */
 
 #define WPA_BSS_MASK_ALL               0xFFFDFFFF