]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/wpa_supplicant_i.h
P2P: Require fresh scan results for persistent group re-invocation
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 21 Aug 2015 15:28:28 +0000 (18:28 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 21 Aug 2015 21:22:12 +0000 (00:22 +0300)
commitdfaf11d648fb131237dfe1df80d8537d5cce92fb
tree49d62c49744403fc05b21d218be253a439ac493b
parent8493fe34579415da546cde637c95da1cb979eb03
P2P: Require fresh scan results for persistent group re-invocation

The P2P group is not yet operating when going through invitation
exchange for re-invocation. Previously, an old cached scan result could
be used to skip the scan immediately after the invitation exchange.
While this may result in the fastest possible connection, it does have
some issues with cases where the GO takes some time to start up. It
would also be at least theoretically possible for some of the BSS
parameters to be different, so having a fresh scan result from the new
GO instance may be desired in any case.

Add a mechanism to skip scan results that have been last updated before
a specific point in time and as the first user for this mechanism,
require chan results to be more recent than the invitation message
exchange for the P2P Client role in persistent group re-invocation case.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/ctrl_iface.c
wpa_supplicant/dbus/dbus_new_handlers_p2p.c
wpa_supplicant/events.c
wpa_supplicant/p2p_supplicant.c
wpa_supplicant/p2p_supplicant.h
wpa_supplicant/wpa_supplicant_i.h