}
#endif /* CONFIG_PASN */
- wpa_sm_store_ptk(sm, sm->bssid, sm->pairwise_cipher,
+ wpa_sm_store_ptk(sm, wpa_sm_get_auth_addr(sm), sm->pairwise_cipher,
sm->dot11RSNAConfigPMKLifetime, &sm->ptk);
if (key_flag & KEY_FLAG_NEXT) {
goto fail;
}
- wpa_sm_store_ptk(sm, sm->bssid, sm->pairwise_cipher,
+ wpa_sm_store_ptk(sm, wpa_sm_get_auth_addr(sm), sm->pairwise_cipher,
sm->dot11RSNAConfigPMKLifetime, &sm->ptk);
/* TODO: TK could be cleared after auth frame exchange now that driver