From: Pradeep Kumar Chitrapu Date: Tue, 28 May 2019 23:36:16 +0000 (-0700) Subject: mac80211: free peer keys before vif down in mesh X-Git-Tag: v4.9.186~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2bf0723fbf03d38db7cbe1ad16d0a26f5929f216;p=platform%2Fkernel%2Flinux-amlogic.git 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 Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c index 7f902e69530f..5c347d3a92c9 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c @@ -885,6 +885,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 */