GError* error = NULL;
GVariant *reply = NULL;
bool wifi_direct_enable;
- gboolean val;
int res = 0;
if (g_client_info.is_registered == TRUE) {
g_variant_get(reply, "(i)", &res);
WDC_LOGD("Active Client id Added, ret[%d]", res);
- reply = wifi_direct_dbus_method_call_sync(WFD_MANAGER_GROUP_INTERFACE,
- "IsGroupOwner", NULL, &error);
-
- res = __net_wifidirect_gerror_to_enum(error);
- if (res != WIFI_DIRECT_ERROR_NONE)
- return res;
-
- g_variant_get(reply, "(b)", &val);
- WDC_LOGD("is group owner [%s]", val ? "YES" : "NO");
-
g_client_info.is_registered = TRUE;
if (__wfd_check_display_feature() == WIFI_DIRECT_ERROR_NONE)