WPS: Disconnect when removing existing WPS network block
authorJunli Zhao <junliz@qca.qualcomm.com>
Mon, 8 Jul 2013 09:09:18 +0000 (12:09 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 8 Jul 2013 09:09:18 +0000 (12:09 +0300)
commitc7a67a77195464d667d6f482777a75325b6f3642
treee89b91f7d9130ea3aef94ac9043ddcfe2ce8d083
parentfe65847bb1c14bd170f0ad1667879fed8def74a1
WPS: Disconnect when removing existing WPS network block

wpas_clear_wps() was just clearing the current wpa_s->current_ssid
pointer when removing a WPS network block which with the device was
associated. This could leave the association up even though the network
block had already been removed. Prevent this by explicitly disconnecting
from the network instead of such clearing current_ssid.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/wps_supplicant.c