<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->flags &= ~(WLAN_STA_WPS | WLAN_STA_MAYBE_WPS);<br> <strong><u>if (hapd->conf->wps_state && wpa_ie == NULL) {<br></u></strong> if (elems.wps_ie) {<br> wpa_printf(MSG_DEBUG, "STA included WPS IE in "<br>
"(Re)Association Request - assume WPS is "<br> "used");<br> sta->flags |= WLAN_STA_WPS;<br> wpabuf_free(sta->wps_ie);<br> sta->wps_ie = wpabuf_alloc_copy(elems.wps_ie + 4,<br>
elems.wps_ie_len - 4);<br> } else {<br> wpa_printf(MSG_DEBUG, "STA did not include WPA/RSN IE "<br> "in (Re)Association Request - possible WPS "<br> "use");<br> sta->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's not allow to publish it</div>
<div>i changes tje line to the follow one</div>
<div><strong><u>if (hapd->conf->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>