Add a location for storing expiration time for DevIK. For now, this is
hardcoded to 24 hours and the value will be used in a subsequence commit
to construct the indication to the peer.
Signed-off-by: Shivani Baranwal <quic_shivbara@quicinc.com>
os_memcpy(pairing_info->dev_ik.dik_data,
p2p->cfg->pairing_config.dik_data,
p2p->cfg->pairing_config.dik_len);
+ pairing_info->dev_ik.expiration = 24; /* hours */
p2p_pairing_info_deinit(p2p);
+
p2p->pairing_info = pairing_info;
#ifdef CONFIG_PASN
p2p->initiator_pmksa = pasn_initiator_pmksa_cache_init();
int akmp;
/* Cipher version type */
int cipher_version;
+ /* DevIK expiration time in hours */
+ u32 expiration;
/* Buffer to hold the DevIK */
u8 dik_data[DEVICE_IDENTITY_KEY_MAX_LEN];
/* Length of DevIK */