GVariant *parameters = NULL;
guint info;
GError *error = NULL;
- bool enabled;
-
- int ret = softap_is_enabled(softap, &enabled);
- _retvm_if(ret != SOFTAP_ERROR_NONE,
- SOFTAP_ERROR_OPERATION_FAILED,
- "Fail to check softap is enabled!!\n");
- _retvm_if(enabled == false,
- SOFTAP_ERROR_NOT_PERMITTED,
- "Soft AP is not enabled\n");
+ int ret = SOFTAP_ERROR_NONE;
parameters = g_dbus_proxy_call_sync(proxy, "push_wps_button",
NULL, G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error);
GVariant *parameters = NULL;
guint info;
GError *error = NULL;
- bool enabled;
-
- int ret = softap_is_enabled(softap, &enabled);
- _retvm_if(ret != SOFTAP_ERROR_NONE,
- SOFTAP_ERROR_OPERATION_FAILED,
- "Fail to check softap is enabled!!\n");
- _retvm_if(enabled == false,
- SOFTAP_ERROR_NOT_PERMITTED,
- "Soft AP is not enabled\n");
+ int ret = SOFTAP_ERROR_NONE;
parameters = g_dbus_proxy_call_sync(proxy, "set_wps_pin",
g_variant_new("(s)", wps_pin), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error);