From: Yu Jiung Date: Mon, 17 Oct 2016 04:41:59 +0000 (+0900) Subject: Fix logic when device gets GO-NEG after requesting connection X-Git-Tag: accepted/tizen/3.0/ivi/20161028.133915^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F40%2F92440%2F2;p=platform%2Fcore%2Fconnectivity%2Fwifi-direct-manager.git 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 --- 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