WPS: Reject invalid credential more cleanly
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 1 Nov 2012 14:30:35 +0000 (16:30 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 1 Nov 2012 14:30:35 +0000 (16:30 +0200)
commitb363121a208e3d18fe80682430a5f50cefaa3595
treec200f4c61cbfb786d6d00b92abe65a0407ec4f38
parent8c9ad085e91688ed64812dd894b5e3a5fc536582
WPS: Reject invalid credential more cleanly

If WPS Registrar tries to provision a WPA/WPA2-Personal network without
including a valid Network Key, the network block cannot be used to
connect to the network. Reject such credential without adding the
network block. This makes wpa_supplicant send WSC_NACK as a response to
the invalid Credential and stop the provisioning process immediately
rather than only after trying unsuccessfully to connect to the network.

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