]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Move hostapd_csa_in_progress() to hostapd.c
authorIlan Peer <ilan.peer@intel.com>
Tue, 8 Sep 2015 09:46:18 +0000 (12:46 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 3 Oct 2015 17:19:06 +0000 (20:19 +0300)
Move hostapd_csa_in_progress() to hostapd.{h,c} so it can be used
for contexts other than DFS.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
src/ap/dfs.c
src/ap/hostapd.c
src/ap/hostapd.h

index 715f19b6ac7bd12726af876f94bf13d9a30593d3..7273caad3cd34f91aa0a3e3acb05a88c45597601 100644 (file)
@@ -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;
index bf16e74925d0d4302be3389a1abb03235fc17ab6..8036de44ef1948722f978c2f7249cef2a16b5c58 100644 (file)
@@ -2634,6 +2634,17 @@ 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)
index ffc453303d8dd01b4276c5ff01c907a38d6cbc9a..024d25fcb768f2ce318d2408e9f54d5730aa1e50 100644 (file)
@@ -454,6 +454,7 @@ int hostapd_remove_iface(struct hapd_interfaces *ifaces, char *buf);
 void hostapd_channel_list_updated(struct hostapd_iface *iface, int initiator);
 void hostapd_set_state(struct hostapd_iface *iface, enum hostapd_iface_state s);
 const char * hostapd_state_text(enum hostapd_iface_state s);
+int hostapd_csa_in_progress(struct hostapd_iface *iface);
 int hostapd_switch_channel(struct hostapd_data *hapd,
                           struct csa_settings *settings);
 void