We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce2e1ca commit b16798fCopy full SHA for b16798f
net/mac80211/sta_info.c
@@ -4,7 +4,7 @@
4
* Copyright 2006-2007 Jiri Benc <[email protected]>
5
* Copyright 2013-2014 Intel Mobile Communications GmbH
6
* Copyright (C) 2015 - 2017 Intel Deutschland GmbH
7
- * Copyright (C) 2018-2019 Intel Corporation
+ * Copyright (C) 2018-2020 Intel Corporation
8
*/
9
10
#include <linux/module.h>
@@ -1049,6 +1049,11 @@ static void __sta_info_destroy_part2(struct sta_info *sta)
1049
might_sleep();
1050
lockdep_assert_held(&local->sta_mtx);
1051
1052
+ while (sta->sta_state == IEEE80211_STA_AUTHORIZED) {
1053
+ ret = sta_info_move_state(sta, IEEE80211_STA_ASSOC);
1054
+ WARN_ON_ONCE(ret);
1055
+ }
1056
+
1057
/* now keys can no longer be reached */
1058
ieee80211_free_sta_keys(local, sta);
1059
0 commit comments