From: Jouni Malinen Date: Sat, 22 Nov 2014 10:02:09 +0000 (+0200) Subject: Add BSS-TM-RESP ctrl_iface event X-Git-Tag: hostap_2_4~1084 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=53514800470b03594b574f94572a9bcece1d07b7;p=thirdparty%2Fhostap.git Add BSS-TM-RESP ctrl_iface event This event allows external monitors to track STA response to BSS Transition Management Request. BSS-TM-RESP status_code=<#> bss_termination_delay=<#> [target_bssid=] Signed-off-by: Jouni Malinen --- diff --git a/src/ap/wnm_ap.c b/src/ap/wnm_ap.c index a24900a1f..7e8fb5c6d 100644 --- a/src/ap/wnm_ap.c +++ b/src/ap/wnm_ap.c @@ -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", diff --git a/src/common/wpa_ctrl.h b/src/common/wpa_ctrl.h index 4c88a0c19..e48bbed85 100644 --- a/src/common/wpa_ctrl.h +++ b/src/common/wpa_ctrl.h @@ -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