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>
This commit is contained in:
Jouni Malinen 2021-06-08 12:45:58 +03:00 committed by Jouni Malinen
parent 09fb9b0cb0
commit 525ec045f3

View file

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