]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/mac80211/sta_info.c
mac80211: defer tailroom counter manipulation when roaming
[karo-tx-linux.git] / net / mac80211 / sta_info.c
index a79ce820cb50cf01e5cff62a47b974332c3fe8d6..0141e4951adf7aa365254a78fcc122709081fa84 100644 (file)
@@ -794,9 +794,11 @@ int __must_check __sta_info_destroy(struct sta_info *sta)
 
        mutex_lock(&local->key_mtx);
        for (i = 0; i < NUM_DEFAULT_KEYS; i++)
-               __ieee80211_key_free(key_mtx_dereference(local, sta->gtk[i]));
+               __ieee80211_key_free(key_mtx_dereference(local, sta->gtk[i]),
+                                    true);
        if (sta->ptk)
-               __ieee80211_key_free(key_mtx_dereference(local, sta->ptk));
+               __ieee80211_key_free(key_mtx_dereference(local, sta->ptk),
+                                    true);
        mutex_unlock(&local->key_mtx);
 
        sta->dead = true;