Notifying device lost event to applicaiton library 73/46773/1 accepted/tizen/mobile/20150826.070028 accepted/tizen/tv/20150826.070138 accepted/tizen/wearable/20150826.070224 submit/tizen/20150826.045842
authorNishant Chaprana <n.chaprana@samsung.com>
Wed, 26 Aug 2015 04:39:46 +0000 (10:09 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Wed, 26 Aug 2015 04:39:46 +0000 (10:09 +0530)
Description: This patch adds device lost event which will be notified
  to applicaiton when DeviceLost is received from supplicant.

Change-Id: I8be965cb68fac61768e8d1bed0a2d43addf4ab39
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
include/wifi-direct-ipc.h
packaging/wifi-direct-manager.spec
src/wifi-direct-event.c

index ed32270..9f9337e 100755 (executable)
@@ -171,6 +171,7 @@ typedef enum
        WIFI_DIRECT_CLI_EVENT_DISCOVER_START_SEARCH_LISTEN,     /**< search, listen*/
        WIFI_DIRECT_CLI_EVENT_DISCOVER_END,                                     /**< */
        WIFI_DIRECT_CLI_EVENT_DISCOVER_FOUND_PEERS,                     /**< */
+       WIFI_DIRECT_CLI_EVENT_DISCOVER_LOST_PEERS,                      /**< */
 
        WIFI_DIRECT_CLI_EVENT_CONNECTION_START,                         /**< */
        WIFI_DIRECT_CLI_EVENT_CONNECTION_REQ,                           /**< */
index 83f9e3b..1736fb2 100755 (executable)
@@ -1,6 +1,6 @@
 Name:          wifi-direct-manager
 Summary:       Wi-Fi Direct manger
-Version:       1.2.93
+Version:       1.2.94
 Release:       1
 Group:      Network & Connectivity/Wireless
 License:    Apache-2.0
index 1885132..4caddca 100644 (file)
@@ -195,7 +195,8 @@ static int _wfd_event_update_peer(wfd_manager_s *manager, wfd_oem_dev_data_s *da
        wfd_remove_peer(manager, event->dev_addr);
 
        memset(&noti, 0x0, sizeof(wifi_direct_client_noti_s));
-       noti.event = WIFI_DIRECT_CLI_EVENT_DISCOVER_FOUND_PEERS;
+       snprintf(noti.param1, MACSTR_LEN, MACSTR, MAC2STR(event->dev_addr));
+       noti.event = WIFI_DIRECT_CLI_EVENT_DISCOVER_LOST_PEERS;
        noti.error = WIFI_DIRECT_ERROR_NONE;
        wfd_client_send_event(manager, &noti);