developer | e2cc0fa | 2022-03-29 17:31:03 +0800 | [diff] [blame] | 1 | From 9043eff145701c6324ae48966301681adacb89c4 Mon Sep 17 00:00:00 2001 |
| 2 | From: "howard.hsu" <howard-yh.hsu@mediatek.com> |
| 3 | Date: Wed, 19 Jan 2022 21:16:45 +0800 |
| 4 | Subject: [PATCH 7/9] Support including neighbor report elements in BTM request |
| 5 | |
| 6 | --- |
| 7 | hostapd/ctrl_iface.c | 7 ++++++- |
| 8 | 1 file changed, 6 insertions(+), 1 deletion(-) |
| 9 | |
| 10 | diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c |
| 11 | index 1b5a091..5a82ae6 100644 |
| 12 | --- a/hostapd/ctrl_iface.c |
| 13 | +++ b/hostapd/ctrl_iface.c |
| 14 | @@ -984,8 +984,13 @@ static int hostapd_ctrl_iface_bss_tm_req(struct hostapd_data *hapd, |
| 15 | 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 | -- |
| 30 | 2.18.0 |
| 31 | |