mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-29 02:38:22 -05:00
RRM: Update own neighbor report on channel switch
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>
This commit is contained in:
parent
0998d9bd41
commit
6ca4949ae1
@ -38,6 +38,7 @@
|
|||||||
#include "mbo_ap.h"
|
#include "mbo_ap.h"
|
||||||
#include "dpp_hostapd.h"
|
#include "dpp_hostapd.h"
|
||||||
#include "fils_hlp.h"
|
#include "fils_hlp.h"
|
||||||
|
#include "neighbor_db.h"
|
||||||
|
|
||||||
|
|
||||||
#ifdef CONFIG_FILS
|
#ifdef CONFIG_FILS
|
||||||
@ -744,6 +745,7 @@ void hostapd_event_ch_switch(struct hostapd_data *hapd, int freq, int ht,
|
|||||||
#ifdef NEED_AP_MLME
|
#ifdef NEED_AP_MLME
|
||||||
int channel, chwidth, is_dfs;
|
int channel, chwidth, is_dfs;
|
||||||
u8 seg0_idx = 0, seg1_idx = 0;
|
u8 seg0_idx = 0, seg1_idx = 0;
|
||||||
|
size_t i;
|
||||||
|
|
||||||
hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211,
|
hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211,
|
||||||
HOSTAPD_LEVEL_INFO,
|
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
|
wpa_msg(hapd->msg_ctx, MSG_INFO, AP_CSA_FINISHED
|
||||||
"freq=%d dfs=%d", freq, is_dfs);
|
"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 */
|
#endif /* NEED_AP_MLME */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user