lkml.org 
[lkml]   [2019]   [Jun]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH AUTOSEL 4.19 12/60] mac80211: free peer keys before vif down in mesh
    Date
    From: Pradeep Kumar Chitrapu <pradeepc@codeaurora.org>

    [ 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>
    ---
    net/mac80211/mesh.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c
    index 0f9446ab7e4f..3162f955f3ae 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 */
    --
    2.20.1
    \
     
     \ /
      Last update: 2019-06-27 02:37    [W:2.039 / U:0.768 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site