]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Get rid of compiler warnings on signed/unsigned comparison
authorJouni Malinen <j@w1.fi>
Sun, 21 Jan 2018 09:24:33 +0000 (11:24 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 21 Jan 2018 09:24:33 +0000 (11:24 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/dpp_hostapd.c

index 47b23b92e572e491ea48cfa5b208ffda967eaeef..5dc408bcc4f66e31e3c3a3a3b764187221e4427e 100644 (file)
@@ -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)",