{
gint32 value = enable ? 1 : 0;
gboolean result = FALSE;
- GVariant *input_args = NULL;
-
- input_args = g_variant_new_int32(value);
result = netconfig_supplicant_invoke_dbus_interface_property_set(
- SUPPLICANT_IFACE_INTERFACE, "Passpoint", input_args, NULL);
+ SUPPLICANT_IFACE_INTERFACE, "Passpoint",
+ g_variant_new_int32(value), NULL);
if (result == FALSE)
ERR("Fail to set passpoint enable[%d]", enable);
g_return_val_if_fail(wifi != NULL, TRUE);
#if defined TIZEN_WLAN_PASSPOINT
- if (netconfig_wifi_get_passpoint(&enable)) {
- wifi_complete_get_passpoint(wifi, context, enable);
- return TRUE;
- }
- wifi_complete_get_passpoint(wifi, context, enable);
- return TRUE;
+ netconfig_wifi_get_passpoint(&enable);;
#else
enable = 0;
+#endif
wifi_complete_get_passpoint(wifi, context, enable);
return TRUE;
-#endif
}
gboolean handle_set_passpoint(Wifi *wifi, GDBusMethodInvocation *context, gint enable)