Lines Matching defs:old_key
803 struct ieee80211_key *old_key;
819 old_key = key_mtx_dereference(sdata->local, sta->ptk[idx]);
826 (old_key && old_key->conf.cipher != key->conf.cipher))
829 old_key = key_mtx_dereference(sdata->local, sta->gtk[idx]);
831 old_key = key_mtx_dereference(sdata->local, sdata->keys[idx]);
836 if (old_key && old_key->conf.cipher != key->conf.cipher)
844 if (ieee80211_key_identical(sdata, old_key, key)) {
862 ret = ieee80211_key_replace(sdata, sta, pairwise, old_key, key);
866 ieee80211_key_destroy(old_key, delay_tailroom);