WPS: Clear after_wps on new WPS connection
authorJouni Malinen <j@w1.fi>
Sun, 31 Mar 2013 14:17:08 +0000 (17:17 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 31 Mar 2013 15:05:42 +0000 (18:05 +0300)
commit9599ccc2dd069fa06f93f118cea17b7af177aa53
tree5de309d4269ca4c3b684e636339aa94ab95b5d74
parent702621e6dd35360543974f3674f59dcbdd1ce1af
WPS: Clear after_wps on new WPS connection

The after_wps counter could have potentially be left in its old non-zero
value in some WPS sequences which could result in a single-channel scan
being used based on obsolete information. Clear after_wps in
wpas_wps_reassoc() to make sure this does not happen.

Signed-hostap: Jouni Malinen <j@w1.fi>
wpa_supplicant/wps_supplicant.c