Remove handling STA-DISCONNECTED event when WFD state is DISCONNECTING 94/167794/2
authorJiung <jiung.yu@samsung.com>
Mon, 22 Jan 2018 05:15:03 +0000 (14:15 +0900)
committerJiung Yu <jiung.yu@samsung.com>
Wed, 24 Jan 2018 05:50:15 +0000 (05:50 +0000)
Description: STA-DISCONNECTED event won't be occured when
WFD state is DISCONNECTING.

Change-Id: I0b121b6e06400d8c065f0fd98d7b4ce1aabe0e86
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
src/wifi-direct-event.c

index 5111676..006f835 100644 (file)
@@ -1248,14 +1248,6 @@ void wfd_event_sta_disconnected(wfd_oem_event_s *event)
                                                                            peer_mac_address));
                }
 
-       } else if (manager->state == WIFI_DIRECT_STATE_DISCONNECTING) {
-               g_snprintf(peer_mac_address, MACSTR_LEN, MACSTR, MAC2STR(peer_addr));
-               wfd_manager_dbus_emit_signal(WFD_MANAGER_MANAGE_INTERFACE,
-                                            "Disconnection",
-                                            g_variant_new("(iis)", WIFI_DIRECT_ERROR_NONE,
-                                                                   WFD_EVENT_DISCONNECTION_RSP,
-                                                                   peer_mac_address));
-
        } else if (manager->state == WIFI_DIRECT_STATE_CONNECTING &&
                        /* Some devices(GO) send disconnection message before connection completed.
                         * This message should be ignored when device is not GO */