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:
parent
09fb9b0cb0
commit
525ec045f3
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue