]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DFS: Rename and export hostapd_config_dfs_chan_available helper
authorSergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Tue, 28 Jan 2020 15:09:51 +0000 (15:09 +0000)
committerJouni Malinen <j@w1.fi>
Sun, 29 Mar 2020 18:15:16 +0000 (21:15 +0300)
Rename DFS helper hostapd_config_dfs_chan_available() to
hostapd_is_dfs_chan_available(). Enable access to this helper function
from other hostapd components.

Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com>
src/ap/dfs.c
src/ap/dfs.h

index 6fc806d7b6cadde08089c8d7d25d715823527960..2e350ff086b6b2705d0e6f0878e1e48f5e848c31 100644 (file)
@@ -856,7 +856,7 @@ int hostapd_handle_dfs(struct hostapd_iface *iface)
 }
 
 
-static int hostapd_config_dfs_chan_available(struct hostapd_iface *iface)
+int hostapd_is_dfs_chan_available(struct hostapd_iface *iface)
 {
        int n_chans, n_chans1, start_chan_idx, start_chan_idx1;
 
@@ -904,7 +904,7 @@ int hostapd_dfs_complete_cac(struct hostapd_iface *iface, int success, int freq,
                         * another radio.
                         */
                        if (iface->state != HAPD_IFACE_ENABLED &&
-                           hostapd_config_dfs_chan_available(iface)) {
+                           hostapd_is_dfs_chan_available(iface)) {
                                hostapd_setup_interface_complete(iface, 0);
                                iface->cac_started = 0;
                        }
index f0fa6f688037deefae385d80da8376800c818d9f..b73c4ece1704e74b89cc10ebe24c41450b37b41b 100644 (file)
@@ -25,6 +25,7 @@ int hostapd_dfs_nop_finished(struct hostapd_iface *iface, int freq,
                             int ht_enabled,
                             int chan_offset, int chan_width, int cf1, int cf2);
 int hostapd_is_dfs_required(struct hostapd_iface *iface);
+int hostapd_is_dfs_chan_available(struct hostapd_iface *iface);
 int hostapd_dfs_start_cac(struct hostapd_iface *iface, int freq,
                          int ht_enabled, int chan_offset, int chan_width,
                          int cf1, int cf2);