From 0d0855f7007eb3ce1919b97b51567f6cf191d74e Mon Sep 17 00:00:00 2001 From: Yu Jiung Date: Mon, 17 Oct 2016 13:41:59 +0900 Subject: [PATCH] Fix logic when device gets GO-NEG after requesting connection When device requests WPS PIN Display connection, it shouldn't send GO-NEG-REQ after it gets the GO-NEG-REQ because at that time device haven't get the PIN number from user. So with previous logic, there'll be connection failure. Change-Id: I3ca63e170b6a1508aa3ef10ec57d1d0b78059a6a Signed-off-by: Yu jiung --- packaging/wifi-direct-manager.spec | 2 +- src/wifi-direct-session.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packaging/wifi-direct-manager.spec b/packaging/wifi-direct-manager.spec index 3bbba4a..c7c502b 100644 --- a/packaging/wifi-direct-manager.spec +++ b/packaging/wifi-direct-manager.spec @@ -2,7 +2,7 @@ Name: wifi-direct-manager Summary: Wi-Fi Direct manger -Version: 1.2.210 +Version: 1.2.211 Release: 1 Group: Network & Connectivity/Wireless License: Apache-2.0 diff --git a/src/wifi-direct-session.c b/src/wifi-direct-session.c index 156febe..0629049 100644 --- a/src/wifi-direct-session.c +++ b/src/wifi-direct-session.c @@ -1065,6 +1065,8 @@ int wfd_session_process_event(wfd_manager_s *manager, wfd_oem_event_s *event) /* Sometimes, Provision Discovery response is not received. * At this time, connection should be triggered by GO Negotiation request event */ if (session->direction == SESSION_DIRECTION_OUTGOING) { + if(session->wps_mode == WFD_WPS_MODE_KEYPAD && session->wps_pin[0] == '\0') + break; res = wfd_session_connect(session); } else { /* In autoconnection mode, MT should not send GO Nego Req -- 2.7.4