Name: wifi-direct-manager
Summary: Wi-Fi Direct manger
-Version: 1.2.216
+Version: 1.2.217
Release: 1
Group: Network & Connectivity/Wireless
License: Apache-2.0
-DTIZEN_DEBUG_DBUS_VALUE=1 \
-DTIZEN_WIFI_MODULE_BUNDLE=0 \
-DTIZEN_PROFILE_TV=1 \
+%else
+%if "%{profile}" == "ivi"
+ -DTIZEN_FEATURE_WIFI_DIRECT_ON_DEMAND=1 \
+ -DTIZEN_FEATURE_SERVICE_DISCOVERY=0 \
+ -DTIZEN_WLAN_CONCURRENT_ENABLE=0 \
+ -DTIZEN_FEATURE_WIFI_DISPLAY=1 \
+ -DTIZEN_FEATURE_IP_OVER_EAPOL=1 \
+ -DCTRL_IFACE_DBUS=1 \
+ -DTIZEN_DEBUG_DBUS_VALUE=1 \
+ -DTIZEN_WIFI_MODULE_BUNDLE=1 \
+%endif
%endif
%endif
%endif
wfd_manager_s *manager = wfd_get_manager();
wfd_device_s *peer = NULL;
+ wfd_device_s *member = NULL;
int res = 0;
wfd_group_s *group = (wfd_group_s*) manager->group;
return;
}
+ member = wfd_group_find_member_by_addr(group, event->dev_addr);
+ if (member) {
+ /* PD request can be arrived from peer device
+ * when connection is timeout to close connection*/
+ WDS_LOGE("Unexpected Event - Member already exist");
+ __WDS_LOG_FUNC_EXIT__;
+ return;
+ }
+
#ifdef CTRL_IFACE_DBUS
wfd_oem_dev_data_s *edata = NULL;
}
}
- if (peer) {
- if (WFD_PEER_STATE_DISCOVERED < peer->state) {
- WDS_LOGD("Peer already connected/connecting, ignore this provision request");
- __WDS_LOG_FUNC_EXIT__;
- return;
- }
-
+ if (peer)
peer->state = WFD_PEER_STATE_CONNECTING;
- }
res = wfd_session_process_event(manager, event);
if (res < 0)
goto done;
} else if (!g_strcmp0(method_name, "SetAutoConnectionPeer")) {
- ret = WIFI_DIRECT_ERROR_OPERATION_FAILED;
- goto failed;
+ ret = WIFI_DIRECT_ERROR_NONE;
+ return_parameters = g_variant_new("(i)", ret);
+ goto done;
} else if (!g_strcmp0(method_name, "GetInterfaceName")) {
wfd_group_s *group = (wfd_group_s *)manager->group;
break;
}
WDS_LOGD("=====> session already exist. (invitation session)");
+ if (session->state > SESSION_STATE_WPS) {
+ WDS_LOGE("Session already starts WPS");
+ break;
+ }
+
session->req_wps_mode = req_wps_mode;
session->wps_mode = event->wps_mode;
} else {