From cbcd056ece4a5e4875e8d1ee69bd489fc5caa596 Mon Sep 17 00:00:00 2001 From: Ilan Peer Date: Tue, 26 Dec 2023 11:06:25 +0200 Subject: [PATCH] AP: Fix a typo in function name Rename hostpad_dfs_update_background_chain() to hostapd_dfs_update_background_chain(). Signed-off-by: Ilan Peer --- src/ap/dfs.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ap/dfs.c b/src/ap/dfs.c index 18cb355a7..dbf645d72 100644 --- a/src/ap/dfs.c +++ b/src/ap/dfs.c @@ -1049,7 +1049,7 @@ static int hostapd_dfs_request_channel_switch(struct hostapd_iface *iface, } -static void hostpad_dfs_update_background_chain(struct hostapd_iface *iface) +static void hostapd_dfs_update_background_chain(struct hostapd_iface *iface) { int sec = 0; enum dfs_channel_type channel_type = DFS_NO_CAC_YET; @@ -1124,7 +1124,7 @@ hostapd_dfs_start_channel_switch_background(struct hostapd_iface *iface) hostapd_set_oper_centr_freq_seg1_idx( iface->conf, iface->radar_background.centr_freq_seg1_idx); - hostpad_dfs_update_background_chain(iface); + hostapd_dfs_update_background_chain(iface); return hostapd_dfs_request_channel_switch( iface, iface->conf->channel, iface->freq, @@ -1188,7 +1188,7 @@ int hostapd_dfs_complete_cac(struct hostapd_iface *iface, int success, int freq, } } else if (hostapd_dfs_is_background_event(iface, freq)) { iface->radar_background.cac_started = 0; - hostpad_dfs_update_background_chain(iface); + hostapd_dfs_update_background_chain(iface); } return 0; @@ -1322,7 +1322,7 @@ hostapd_dfs_background_start_channel_switch(struct hostapd_iface *iface, * Just select a new random channel according to the * regulations for monitoring. */ - hostpad_dfs_update_background_chain(iface); + hostapd_dfs_update_background_chain(iface); return 0; } @@ -1484,7 +1484,7 @@ int hostapd_dfs_nop_finished(struct hostapd_iface *iface, int freq, } else if (dfs_use_radar_background(iface) && iface->radar_background.channel == -1) { /* Reset radar background chain if disabled */ - hostpad_dfs_update_background_chain(iface); + hostapd_dfs_update_background_chain(iface); } return 0;