]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Silence compiler warning in no-NEED_AP_MLME hostapd builds
authorJouni Malinen <j@w1.fi>
Sun, 19 Apr 2020 13:56:35 +0000 (16:56 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 19 Apr 2020 14:42:41 +0000 (17:42 +0300)
The static function hostapd_ctrl_check_freq_params() was called only
within #ifdef NEED_AP_MLME block so the function needs to be defined
under matching condition.

Signed-off-by: Jouni Malinen <j@w1.fi>
hostapd/ctrl_iface.c

index c6160ded3e8fcc763be1464df8bd7d3374770bc9..6e8352f2fd063e5e83f8f86b48e1a5afe8f405b6 100644 (file)
@@ -2439,6 +2439,7 @@ static int hostapd_ctrl_get_pmk(struct hostapd_data *hapd, const char *cmd,
 #endif /* CONFIG_TESTING_OPTIONS */
 
 
+#ifdef NEED_AP_MLME
 static int hostapd_ctrl_check_freq_params(struct hostapd_freq_params *params)
 {
        switch (params->bandwidth) {
@@ -2527,6 +2528,7 @@ static int hostapd_ctrl_check_freq_params(struct hostapd_freq_params *params)
 
        return 0;
 }
+#endif /* NEED_AP_MLME */
 
 
 static int hostapd_ctrl_iface_chan_switch(struct hostapd_iface *iface,