Silence compiler warning in no-NEED_AP_MLME hostapd builds
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>
This commit is contained in:
parent
0115268743
commit
f23b70f163
1 changed files with 2 additions and 0 deletions
|
@ -2439,6 +2439,7 @@ static int hostapd_ctrl_get_pmk(struct hostapd_data *hapd, const char *cmd,
|
||||||
#endif /* CONFIG_TESTING_OPTIONS */
|
#endif /* CONFIG_TESTING_OPTIONS */
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef NEED_AP_MLME
|
||||||
static int hostapd_ctrl_check_freq_params(struct hostapd_freq_params *params)
|
static int hostapd_ctrl_check_freq_params(struct hostapd_freq_params *params)
|
||||||
{
|
{
|
||||||
switch (params->bandwidth) {
|
switch (params->bandwidth) {
|
||||||
|
@ -2527,6 +2528,7 @@ static int hostapd_ctrl_check_freq_params(struct hostapd_freq_params *params)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif /* NEED_AP_MLME */
|
||||||
|
|
||||||
|
|
||||||
static int hostapd_ctrl_iface_chan_switch(struct hostapd_iface *iface,
|
static int hostapd_ctrl_iface_chan_switch(struct hostapd_iface *iface,
|
||||||
|
|
Loading…
Reference in a new issue