From: Jouni Malinen Date: Sun, 21 Jan 2018 09:24:33 +0000 (+0200) Subject: DPP: Get rid of compiler warnings on signed/unsigned comparison X-Git-Tag: hostap_2_7~630 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6b5e3554a73006eefaf5ce83464ec996e944839;p=thirdparty%2Fhostap.git DPP: Get rid of compiler warnings on signed/unsigned comparison Signed-off-by: Jouni Malinen --- diff --git a/src/ap/dpp_hostapd.c b/src/ap/dpp_hostapd.c index 47b23b92e..5dc408bcc 100644 --- a/src/ap/dpp_hostapd.c +++ b/src/ap/dpp_hostapd.c @@ -402,7 +402,7 @@ void hostapd_dpp_tx_status(struct hostapd_data *hapd, const u8 *dst, hostapd_drv_send_action_cancel_wait(hapd); if (hapd->dpp_auth->neg_freq != - hapd->iface->freq && hapd->iface->freq > 0) { + (unsigned int) hapd->iface->freq && hapd->iface->freq > 0) { /* TODO: Listen operation on non-operating channel */ wpa_printf(MSG_INFO, "DPP: Listen operation on non-operating channel (%d MHz) is not yet supported (operating channel: %d MHz)", @@ -475,7 +475,7 @@ static void hostapd_dpp_reply_wait_timeout(void *eloop_ctx, void *timeout_ctx) freq, wait_time); hapd->dpp_in_response_listen = 1; - if (freq != hapd->iface->freq && hapd->iface->freq > 0) { + if (freq != (unsigned int) hapd->iface->freq && hapd->iface->freq > 0) { /* TODO: Listen operation on non-operating channel */ wpa_printf(MSG_INFO, "DPP: Listen operation on non-operating channel (%d MHz) is not yet supported (operating channel: %d MHz)",