diff options
author | Pradeep Kumar Chitrapu <pradeepc@codeaurora.org> | 2019-05-29 01:36:16 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2019-05-29 11:10:15 +0200 |
commit | 0112fa557c3bb3a002bc85760dc3761d737264d3 (patch) | |
tree | 13bc216e87c32b11731ce6d2b8c68d6f7448ffc9 /net/mac80211/mesh.c | |
parent | mac80211: mesh: fix RCU warning (diff) | |
download | linux-0112fa557c3bb3a002bc85760dc3761d737264d3.tar.xz linux-0112fa557c3bb3a002bc85760dc3761d737264d3.zip |
mac80211: free peer keys before vif down in mesh
freeing peer keys after vif down is resulting in peer key uninstall
to fail due to interface lookup failure. so fix that.
Signed-off-by: Pradeep Kumar Chitrapu <pradeepc@codeaurora.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mesh.c')
-rw-r--r-- | net/mac80211/mesh.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c index d5aba5029cb0..fe44f0d98de0 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c @@ -929,6 +929,7 @@ void ieee80211_stop_mesh(struct ieee80211_sub_if_data *sdata) /* flush STAs and mpaths on this iface */ sta_info_flush(sdata); + ieee80211_free_keys(sdata, true); mesh_path_flush_by_iface(sdata); /* stop the beacon */ |