When device is GO, do not start p2p_listen as device will be discoverable in GO mode 81/58381/2
authorNishant Chaprana <n.chaprana@samsung.com>
Sat, 30 Jan 2016 10:15:22 +0000 (15:45 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Fri, 12 Feb 2016 05:09:18 +0000 (10:39 +0530)
Change-Id: I69a1717832ab7e24b447febc5d706c23270e71d0
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
packaging/wifi-direct-manager.spec
src/wifi-direct-client.c

index d5f8cde..0427038 100755 (executable)
@@ -1,6 +1,6 @@
 Name:          wifi-direct-manager
 Summary:       Wi-Fi Direct manger
-Version:       1.2.123
+Version:       1.2.124
 Release:       1
 Group:      Network & Connectivity/Wireless
 License:    Apache-2.0
index fcde372..e5dfa67 100755 (executable)
@@ -1040,6 +1040,12 @@ static gboolean wfd_client_process_request(GIOChannel *source,
                                break;
                        }
 
+                       if (req.data.int1 && (manager->local->dev_role == WFD_DEV_ROLE_GO)) {
+                               WDS_LOGW("Wi-Fi Direct device is already visible, do not start listen");
+                               rsp.result = WIFI_DIRECT_ERROR_NONE;
+                               break;
+                       }
+
                        wfd_oem_scan_param_s param;
                        memset(&param, 0x0, sizeof(wfd_oem_scan_param_s));
                        if (req.data.int1)      // listen_only