Reassemble WPS IE(s) in (Re)Association Request if needed
Use a function that will take care of possible (though, very unlikely) fragmentation of WPS TLVs in (Re)Association Request frames.
This commit is contained in:
parent
99e437ad52
commit
16e46ec043
1 changed files with 2 additions and 2 deletions
|
@ -686,8 +686,8 @@ static u16 check_assoc_ies(struct hostapd_data *hapd, struct sta_info *sta,
|
||||||
"Request - assume WPS is used");
|
"Request - assume WPS is used");
|
||||||
sta->flags |= WLAN_STA_WPS;
|
sta->flags |= WLAN_STA_WPS;
|
||||||
wpabuf_free(sta->wps_ie);
|
wpabuf_free(sta->wps_ie);
|
||||||
sta->wps_ie = wpabuf_alloc_copy(elems.wps_ie + 4,
|
sta->wps_ie = ieee802_11_vendor_ie_concat(ies, ies_len,
|
||||||
elems.wps_ie_len - 4);
|
WPS_IE_VENDOR_TYPE);
|
||||||
wpa_ie = NULL;
|
wpa_ie = NULL;
|
||||||
wpa_ie_len = 0;
|
wpa_ie_len = 0;
|
||||||
} else if (hapd->conf->wps_state && wpa_ie == NULL) {
|
} else if (hapd->conf->wps_state && wpa_ie == NULL) {
|
||||||
|
|
Loading…
Reference in a new issue