[WPS] responding with WPS_NACK to M7 from AP

Kiran Divekar kirandivekar at gmail.com
Sat May 19 02:24:37 EDT 2012

Hi all,
  I have a question on current WPS code in wpa_supplicant. In
src/wps/wps_registrar.c Function: wps_process_m7...see foll. piece of code.

    if (wps_parse_msg(decrypted, &eattr) < 0 ||
        wps_process_key_wrap_auth(wps, decrypted, eattr.key_wrap_auth) ||
        wps_process_e_snonce2(wps, eattr.e_snonce2) ||
        wps_process_ap_settings_r(wps, &eattr)) {
        wps->state = SEND_WSC_NACK;
        return WPS_CONTINUE;

Function wps_process_ap_settings_r returns non-zero value, if STA does not
want to re-configure AP. In this case, STA responds to AP by sending
WSC_NACK message.
But, as per WSC 2.0 specification,  WSC_NACK is to be sent to indicate a
authenticating or processing error. Is sending WSC_NACK ok in this case?

- Kiran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20120519/8f790f82/attachment.htm 

More information about the HostAP mailing list