]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
RRM: Fix range request overriding
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 9 Feb 2017 11:25:29 +0000 (13:25 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 9 Feb 2017 11:26:06 +0000 (13:26 +0200)
This was supposed to cancel the existing eloop timeout instead of
registering another one.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/rrm.c

index a49fd24d8732a11d0cb518addba01c4dd0415f73..56ed29c1c06875faa5050db74e2739e25d9f7fa2 100644 (file)
@@ -473,9 +473,8 @@ int hostapd_send_range_req(struct hostapd_data *hapd, const u8 *addr,
                wpa_printf(MSG_DEBUG,
                           "Request range: Range request is already in process; overriding");
                hapd->range_req_active = 0;
-               eloop_register_timeout(HOSTAPD_RRM_REQUEST_TIMEOUT, 0,
-                                      hostapd_range_rep_timeout_handler, hapd,
-                                      NULL);
+               eloop_cancel_timeout(hostapd_range_rep_timeout_handler, hapd,
+                                    NULL);
        }
 
        /* Action + measurement type + token + reps + EID + len = 7 */