]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - src/ap/dfs.c
DFS: Rename and export hostapd_config_dfs_chan_available helper
[thirdparty/hostap.git] / src / ap / dfs.c
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;
                        }