wifi_direct_client_noti_s noti;
+ if (event == NULL || manager == NULL) {
+ WDS_LOGE("Invalid parameter");
+ return;
+ }
+
memset(¬i, 0x0, sizeof(wifi_direct_client_noti_s));
noti.event = WIFI_DIRECT_CLI_EVENT_DEACTIVATION;
noti.error = WIFI_DIRECT_ERROR_NONE;
wifi_direct_client_noti_s noti;
int res = 0;
+ if (event == NULL || manager == NULL) {
+ WDS_LOGE("Invalid parameter");
+ return;
+ }
+
edata = (wfd_oem_dev_data_s*) event->edata;
if (!edata || event->edata_type != WFD_OEM_EDATA_TYPE_DEVICE) {
WDS_LOGE("Invalid event data");
wifi_direct_client_noti_s noti;
+ if (event == NULL || manager == NULL) {
+ WDS_LOGE("Invalid parameter");
+ return;
+ }
+
wfd_remove_peer(manager, event->dev_addr);
memset(¬i, 0x0, sizeof(wifi_direct_client_noti_s));
wifi_direct_client_noti_s noti;
+ if (event == NULL || manager == NULL) {
+ WDS_LOGE("Invalid parameter");
+ return;
+ }
+
if (manager->state != WIFI_DIRECT_STATE_DISCOVERING &&
manager->state != WIFI_DIRECT_STATE_ACTIVATED) {
WDS_LOGE("Notify finding stopped when discovering or activated. [%d]", manager->state);
wfd_device_s *peer = NULL;
int res = 0;
+ if (event == NULL || manager == NULL) {
+ WDS_LOGE("Invalid parameter");
+ return;
+ }
+
#ifdef CTRL_IFACE_DBUS
wfd_oem_dev_data_s *edata = NULL;
wfd_device_s *peer = NULL;
int res = 0;
+ if (event == NULL || manager == NULL) {
+ WDS_LOGE("Invalid parameter");
+ return;
+ }
+
#ifdef CTRL_IFACE_DBUS
wfd_oem_dev_data_s *edata = NULL;
wifi_direct_client_noti_s noti;
unsigned char *peer_addr = NULL;
+ if (event == NULL || manager == NULL) {
+ WDS_LOGE("Invalid parameter");
+ return;
+ }
+
session = (wfd_session_s*) manager->session;
if (!session) {
WDS_LOGE("Unexpected event. Session not exist");
wfd_session_s *session = NULL;
wifi_direct_client_noti_s noti;
+ if (event == NULL || manager == NULL) {
+ WDS_LOGE("Invalid parameter");
+ return;
+ }
+
#ifdef CTRL_IFACE_DBUS
wfd_oem_dev_data_s *edata = NULL;
wifi_direct_client_noti_s noti;
unsigned char *peer_addr = NULL;
+ if (event == NULL || manager == NULL) {
+ WDS_LOGE("Invalid parameter");
+ return;
+ }
+
session = (wfd_session_s*) manager->session;
if (!session) {
WDS_LOGE("Unexpected event. Session not exist");
wfd_oem_conn_data_s *edata = NULL;
wfd_device_s *peer = NULL;
+ if (event == NULL || manager == NULL) {
+ WDS_LOGE("Invalid parameter");
+ return;
+ }
+
edata = (wfd_oem_conn_data_s*) event->edata;
- if (event == NULL || edata == NULL) {
+ if (edata == NULL) {
WDS_LOGE("Invalid event data");
return;
}
wifi_direct_client_noti_s noti;
unsigned char *peer_addr = NULL;
+ if (event == NULL || manager == NULL) {
+ WDS_LOGE("Invalid parameter");
+ return;
+ }
+
session = (wfd_session_s*) manager->session;
if (!session) {
WDS_LOGE("Unexpected event. Session not exist");
wifi_direct_client_noti_s noti;
unsigned char *peer_addr = NULL;
+ if (event == NULL || manager == NULL) {
+ WDS_LOGE("Invalid parameter");
+ return;
+ }
+
session = (wfd_session_s*) manager->session;
if (!session) {
WDS_LOGE("Unexpected event. Session not exist");
wfd_session_s *session = NULL;
wifi_direct_client_noti_s noti;
+ if (event == NULL || manager == NULL) {
+ WDS_LOGE("Invalid parameter");
+ return;
+ }
+
group = (wfd_group_s*) manager->group;
session = (wfd_session_s*)manager->session;
#ifdef CTRL_IFACE_DBUS
wifi_direct_client_noti_s noti;
+ if (event == NULL || manager == NULL) {
+ WDS_LOGE("Invalid parameter");
+ return;
+ }
+
memset(¬i, 0x0, sizeof(wifi_direct_client_noti_s));
if (manager->state == WIFI_DIRECT_STATE_DISCONNECTING) {
noti.event = WIFI_DIRECT_CLI_EVENT_DISCONNECTION_RSP;
wifi_direct_client_noti_s noti;
int res = 0;
+ if (event == NULL || manager == NULL) {
+ WDS_LOGE("Invalid parameter");
+ return;
+ }
+
peer = wfd_peer_find_by_dev_addr(manager, event->dev_addr);
if (!peer) {
WDS_LOGD("Invitation from unknown peer. Add new peer");
wfd_group_s *group = NULL;
wifi_direct_client_noti_s noti;
+ if (event == NULL || manager == NULL) {
+ WDS_LOGE("Invalid parameter");
+ return;
+ }
+
// FIXME: Move this code to plugin
if (!memcmp(event->intf_addr, manager->local->intf_addr, MACADDR_LEN)) {
WDS_LOGD("Ignore this event");
wifi_direct_client_noti_s noti;
unsigned char peer_addr[MACADDR_LEN] = {0, };
+ if (event == NULL || manager == NULL) {
+ WDS_LOGE("Invalid parameter");
+ return;
+ }
+
group = (wfd_group_s*) manager->group;
if (!group) {
WDS_LOGE("Group not found");
wfd_device_s *peer = NULL;
wfd_group_s *group = NULL;
+ if (event == NULL || manager == NULL) {
+ WDS_LOGE("Invalid parameter");
+ return;
+ }
+
// FIXME: Move this code to plugin
if (!memcmp(event->intf_addr, manager->local->intf_addr, MACADDR_LEN)) {
WDS_LOGD("Ignore this event");
wifi_direct_client_noti_s noti;
unsigned char peer_addr[MACADDR_LEN] = {0, };
+ if (event == NULL || manager == NULL) {
+ WDS_LOGE("Invalid parameter");
+ return;
+ }
+
group = (wfd_group_s*) manager->group;
if (!group) {
WDS_LOGE("Group not found");
__WDS_LOG_FUNC_ENTER__;
wifi_direct_client_noti_s noti;
+
+ if (event == NULL || manager == NULL) {
+ WDS_LOGE("Invalid parameter");
+ return;
+ }
+
wfd_update_peer_time(manager, event->dev_addr);
if (event->edata_type == WFD_OEM_EDATA_TYPE_NEW_SERVICE) {