]> git.ipfire.org Git - thirdparty/hostap.git/commit
mesh: Fix peer link counting when removing a mesh peer
authorYu Wang <yyuwang@codeaurora.org>
Tue, 7 Jul 2020 18:18:47 +0000 (02:18 +0800)
committerJouni Malinen <j@w1.fi>
Wed, 15 Jul 2020 09:00:35 +0000 (12:00 +0300)
commit885097125ccbd9b1e18479c90e6b772ecab014eb
treea68bb4d7fa86f25e5806164c22a588b8cefe688a
parent4df892c781b8d02a10fa78c15d639e7601e2a8dc
mesh: Fix peer link counting when removing a mesh peer

When removing a mesh peer with control interface commands (ACCEPT_ACL
DEL_MAC/DENY_ACL ADD_MAC/MESH_PEER_REMOVE) the plink count was not
decreased from its last connection. This resulted in peer link count
leakage and wpa_supplicant rejecting the connections after reaching
max_peer_links (default: 99).

Fix this by decreasing the plink count when removing a mesh peer which
is in PLINK_ESTAB state.

Signed-off-by: Yu Wang <yyuwang@codeaurora.org>
wpa_supplicant/mesh_mpm.c