developer | ac7492d | 2022-06-09 20:22:14 +0800 | [diff] [blame] | 1 | From e6f1c893d375aa952e1f9c8c1eb4ecacf588e4e2 Mon Sep 17 00:00:00 2001 |
| 2 | From: Howard Hsu <howard-yh.hsu@mediatek.com> |
| 3 | Date: Thu, 9 Jun 2022 19:58:57 +0800 |
| 4 | Subject: [PATCH 4/6] Support including neighbor report elements in BTM request |
developer | e2cc0fa | 2022-03-29 17:31:03 +0800 | [diff] [blame] | 5 | |
| 6 | --- |
developer | ac7492d | 2022-06-09 20:22:14 +0800 | [diff] [blame] | 7 | src/ap/ctrl_iface_ap.c | 7 ++++++- |
developer | e2cc0fa | 2022-03-29 17:31:03 +0800 | [diff] [blame] | 8 | 1 file changed, 6 insertions(+), 1 deletion(-) |
| 9 | |
developer | ac7492d | 2022-06-09 20:22:14 +0800 | [diff] [blame] | 10 | diff --git a/src/ap/ctrl_iface_ap.c b/src/ap/ctrl_iface_ap.c |
| 11 | index 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, |
developer | e2cc0fa | 2022-03-29 17:31:03 +0800 | [diff] [blame] | 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 | |