]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Fix disconnect event not to increase idle timeout
authorJouni Malinen <j@w1.fi>
Sun, 18 Dec 2011 20:18:42 +0000 (22:18 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 18 Dec 2011 20:18:42 +0000 (22:18 +0200)
commit4c2c6751738ced8a4cdb654117495b06afbbd8a5
tree560a1db865227422bf23ce8e44e5fdcd71c01ee1
parent74781dfc7ba976b5ed4a1a29a3b07037ff934cc5
P2P: Fix disconnect event not to increase idle timeout

When P2P client is processing a disconnection event, make sure the P2P
idle timeout does not get increased, i.e., set a new timeout only if no
timeout is in use. wpa_state changes between DISCONNECTED and SCANNING
can generate multiple calls to wpas_p2p_notif_disconnect() and
previously this was enough to force the idle timeout never hit in
practice when in P2P client role.

Signed-hostap: Jouni Malinen <j@w1.fi>
wpa_supplicant/p2p_supplicant.c