@@ -817,16 +817,6 @@ static int hostapd_dfs_start_channel_switch_cac(struct hostapd_iface *iface)
}
-static int hostapd_csa_in_progress(struct hostapd_iface *iface)
-{
- unsigned int i;
- for (i = 0; i < iface->num_bss; i++)
- if (iface->bss[i]->csa_in_progress)
- return 1;
- return 0;
-}
-
-
static int hostapd_dfs_start_channel_switch(struct hostapd_iface *iface)
{
struct hostapd_channel_data *channel;
@@ -2634,6 +2634,16 @@ void hostapd_set_state(struct hostapd_iface *iface, enum hostapd_iface_state s)
}
+int hostapd_csa_in_progress(struct hostapd_iface *iface)
+{
+ unsigned int i;
+ for (i = 0; i < iface->num_bss; i++)
+ if (iface->bss[i]->csa_in_progress)
+ return 1;
+ return 0;
+}
+
+
#ifdef NEED_AP_MLME
static void free_beacon_data(struct beacon_data *beacon)
@@ -496,4 +496,7 @@ void fst_hostapd_fill_iface_obj(struct hostapd_data *hapd,
struct fst_wpa_obj *iface_obj);
#endif /* CONFIG_FST */
+
+int hostapd_csa_in_progress(struct hostapd_iface *iface);
+
#endif /* HOSTAPD_H */
Move hostapd_csa_in_progress() to hostapd.{h,c} so it can be used for other contexts other than dfs. Signed-off-by: Ilan Peer <ilan.peer@intel.com> --- src/ap/dfs.c | 10 ---------- src/ap/hostapd.c | 10 ++++++++++ src/ap/hostapd.h | 3 +++ 3 files changed, 13 insertions(+), 10 deletions(-)