FILS: Extend the fils_pmk_to_ptk() function to also derive KDK
Extend the fils_pmk_to_ptk() to also derive Key Derivation Key (KDK) which can later be used for secure LTF measurements. Signed-off-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
parent
6e834db74e
commit
d87f4aea11
5 changed files with 37 additions and 10 deletions
|
@ -2314,7 +2314,8 @@ int fils_auth_pmk_to_ptk(struct wpa_state_machine *sm, const u8 *pmk,
|
|||
snonce, anonce, dhss, dhss_len,
|
||||
&sm->PTK, ick, &ick_len,
|
||||
sm->wpa_key_mgmt, sm->pairwise,
|
||||
fils_ft, &fils_ft_len);
|
||||
fils_ft, &fils_ft_len,
|
||||
sm->wpa_auth->conf.kdk ? WPA_KDK_MAX_LEN : 0);
|
||||
if (res < 0)
|
||||
return res;
|
||||
sm->PTK_valid = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue