blob: 37f2d9627054c9af22022eae77d1bc4dd3f788c4 [file] [log] [blame]
developerac7492d2022-06-09 20:22:14 +08001From e6f1c893d375aa952e1f9c8c1eb4ecacf588e4e2 Mon Sep 17 00:00:00 2001
2From: Howard Hsu <howard-yh.hsu@mediatek.com>
3Date: Thu, 9 Jun 2022 19:58:57 +0800
4Subject: [PATCH 4/6] Support including neighbor report elements in BTM request
developere2cc0fa2022-03-29 17:31:03 +08005
6---
developerac7492d2022-06-09 20:22:14 +08007 src/ap/ctrl_iface_ap.c | 7 ++++++-
developere2cc0fa2022-03-29 17:31:03 +08008 1 file changed, 6 insertions(+), 1 deletion(-)
9
developerac7492d2022-06-09 20:22:14 +080010diff --git a/src/ap/ctrl_iface_ap.c b/src/ap/ctrl_iface_ap.c
11index aad5180..fccc5f9 100644
12--- a/src/ap/ctrl_iface_ap.c
13+++ b/src/ap/ctrl_iface_ap.c
14@@ -1232,8 +1232,13 @@ int hostapd_ctrl_iface_bss_tm_req(struct hostapd_data *hapd,
developere2cc0fa2022-03-29 17:31:03 +080015 req_mode |= WNM_BSS_TM_REQ_ESS_DISASSOC_IMMINENT;
16 }
17
18- if (os_strstr(cmd, " pref=1"))
19+ if (os_strstr(cmd, " pref=1")) {
20 req_mode |= WNM_BSS_TM_REQ_PREF_CAND_LIST_INCLUDED;
21+ if (nei_len == 0) {
22+ // Add neigibor report from neighbor report db to nei_rep buffer
23+ nei_len = hostapd_neighbor_insert_buffer (hapd, nei_rep, 1000);
24+ }
25+ }
26 if (os_strstr(cmd, " abridged=1"))
27 req_mode |= WNM_BSS_TM_REQ_ABRIDGED;
28 if (os_strstr(cmd, " disassoc_imminent=1"))
29--
302.18.0
31