Add BSS-TM-QUERY event to indicate reception of BSS TM Query
This allows upper layers to learn about associated stations requesting BSS transition management from the AP. Signed-off-by: Chaoli Zhou <quic_zchaoli@quicinc.com>
This commit is contained in:
parent
febcdf3243
commit
9306956626
2 changed files with 16 additions and 0 deletions
|
@ -409,6 +409,8 @@ static void ieee802_11_rx_bss_trans_mgmt_query(struct hostapd_data *hapd,
|
|||
u8 dialog_token, reason;
|
||||
const u8 *pos, *end;
|
||||
int enabled = hapd->conf->bss_transition;
|
||||
char *hex = NULL;
|
||||
size_t hex_len;
|
||||
|
||||
#ifdef CONFIG_MBO
|
||||
if (hapd->conf->mbo_enabled)
|
||||
|
@ -441,6 +443,17 @@ static void ieee802_11_rx_bss_trans_mgmt_query(struct hostapd_data *hapd,
|
|||
wpa_hexdump(MSG_DEBUG, "WNM: BSS Transition Candidate List Entries",
|
||||
pos, end - pos);
|
||||
|
||||
hex_len = 2 * (end - pos) + 1;
|
||||
if (hex_len > 1) {
|
||||
hex = os_malloc(hex_len);
|
||||
if (hex)
|
||||
wpa_snprintf_hex(hex, hex_len, pos, end - pos);
|
||||
}
|
||||
wpa_msg(hapd->msg_ctx, MSG_INFO,
|
||||
BSS_TM_QUERY MACSTR " reason=%u%s%s",
|
||||
MAC2STR(addr), reason, hex ? " neighbor=" : "", hex);
|
||||
os_free(hex);
|
||||
|
||||
ieee802_11_send_bss_trans_mgmt_request(hapd, addr, dialog_token);
|
||||
}
|
||||
|
||||
|
|
|
@ -363,6 +363,9 @@ extern "C" {
|
|||
#define P2P_EVENT_LISTEN_OFFLOAD_STOP "P2P-LISTEN-OFFLOAD-STOPPED "
|
||||
#define P2P_LISTEN_OFFLOAD_STOP_REASON "P2P-LISTEN-OFFLOAD-STOP-REASON "
|
||||
|
||||
/* BSS Transition Management Query frame received */
|
||||
#define BSS_TM_QUERY "BSS-TM-QUERY "
|
||||
|
||||
/* BSS Transition Management Response frame received */
|
||||
#define BSS_TM_RESP "BSS-TM-RESP "
|
||||
|
||||
|
|
Loading…
Reference in a new issue