mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
WPS: Cancel previous registered wps_registrar_pbc_timeout
Since wps_registrar_pbc_timeout is called to stop PBC, previously registered wps_registrar_pbc_timeout must be canceled when canceling the WPS operation. Signed-off-by: Spencer Chang <jungwalk@gmail.com>
This commit is contained in:
parent
b9fd8ce804
commit
62a8ea7d01
@ -962,6 +962,7 @@ int wps_registrar_wps_cancel(struct wps_registrar *reg)
|
||||
if (reg->pbc) {
|
||||
wpa_printf(MSG_DEBUG, "WPS: PBC is set - cancelling it");
|
||||
wps_registrar_pbc_timeout(reg, NULL);
|
||||
eloop_cancel_timeout(wps_registrar_pbc_timeout, reg, NULL);
|
||||
return 1;
|
||||
} else if (reg->selected_registrar) {
|
||||
/* PIN Method */
|
||||
|
Loading…
Reference in New Issue
Block a user