P2P: Use correct return type for has_channel()

This helper function returns enum chan_allowed values, so use it as the
return type instead of unnecessarily generic int.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
master
Jouni Malinen 3 years ago committed by Jouni Malinen
parent 09fb9b0cb0
commit 525ec045f3

@ -3545,8 +3545,9 @@ static int wpas_p2p_default_channels(struct wpa_supplicant *wpa_s,
}
static int has_channel(struct wpa_global *global,
struct hostapd_hw_modes *mode, u8 chan, int *flags)
static enum chan_allowed has_channel(struct wpa_global *global,
struct hostapd_hw_modes *mode, u8 chan,
int *flags)
{
int i;
unsigned int freq;

Loading…
Cancel
Save