return;
}
- if(connection_profile_get_wifi_security_type(connection_profile, &connection_wifi_security_type) != CONNECTION_ERROR_NONE)
- {
+ if(connection_profile_get_wifi_security_type(connection_profile, &connection_wifi_security_type) != CONNECTION_ERROR_NONE) {
REMOTE_PRINT_DEBUG("Failed to get Wifi Security Type");
- }
- else if (connection_profile_get_wifi_encryption_type(connection_profile, &connection_wifi_encryption_type) != CONNECTION_ERROR_NONE)
- {
+ } else if (connection_profile_get_wifi_encryption_type(connection_profile, &connection_wifi_encryption_type) != CONNECTION_ERROR_NONE) {
REMOTE_PRINT_DEBUG("Failed to get Wifi Encryption Type");
- }
- else if ( (connection_wifi_security_type == CONNECTION_WIFI_SECURITY_TYPE_WPA_PSK) &
- ( (connection_wifi_encryption_type == CONNECTION_WIFI_ENCRYPTION_TYPE_AES) || (connection_wifi_encryption_type == CONNECTION_WIFI_ENCRYPTION_TYPE_TKIP_AES_MIXED)))
- {
+ } else if ( (connection_wifi_security_type == CONNECTION_WIFI_SECURITY_TYPE_WPA_PSK) &
+ ( (connection_wifi_encryption_type == CONNECTION_WIFI_ENCRYPTION_TYPE_AES) || (connection_wifi_encryption_type == CONNECTION_WIFI_ENCRYPTION_TYPE_TKIP_AES_MIXED))) {
//Check_Result = 0;
REMOTE_PRINT_DEBUG("Wifi Check for Omission is OK");
//pCMInstance->SetACLOmissionResult(Check_Result);
return;
- }
- else
- {
+ } else {
REMOTE_PRINT_DEBUG("Not Allow Ommission Of Access Popup : Because of Security type & Encryption type");
}
}
- }
- else
- {
+ } else {
REMOTE_PRINT_DEBUG("Failed to get Connection Type");
}
//pCMInstance->SetACLOmissionResult(Check_Result);
void NetworkIPChanged_cb(const char* ipv4_address, const char* ipv6_address, void* user_data)
{
- if(ipv4_address != 0 && (strlen(ipv4_address) > 7))
- {
+ if (ipv4_address != 0 && (strlen(ipv4_address) > 7)) {
REMOTE_PRINT_DEBUG("UpdateMITNode request, IP_address : [%s]", ipv4_address);
ipc_server->UpdateMITNode(); //update Node Server when IP is changed.
CheckWifiSecurityEncryption(user_data);
- }
- else
- {
+ } else {
REMOTE_PRINT_DEBUG("There is no IP address");
//pCMInstance->SetACLOmissionResult(1); //Check WIFI for omission is 'Not OK'(1)
}
vconf_notify_key_changed("db/menu/network/devicename/tv_name", getTvName_cb, NULL);
- if(mainloop != NULL)
- {
+ if(mainloop != NULL) {
connection_h connection = NULL;
int ret = -1;
ret = connection_create(&connection);
- if(ret == CONNECTION_ERROR_NONE)
- {
+ if (ret == CONNECTION_ERROR_NONE) {
// connection_set_type_changed_cb(connection, NetworkTypeChanged_cb, NULL);
CheckWifiSecurityEncryption(connection);
connection_set_ip_address_changed_cb(connection, NetworkIPChanged_cb, connection);
- }
- else
- {
+ } else {
REMOTE_PRINT_DEBUG("Fail to create connection_set_type_changed_cb\n");
}
//REMOTE_PRINT_DEBUG("Start Convergence Manager!");
g_main_loop_run(mainloop);
g_main_loop_unref(mainloop);
connection_destroy(connection);
- }
- else
- {
+ } else {
REMOTE_PRINT_WARN("Fail to start Convergence Manager!");
}