Fix logic when device gets GO-NEG after requesting connection 40/92440/2 accepted/tizen/3.0/ivi/20161028.133915 accepted/tizen/3.0/mobile/20161028.133015 accepted/tizen/3.0/tv/20161028.133337 accepted/tizen/3.0/wearable/20161028.133637 accepted/tizen/common/20161019.145707 accepted/tizen/ivi/20161021.062428 accepted/tizen/mobile/20161021.062317 accepted/tizen/tv/20161021.062340 accepted/tizen/wearable/20161021.062409 submit/tizen/20161019.063605 submit/tizen_3.0/20161028.062323 submit/tizen_3.0/20161028.082423 submit/tizen_3.0_common/20161104.104000
authorYu Jiung <jiung.yu@samsung.com>
Mon, 17 Oct 2016 04:41:59 +0000 (13:41 +0900)
committerJiung Yu <jiung.yu@samsung.com>
Mon, 17 Oct 2016 05:00:28 +0000 (22:00 -0700)
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 <jiung.yu@samsung.com>
packaging/wifi-direct-manager.spec
src/wifi-direct-session.c

index 3bbba4a..c7c502b 100644 (file)
@@ -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
index 156febe..0629049 100644 (file)
@@ -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