Home
last modified time | relevance | path

Searched refs:old_key (Results 1 – 2 of 2) sorted by relevance

/net/mac80211/
Dkey.c803 struct ieee80211_key *old_key; in ieee80211_key_link() local
819 old_key = key_mtx_dereference(sdata->local, sta->ptk[idx]); in ieee80211_key_link()
826 (old_key && old_key->conf.cipher != key->conf.cipher)) in ieee80211_key_link()
829 old_key = key_mtx_dereference(sdata->local, sta->gtk[idx]); in ieee80211_key_link()
831 old_key = key_mtx_dereference(sdata->local, sdata->keys[idx]); in ieee80211_key_link()
836 if (old_key && old_key->conf.cipher != key->conf.cipher) in ieee80211_key_link()
844 if (ieee80211_key_identical(sdata, old_key, key)) { in ieee80211_key_link()
862 ret = ieee80211_key_replace(sdata, sta, pairwise, old_key, key); in ieee80211_key_link()
866 ieee80211_key_destroy(old_key, delay_tailroom); in ieee80211_key_link()
/net/bluetooth/
Dhci_core.c2576 struct link_key *key, *old_key; in hci_add_link_key() local
2579 old_key = hci_find_link_key(hdev, bdaddr); in hci_add_link_key()
2580 if (old_key) { in hci_add_link_key()
2581 old_key_type = old_key->type; in hci_add_link_key()
2582 key = old_key; in hci_add_link_key()
2623 struct smp_ltk *key, *old_key; in hci_add_ltk() local
2626 old_key = hci_find_ltk(hdev, bdaddr, addr_type, role); in hci_add_ltk()
2627 if (old_key) in hci_add_ltk()
2628 key = old_key; in hci_add_ltk()