WPS ER: Clear WPS protocol run on PutMessage failure
This commit is contained in:
parent
2c073ad43d
commit
33417cd75c
1 changed files with 4 additions and 0 deletions
|
@ -1408,6 +1408,10 @@ static void wps_er_http_put_message_cb(void *ctx, struct http_client *c,
|
||||||
case HTTP_CLIENT_INVALID_REPLY:
|
case HTTP_CLIENT_INVALID_REPLY:
|
||||||
case HTTP_CLIENT_TIMEOUT:
|
case HTTP_CLIENT_TIMEOUT:
|
||||||
wpa_printf(MSG_DEBUG, "WPS ER: PutMessage failed");
|
wpa_printf(MSG_DEBUG, "WPS ER: PutMessage failed");
|
||||||
|
if (ap->wps) {
|
||||||
|
wps_deinit(ap->wps);
|
||||||
|
ap->wps = NULL;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
http_client_free(ap->http);
|
http_client_free(ap->http);
|
||||||
|
|
Loading…
Reference in a new issue