Lines Matching defs:old_key
851 struct ieee80211_key *old_key = NULL;
867 old_key = key_mtx_dereference(sdata->local, sta->ptk[idx]);
874 (old_key && old_key->conf.cipher != key->conf.cipher)) {
891 old_key = key_mtx_dereference(sdata->local, link_sta->gtk[idx]);
894 old_key = key_mtx_dereference(sdata->local,
896 if (!old_key)
897 old_key = key_mtx_dereference(sdata->local,
903 if (old_key && old_key->conf.cipher != key->conf.cipher) {
913 if (ieee80211_key_identical(sdata, old_key, key)) {
930 ret = ieee80211_key_replace(sdata, link, sta, pairwise, old_key, key);
934 ieee80211_key_destroy(old_key, delay_tailroom);