FT: Validate MDIE and FTIE in FT 4-way handshake message 2/4
This commit is contained in:
parent
0d7b44099f
commit
0f857f43df
5 changed files with 67 additions and 13 deletions
|
@ -692,6 +692,11 @@ u8 * wpa_sm_write_assoc_resp_ies(struct wpa_state_machine *sm, u8 *pos,
|
|||
ftie_len = res;
|
||||
pos += res;
|
||||
|
||||
os_free(sm->assoc_resp_ftie);
|
||||
sm->assoc_resp_ftie = os_malloc(ftie_len);
|
||||
if (sm->assoc_resp_ftie)
|
||||
os_memcpy(sm->assoc_resp_ftie, ftie, ftie_len);
|
||||
|
||||
_ftie = (struct rsn_ftie *) (ftie + 2);
|
||||
if (auth_alg == WLAN_AUTH_FT)
|
||||
_ftie->mic_control[1] = 3; /* Information element count */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue