static GVariant * __netconfig_wifi_tdls_send_dbus_str(const char* method, const char *str)
{
GVariant *message = NULL;
- const char *if_path = NULL;
+ char *if_path = NULL;
GVariant *params = NULL;
if_path = netconfig_wifi_get_supplicant_interface();
message = netconfig_invoke_dbus_method(SUPPLICANT_SERVICE,
if_path, SUPPLICANT_INTERFACE ".Interface", method, params);
+ g_free(if_path);
INFO("TDLS Returned from Blocking method for Send DBUS Command");
return message;
}
if (message == NULL) {
ERR(" TDLS : failed to connect !!!");
netconfig_error_dbus_method_return(context, NETCONFIG_ERROR_INTERNAL, "FailTdlsConnect");
- return FALSE;
+ return TRUE;
}
DBG("[TizenMW<--WPAS] TDLS DBUS Command sent successfully");
ERR(" TDLS : failed to discover !!!");
netconfig_error_dbus_method_return(context, NETCONFIG_ERROR_INTERNAL, "FailTdlsDiscover");
wifi_complete_tdls_discover(wifi, context, NETCONFIG_ERROR_TDLS_FAIL_DISCOVER);
- return FALSE;
+ return TRUE;
}
DBG(" TDLS DBUS Command sent successfully");
if (message == NULL) {
ERR(" TDLS : failed to disconnect !!!");
netconfig_error_dbus_method_return(context, NETCONFIG_ERROR_INTERNAL, "FailTdlsDisconnect");
- return FALSE;
+ return TRUE;
}
DBG("[TizenMW<--WPAS] TDLS DBUS Command sent successfully");
GVariant *message = NULL;
GVariantBuilder *builder;
GVariant *params;
- const char *if_path = NULL;
+ char *if_path = NULL;
unsigned char oper_class = 0;
if (peer_mac_Addr == NULL) {
message = netconfig_invoke_dbus_method(SUPPLICANT_SERVICE,
if_path, SUPPLICANT_INTERFACE ".Interface", "TDLSChannelSwitch", params);
+ g_free(if_path);
if (message == NULL) {
ERR(" TDLS : Fail to Process TDLS Channel Switch Request !!!");
wifi_complete_tdls_channel_switch(wifi, context,