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
1 changed files with 1 additions and 0 deletions
|
@ -962,6 +962,7 @@ int wps_registrar_wps_cancel(struct wps_registrar *reg)
|
||||||
if (reg->pbc) {
|
if (reg->pbc) {
|
||||||
wpa_printf(MSG_DEBUG, "WPS: PBC is set - cancelling it");
|
wpa_printf(MSG_DEBUG, "WPS: PBC is set - cancelling it");
|
||||||
wps_registrar_pbc_timeout(reg, NULL);
|
wps_registrar_pbc_timeout(reg, NULL);
|
||||||
|
eloop_cancel_timeout(wps_registrar_pbc_timeout, reg, NULL);
|
||||||
return 1;
|
return 1;
|
||||||
} else if (reg->selected_registrar) {
|
} else if (reg->selected_registrar) {
|
||||||
/* PIN Method */
|
/* PIN Method */
|
||||||
|
|
Loading…
Reference in a new issue