diff options
author | Pradeep Kumar Chitrapu <pradeepc@codeaurora.org> | 2019-05-28 16:36:16 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-07-14 08:11:06 +0200 |
commit | b8588a0981b789012d066332835ae7d3a73cd178 (patch) | |
tree | 8314ab1d55b8ed03d2a45d1e9075044456162fc7 | |
parent | acc42e5c23228d12ea423a9568293eaf9e0d90a3 (diff) | |
download | linux-stable-b8588a0981b789012d066332835ae7d3a73cd178.tar.gz |
mac80211: free peer keys before vif down in mesh
[ Upstream commit 0112fa557c3bb3a002bc85760dc3761d737264d3 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-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 0f9446ab7e4f7a..3162f955f3ae26 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c @@ -923,6 +923,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 */ |