From 1f730de29ea37126b7e561484ccab24d687a9256 Mon Sep 17 00:00:00 2001 From: Jiung Date: Mon, 22 Jan 2018 14:15:03 +0900 Subject: [PATCH] Remove handling STA-DISCONNECTED event when WFD state is DISCONNECTING Description: STA-DISCONNECTED event won't be occured when WFD state is DISCONNECTING. Change-Id: I0b121b6e06400d8c065f0fd98d7b4ce1aabe0e86 Signed-off-by: Yu jiung --- src/wifi-direct-event.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/wifi-direct-event.c b/src/wifi-direct-event.c index 5111676..006f835 100644 --- a/src/wifi-direct-event.c +++ b/src/wifi-direct-event.c @@ -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 */ -- 2.7.4