<div>hi</div>
<div>I am working on the hostapd and try to connect with Marvell station WPS PIN methods</div>
<div>I found bug in the hostapd: </div>
<div>in the file ieee802_11.c in function void handle_assoc()</div>
<div>in the following section the border line</div>
<div>#ifdef CONFIG_WPS<br>    sta-&gt;flags &amp;= ~(WLAN_STA_WPS | WLAN_STA_MAYBE_WPS);<br>    <strong><u>if (hapd-&gt;conf-&gt;wps_state &amp;&amp; wpa_ie == NULL) {<br></u></strong>  if (elems.wps_ie) {<br>   wpa_printf(MSG_DEBUG, &quot;STA included WPS IE in &quot;<br>
       &quot;(Re)Association Request - assume WPS is &quot;<br>       &quot;used&quot;);<br>   sta-&gt;flags |= WLAN_STA_WPS;<br>   wpabuf_free(sta-&gt;wps_ie);<br>   sta-&gt;wps_ie = wpabuf_alloc_copy(elems.wps_ie + 4,<br>
       elems.wps_ie_len - 4);<br>  } else {<br>   wpa_printf(MSG_DEBUG, &quot;STA did not include WPA/RSN IE &quot;<br>       &quot;in (Re)Association Request - possible WPS &quot;<br>       &quot;use&quot;);<br>   sta-&gt;flags |= WLAN_STA_MAYBE_WPS;<br>
  }<br> } else<br>#endif /* CONFIG_WPS */</div>
<div> </div>
<div>in case the association request include WPA IE or RSN IE , the hostapd will failed to connect with WPS</div>
<div>i looked in the spec and found that the ap need to ignore WPA/RSN IE and inot wirtten that it&#39;s not allow to publish it</div>
<div>i changes tje line to the follow one</div>
<div><strong><u>if (hapd-&gt;conf-&gt;wps_state{</u></strong></div>
<div>and now i have no problem to connect to marvell station that publish the WPA IE, please let me know what do you think about it</div>
<div> </div>
<div>thank</div>
<div>Ronit</div>
<div> </div>
<div> </div>
<div><br></div>
<div> </div>
<div> </div>
<div> </div>