NetConnectionState connectionState = pConnection->GetConnectionState();
bool isConnected = false;
char* pProfileName = null;
+ char* pProfileDisplayName = null;
int ret = CONNECTION_ERROR_NONE;
connection_profile_h profileHandle = pConnection->GetProfileHandle();
connection_profile_state_e state = CONNECTION_PROFILE_STATE_DISCONNECTED;
ret = connection_profile_refresh(profileHandle);
SysLog(NID_NET, "The return value from connection_profile_refresh() is %d", ret);
- ret = connection_profile_get_name(profileHandle, &pProfileName);
+ ret = connection_profile_get_id(profileHandle, &pProfileName);
+ SysLog(NID_NET, "The return value from connection_profile_get_id() is %d", ret);
+ ret = connection_profile_get_name(profileHandle, &pProfileDisplayName);
SysLog(NID_NET, "The return value from connection_profile_get_name() is %d", ret);
ret = connection_profile_get_state(profileHandle, &state);
SysLog(NID_NET, "The return value from connection_profile_get_state() is %d", ret);
- SysLog(NID_NET, "PsOpenCallback() has been called with res:%d, state:%d, name%s", res, state, pProfileName);
+ SysLog(NID_NET, "PsOpenCallback() has been called with res:%d, state:%d, name:[%s][%s]", res, state, pProfileDisplayName, pProfileName);
if ((res == CONNECTION_ERROR_NONE) && (state == CONNECTION_PROFILE_STATE_CONNECTED))
{
}
free(pProfileName);
+ free(pProfileDisplayName);
if (connectionState != NET_CONNECTION_STATE_STARTING)
{
NetConnectionState connectionState = pConnection->GetConnectionState();
bool isConnected = false;
char* pProfileName = null;
+ char* pProfileDisplayName = null;
int ret = CONNECTION_ERROR_NONE;
connection_profile_h profileHandle = pConnection->GetProfileHandle();
connection_profile_state_e state = CONNECTION_PROFILE_STATE_DISCONNECTED;
ret = connection_profile_refresh(profileHandle);
SysLog(NID_NET, "The return value from connection_profile_refresh() is %d", ret);
- ret = connection_profile_get_name(profileHandle, &pProfileName);
+ ret = connection_profile_get_id(profileHandle, &pProfileName);
+ SysLog(NID_NET, "The return value from connection_profile_get_id() is %d", ret);
+ ret = connection_profile_get_name(profileHandle, &pProfileDisplayName);
SysLog(NID_NET, "The return value from connection_profile_get_name() is %d", ret);
ret = connection_profile_get_state(profileHandle, &state);
SysLog(NID_NET, "The return value from connection_profile_get_state() is %d", ret);
- SysLog(NID_NET, "PsCloseCallback() has been called with res:%d, state:%d, name:%s", res, state, pProfileName);
+ SysLog(NID_NET, "PsCloseCallback() has been called with res:%d, state:%d, name:[%s][%s]", res, state, pProfileDisplayName, pProfileName);
if ((res == CONNECTION_ERROR_NONE) && (state == CONNECTION_PROFILE_STATE_CONNECTED))
{
}
free(pProfileName);
+ free(pProfileDisplayName);
if (connectionState != NET_CONNECTION_STATE_STOPPING)
{
NetConnectionState connectionState = pConnection->GetConnectionState();
bool isConnected = false;
char* pProfileName = null;
+ char* pProfileDisplayName = null;
int ret = CONNECTION_ERROR_NONE;
connection_profile_h profileHandle = pConnection->GetProfileHandle();
ret = connection_profile_refresh(profileHandle);
SysLog(NID_NET, "The return value from connection_profile_refresh() is %d", ret);
- ret = connection_profile_get_name(profileHandle, &pProfileName);
+ ret = connection_profile_get_id(profileHandle, &pProfileName);
+ SysLog(NID_NET, "The return value from connection_profile_get_id() is %d", ret);
+ ret = connection_profile_get_name(profileHandle, &pProfileDisplayName);
SysLog(NID_NET, "The return value from connection_profile_get_name() is %d", ret);
- SysLog(NID_NET, "PsStateChangedCallback() has been called with state:%d, name:%s", state, pProfileName);
+ SysLog(NID_NET, "PsStateChangedCallback() has been called with state:%d, name:[%s][%s]", state, pProfileDisplayName, pProfileName);
if (state == CONNECTION_PROFILE_STATE_CONNECTED)
{
}
free(pProfileName);
+ free(pProfileDisplayName);
if ((connectionState == NET_CONNECTION_STATE_STARTING) || (connectionState == NET_CONNECTION_STATE_STOPPING))
{