path: root/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
diff options
authorJouni Malinen <jouni@qca.qualcomm.com>2015-08-21 15:28:28 (GMT)
committerJouni Malinen <j@w1.fi>2015-08-21 21:22:12 (GMT)
commitdfaf11d648fb131237dfe1df80d8537d5cce92fb (patch)
tree49d62c49744403fc05b21d218be253a439ac493b /wpa_supplicant/dbus/dbus_new_handlers_p2p.c
parent8493fe34579415da546cde637c95da1cb979eb03 (diff)
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>
Diffstat (limited to 'wpa_supplicant/dbus/dbus_new_handlers_p2p.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/dbus/dbus_new_handlers_p2p.c b/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
index e9d60df..ef07107 100644
--- a/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
+++ b/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
@@ -364,7 +364,7 @@ DBusMessage * wpas_dbus_handler_p2p_group_add(DBusMessage *message,
goto inv_args;
if (wpas_p2p_group_add_persistent(wpa_s, ssid, 0, freq, 0, 0, 0,
- NULL, 0)) {
+ NULL, 0, 0)) {
reply = wpas_dbus_error_unknown_error(
"Failed to reinvoke a persistent group");