WPS: Remove old duplicate network even if key is different
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 29 Nov 2013 12:56:11 +0000 (14:56 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 26 Dec 2013 18:50:28 +0000 (20:50 +0200)
commitc511b321f38957cdece4739968c97a1be001b8ca
treec9f1c16a0c8aaff4150145d77d509ef1bfd75d2c
parent9d2cb3ec94f3a96864b680de5a8cec0aeed0ff94
WPS: Remove old duplicate network even if key is different

Previously, WPS credential provisioning removed duplicated network
entries only if they had identicical SSID, security parameters, and the
keys. However, it is possible that the AP has changes its keys and
leaving the old entry behind can result in connectibity issues (e.g.,
with 4-way handshake failing due to use of the old PSK). Fix this by
allowing the old network entry to be removed even if the keys
(passphrase, PSK, WEP keys) are different.

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