]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix compiler warning on unused function
authorJouni Malinen <jouni.malinen@oss.qualcomm.com>
Fri, 17 Oct 2025 14:18:16 +0000 (17:18 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 17 Oct 2025 14:18:16 +0000 (17:18 +0300)
hostapd_ctrl_iface_set_bw() is called only if CONFIG_TESTING_OPTIONS is
defined. Move it to be under matching build configuration conditions.

Fixes: 261fab94c180 ("AP: Support bandwidth changes without CSA through control interface")
Signed-off-by: Jouni Malinen <jouni.malinen@oss.qualcomm.com>
hostapd/ctrl_iface.c

index 3f5a50fd3d686e3a9c08e4b78072fe6eb2f4f053..d7e5c6071c954e1fdee741b7edfd50b88639e17b 100644 (file)
@@ -2778,6 +2778,7 @@ static char hostapd_ctrl_iface_notify_cw_change(struct hostapd_data *hapd,
 }
 
 
+#ifdef CONFIG_TESTING_OPTIONS
 static int hostapd_ctrl_iface_set_bw(struct hostapd_iface *iface, char *pos)
 {
 #ifdef NEED_AP_MLME
@@ -2825,6 +2826,7 @@ static int hostapd_ctrl_iface_set_bw(struct hostapd_iface *iface, char *pos)
        return -1;
 #endif /* NEED_AP_MLME */
 }
+#endif /* CONFIG_TESTING_OPTIONS */
 
 
 static int hostapd_ctrl_iface_mib(struct hostapd_data *hapd, char *reply,