WPS NFC: Validate ctrl_iface response before decoding it
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 29 Nov 2013 10:46:41 +0000 (12:46 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 27 Jan 2014 20:08:13 +0000 (22:08 +0200)
commit79ede5a7e6625cbe3321a13ee46bc58113a6db7f
tree450876aff64358e1dccd4a8f7dfaad8fa6cedb0d
parentab1db08c0505804676a9862b59ed9b8800949957
WPS NFC: Validate ctrl_iface response before decoding it

If the operation fails for any reason ("FAIL" response), it is cleaner
to return error clearly instead of hitting an exception in the hex
decoder.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/examples/wps-nfc.py