blob: 1bf102a5a9ec21a8342d75d1652e251a44d876f5 [file] [log] [blame]
From 9043eff145701c6324ae48966301681adacb89c4 Mon Sep 17 00:00:00 2001
From: "howard.hsu" <howard-yh.hsu@mediatek.com>
Date: Wed, 19 Jan 2022 21:16:45 +0800
Subject: [PATCH 7/9] Support including neighbor report elements in BTM request
---
hostapd/ctrl_iface.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c
index 1b5a091..5a82ae6 100644
--- a/hostapd/ctrl_iface.c
+++ b/hostapd/ctrl_iface.c
@@ -984,8 +984,13 @@ static int hostapd_ctrl_iface_bss_tm_req(struct hostapd_data *hapd,
req_mode |= WNM_BSS_TM_REQ_ESS_DISASSOC_IMMINENT;
}
- if (os_strstr(cmd, " pref=1"))
+ if (os_strstr(cmd, " pref=1")) {
req_mode |= WNM_BSS_TM_REQ_PREF_CAND_LIST_INCLUDED;
+ if (nei_len == 0) {
+ // Add neigibor report from neighbor report db to nei_rep buffer
+ nei_len = hostapd_neighbor_insert_buffer (hapd, nei_rep, 1000);
+ }
+ }
if (os_strstr(cmd, " abridged=1"))
req_mode |= WNM_BSS_TM_REQ_ABRIDGED;
if (os_strstr(cmd, " disassoc_imminent=1"))
--
2.18.0