]> git.ipfire.org Git - thirdparty/hostap.git/commit
mesh: Fix race condition in mesh mpm new peer handling
authorFelix Fietkau <nbd@nbd.name>
Sun, 17 Feb 2019 15:02:56 +0000 (16:02 +0100)
committerJouni Malinen <j@w1.fi>
Sat, 28 Dec 2019 18:56:03 +0000 (20:56 +0200)
commit41b06b065e6fb099f8fbbbdded5a4f77a45a43ce
tree805dd66364a2dca3bfb534aa54fa65af8e433750
parentef48f1bfb3df6c777253bc1732b542541ae9f427
mesh: Fix race condition in mesh mpm new peer handling

When wpa_supplicant receives another new peer event before the first one
has been processed, it tries to add a station to the driver a second
time (which fails) and then tears down the station entry until another
event comes in.

Fix this by only adding a station to the driver if it didn't exist
already.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
wpa_supplicant/mesh_mpm.c