aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/dbus
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2012-04-26 17:13:03 +0300
committerJouni Malinen <j@w1.fi>2012-04-26 17:13:03 +0300
commit0918c4bf3bd511405a59c7c5bf0d86e1ac7bb74c (patch)
treebf1c06d9b239344d758adb65957f107bb0f47a14 /wpa_supplicant/dbus
parent25a94f525ce302c4565389e3c8ee4f8a24d7be48 (diff)
downloadexternal_wpa_supplicant_8_ti-0918c4bf3bd511405a59c7c5bf0d86e1ac7bb74c.zip
external_wpa_supplicant_8_ti-0918c4bf3bd511405a59c7c5bf0d86e1ac7bb74c.tar.gz
external_wpa_supplicant_8_ti-0918c4bf3bd511405a59c7c5bf0d86e1ac7bb74c.tar.bz2
P2P: Add p2p_prov_disc auto mechanism
wpa_supplicant can now be requested to automatically figure out whether the indicated peer is operating as a GO and if so, use join-a-group style PD instead of pre-GO Negotiation PD. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/dbus')
-rw-r--r--wpa_supplicant/dbus/dbus_new_handlers_p2p.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wpa_supplicant/dbus/dbus_new_handlers_p2p.c b/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
index 45e8a69..badec75 100644
--- a/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
+++ b/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
@@ -692,7 +692,8 @@ DBusMessage * wpas_dbus_handler_p2p_prov_disc_req(DBusMessage *message,
os_strcmp(config_method, "pushbutton"))
return wpas_dbus_error_invalid_args(message, NULL);
- if (wpas_p2p_prov_disc(wpa_s, peer_addr, config_method, 0) < 0)
+ if (wpas_p2p_prov_disc(wpa_s, peer_addr, config_method,
+ WPAS_P2P_PD_FOR_GO_NEG) < 0)
return wpas_dbus_error_unknown_error(message,
"Failed to send provision discovery request");