Lines Matching refs:old
288 static void ieee80211_pairwise_rekey(struct ieee80211_key *old,
318 } else if (old) {
324 if (!(old->flags & KEY_FLAG_UPLOADED_TO_HARDWARE))
328 old->flags |= KEY_FLAG_TAINTED;
342 ieee80211_flush_queues(local, old->sdata, false);
430 struct ieee80211_key *old,
437 /* caller must provide at least one old/new */
438 if (WARN_ON(!new && !old))
444 WARN_ON(new && old && new->conf.keyidx != old->conf.keyidx);
448 * old is still NULL for the first rekey.
450 ieee80211_pairwise_rekey(old, new);
453 if (old) {
454 idx = old->conf.keyidx;
456 if (old->flags & KEY_FLAG_UPLOADED_TO_HARDWARE) {
457 ieee80211_key_disable_hw_accel(old);
463 /* new must be provided in case old is not */
485 if (new && !old)
488 defunikey = old &&
489 old == key_mtx_dereference(sdata->local,
491 defmultikey = old &&
492 old == key_mtx_dereference(sdata->local,
494 defmgmtkey = old &&
495 old == key_mtx_dereference(sdata->local,
497 defbeaconkey = old &&
498 old == key_mtx_dereference(sdata->local,
525 if (old)
526 list_del_rcu(&old->list);
766 struct ieee80211_key *old,
772 if (!old || new->conf.keylen != old->conf.keylen)
775 tk_old = old->conf.key;
822 /* The rekey code assumes that the old and new key are using