]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
RRM: Update own neighbor report on channel switch
authorMarkus Theil <markus.theil@tu-ilmenau.de>
Mon, 20 Aug 2018 12:20:44 +0000 (14:20 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 2 Jan 2019 14:47:12 +0000 (16:47 +0200)
After performing a successful channel switch, the AP should update its
own neighbor report element, so do this from src/ap/drv_callbacks.c
after a successful switch.

Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
src/ap/drv_callbacks.c

index fa81da9f87da301fb4bfd275d7af719a23ff91c1..d49ad4c41f0b6510f05e13fe311ba56edbb0d29d 100644 (file)
@@ -38,6 +38,7 @@
 #include "mbo_ap.h"
 #include "dpp_hostapd.h"
 #include "fils_hlp.h"
+#include "neighbor_db.h"
 
 
 #ifdef CONFIG_FILS
@@ -744,6 +745,7 @@ void hostapd_event_ch_switch(struct hostapd_data *hapd, int freq, int ht,
 #ifdef NEED_AP_MLME
        int channel, chwidth, is_dfs;
        u8 seg0_idx = 0, seg1_idx = 0;
+       size_t i;
 
        hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211,
                       HOSTAPD_LEVEL_INFO,
@@ -826,6 +828,9 @@ void hostapd_event_ch_switch(struct hostapd_data *hapd, int freq, int ht,
                wpa_msg(hapd->msg_ctx, MSG_INFO, AP_CSA_FINISHED
                        "freq=%d dfs=%d", freq, is_dfs);
        }
+
+       for (i = 0; i < hapd->iface->num_bss; i++)
+               hostapd_neighbor_set_own_report(hapd->iface->bss[i]);
 #endif /* NEED_AP_MLME */
 }