Fix coding guidelines issues 09/265409/6 accepted/tizen/unified/20220114.130155 submit/tizen/20220111.042706 submit/tizen/20220111.044041
authorAnjali Nijhara <a.nijhara@samsung.com>
Thu, 14 Oct 2021 07:39:10 +0000 (13:09 +0530)
committerAnjali Nijhara <a.nijhara@samsung.com>
Fri, 10 Dec 2021 07:31:18 +0000 (13:01 +0530)
Change-Id: Ic890ef2bdaf5801f15ece6c88916756fa83aeacf
Signed-off-by: Anjali Nijhara <a.nijhara@samsung.com>
14 files changed:
include/connection_extension.h
include/net_connection_private.h
src/connection.c
src/connection_profile.c
src/libnetwork.c
test/connection_test.c
unittest/include/assert_local.h
unittest/include/tct_common.h
unittest/include/testcase.h
unittest/tct-connection-core.h
unittest/utc-connection-common.c
unittest/utc-connection-common.h
unittest/utc-connection-profile.c
unittest/utc-network-connection.c

index 8b7eb36..5a76443 100755 (executable)
@@ -468,7 +468,7 @@ int connection_profile_set_ethernet_eap_client_cert_file(connection_profile_h pr
  * @brief Gets the Client Certificate of EAP.
  * @since_tizen 6.0
  * @remarks This function is valid only if the EAP type is #CONNECTION_ETHERNET_EAP_TYPE_TLS.
- *     You must release @a file using free().
+ *     You must release @a file using free().
  * @param[in] profile          The profile handle
  * @param[out] file             The file path of Client Certificate
  * @return 0 on success, otherwise negative error value
@@ -498,7 +498,7 @@ int connection_profile_set_ethernet_eap_pac_file(connection_profile_h profile, c
  * @brief Gets the PAC file of EAP.
  * @since_tizen 6.0
  * @remarks This function is valid only if the EAP type is #CONNECTION_ETHERNET_EAP_TYPE_FAST.
- *     You must release @a file using free().
+ *     You must release @a file using free().
  * @param[in] profile          The profile handle
  * @param[out] file             The path of PAC file
  * @return 0 on success, otherwise negative error value
@@ -558,7 +558,7 @@ int connection_profile_set_ethernet_eap_identity(connection_profile_h profile, c
  * @brief Gets the identity of EAP over ethernet.
  * @since_tizen 6.0
  * @remarks This function is valid only if the EAP type is #CONNECTION_ETHERNET_EAP_TYPE_TLS.
- *     You must release @a identity using free().
+ *     You must release @a identity using free().
  * @param[in] profile          The profile handle
  * @param[out] identity                The identity of ethernet.
  * @return 0 on success, otherwise negative error value
@@ -589,7 +589,7 @@ int connection_profile_set_ethernet_eap_private_key_info(connection_profile_h pr
  * @brief Gets the private key file of EAP.
  * @since_tizen 6.0
  * @remarks This function is valid only if the EAP type is #CONNECTION_ETHERNET_EAP_TYPE_TLS.
- *     You must release @a file using free().
+ *     You must release @a file using free().
  * @param[in] profile          The profile handle
  * @param[out] file             The file path of private key
  * @return 0 on success, otherwise negative error value
@@ -605,7 +605,7 @@ int connection_profile_get_ethernet_eap_private_key_file(connection_profile_h pr
  * @brief Sets the user name and passphrase of EAP.
  * @since_tizen 6.0
  * @remarks This function is valid only if the EAP type is #CONNECTION_ETHERNET_EAP_TYPE_MD5,
- *     #CONNECTION_ETHERNET_EAP_TYPE_PEAP, #CONNECTION_ETHERNET_EAP_TYPE_TTLS or #CONNECTION_ETHERNET_EAP_TYPE_FAST.
+ *     #CONNECTION_ETHERNET_EAP_TYPE_PEAP, #CONNECTION_ETHERNET_EAP_TYPE_TTLS or #CONNECTION_ETHERNET_EAP_TYPE_FAST.
  * @param[in] profile          The profile handle
  * @param[in] user_name         The user name
  * @param[in] password          The password
@@ -622,8 +622,8 @@ int connection_profile_set_ethernet_eap_passphrase(connection_profile_h profile,
  * @brief Gets the username and password status of EAP.
  * @since_tizen 6.0
  * @remarks This function is valid only if the EAP type is #CONNECTION_ETHERNET_EAP_TYPE_MD5,
- *     #CONNECTION_ETHERNET_EAP_TYPE_PEAP, #CONNECTION_ETHERNET_EAP_TYPE_TTLS or #CONNECTION_ETHERNET_EAP_TYPE_FAST.
- *     You must release @a user_name using free().
+ *     #CONNECTION_ETHERNET_EAP_TYPE_PEAP, #CONNECTION_ETHERNET_EAP_TYPE_TTLS or #CONNECTION_ETHERNET_EAP_TYPE_FAST.
+ *     You must release @a user_name using free().
  * @param[in] profile          The profile handle
  * @param[out] user_name        The user name
  * @param[out] is_password_set  @c true if password is set,
index 350a26a..94c53a8 100755 (executable)
@@ -59,12 +59,12 @@ typedef enum {
 #define CONN_LOCK \
        do { \
                _connection_lock(); \
-       } while(0)
+       } while (0)
 
 #define CONN_UNLOCK \
        do { \
                _connection_unlock(); \
-       } while(0)
+       } while (0)
 
 #define CHECK_FEATURE_SUPPORTED(...) \
        do { \
index 7e2c72e..de8372e 100755 (executable)
@@ -349,7 +349,7 @@ EXPORT_API int connection_destroy_cs(int tid, connection_h connection)
 }
 //LCOV_EXCL_STOP
 
-EXPORT_API int connection_get_type(connection_h connection, connection_type_etype)
+EXPORT_API int connection_get_type(connection_h connection, connection_type_e *type)
 {
        int rv = 0;
        int status = 0;
@@ -573,7 +573,7 @@ EXPORT_API int connection_is_metered_network(connection_h connection, bool* is_m
 }
 
 
-EXPORT_API int connection_get_cellular_state(connection_h connection, connection_cellular_state_estate)
+EXPORT_API int connection_get_cellular_state(connection_h connection, connection_cellular_state_e *state)
 {
        int rv = 0;
        int status = 0;
@@ -647,7 +647,7 @@ EXPORT_API int connection_get_cellular_state(connection_h connection, connection
        return CONNECTION_ERROR_NONE;
 }
 
-EXPORT_API int connection_get_wifi_state(connection_h connection, connection_wifi_state_estate)
+EXPORT_API int connection_get_wifi_state(connection_h connection, connection_wifi_state_e *state)
 {
        CONN_LOCK;
 
@@ -1090,7 +1090,7 @@ EXPORT_API int connection_update_profile(connection_h connection, connection_pro
 }
 
 EXPORT_API int connection_get_profile_iterator(connection_h connection,
-               connection_iterator_type_e type, connection_profile_iterator_hprofile_iterator)
+               connection_iterator_type_e type, connection_profile_iterator_h *profile_iterator)
 {
        CONN_LOCK;
 
@@ -1117,7 +1117,7 @@ EXPORT_API int connection_get_profile_iterator(connection_h connection,
 }
 
 EXPORT_API int connection_profile_iterator_next(connection_profile_iterator_h profile_iterator,
-                                                       connection_profile_hprofile)
+                                                       connection_profile_h *profile)
 {
        CONN_LOCK;
 
@@ -1153,7 +1153,7 @@ EXPORT_API int connection_destroy_profile_iterator(connection_profile_iterator_h
        return rv;
 }
 
-EXPORT_API int connection_get_current_profile(connection_h connection, connection_profile_hprofile)
+EXPORT_API int connection_get_current_profile(connection_h connection, connection_profile_h *profile)
 {
        CONN_LOCK;
 
index fb778df..4263431 100755 (executable)
@@ -2833,7 +2833,7 @@ EXPORT_API int connection_profile_set_ethernet_eap_passphrase(connection_profile
        net_profile_info_t *profile_info = profile;
        net_dev_info_t *net_info = __profile_get_net_info(profile_info);
 
-        if (!net_info || false == __profile_ethernet_validate_eap_passphrase(net_info)) {
+       if (!net_info || false == __profile_ethernet_validate_eap_passphrase(net_info)) {
                CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
                CONN_UNLOCK;
                return CONNECTION_ERROR_INVALID_OPERATION;
@@ -2864,7 +2864,7 @@ EXPORT_API int connection_profile_get_ethernet_eap_passphrase(connection_profile
        net_profile_info_t *profile_info = profile;
        net_dev_info_t *net_info = __profile_get_net_info(profile_info);
 
-        if (!net_info || false == __profile_ethernet_validate_eap_passphrase(net_info)) {
+       if (!net_info || false == __profile_ethernet_validate_eap_passphrase(net_info)) {
                CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
                CONN_UNLOCK;
                return CONNECTION_ERROR_INVALID_OPERATION;
@@ -2888,386 +2888,381 @@ EXPORT_API int connection_profile_get_ethernet_eap_passphrase(connection_profile
 EXPORT_API int connection_profile_set_ethernet_eap_identity(connection_profile_h profile,
                                const char *identity)
 {
-        CONN_LOCK;
+       CONN_LOCK;
 
-        CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
-                        TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
+       CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
+               TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
 
-        if (!_connection_libnet_check_profile_validity(profile) ||
-                        identity == NULL ) {
-                CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
-                CONN_UNLOCK;
-                return CONNECTION_ERROR_INVALID_PARAMETER;
-        }
+       if (!_connection_libnet_check_profile_validity(profile) || identity == NULL) {
+               CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
+               CONN_UNLOCK;
+               return CONNECTION_ERROR_INVALID_PARAMETER;
+       }
 
-        net_profile_info_t *profile_info = profile;
-        net_dev_info_t *net_info = __profile_get_net_info(profile_info);
+       net_profile_info_t *profile_info = profile;
+       net_dev_info_t *net_info = __profile_get_net_info(profile_info);
 
-        if (!net_info || false == __profile_ethernet_validate_eap_identity(net_info)) {
-                CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation"); //LCOV_EXCL_LINE
-                CONN_UNLOCK; //LCOV_EXCL_LINE
-                return CONNECTION_ERROR_INVALID_OPERATION; //LCOV_EXCL_LINE
-        }
+       if (!net_info || false == __profile_ethernet_validate_eap_identity(net_info)) {
+               CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation"); //LCOV_EXCL_LINE
+               CONN_UNLOCK; //LCOV_EXCL_LINE
+               return CONNECTION_ERROR_INVALID_OPERATION; //LCOV_EXCL_LINE
+       }
 
-        g_strlcpy(net_info->eap.username, identity, NET_USERNAME_LEN+1);
+       g_strlcpy(net_info->eap.username, identity, NET_USERNAME_LEN+1);
 
-        CONN_UNLOCK;
-        return CONNECTION_ERROR_NONE;
+       CONN_UNLOCK;
+       return CONNECTION_ERROR_NONE;
 }
 
 EXPORT_API int connection_profile_get_ethernet_eap_identity(connection_profile_h profile,
                                char **identity)
 {
-        CONN_LOCK;
+       CONN_LOCK;
 
-        CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
-                        TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
+       CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
+       TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
 
-        if (!_connection_libnet_check_profile_validity(profile) ||
-                       identity == NULL ) {
-                CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
-                CONN_UNLOCK;
-                return CONNECTION_ERROR_INVALID_PARAMETER;
-        }
+       if (!_connection_libnet_check_profile_validity(profile) ||
+                       identity == NULL) {
+               CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
+               CONN_UNLOCK;
+               return CONNECTION_ERROR_INVALID_PARAMETER;
+       }
 
-        net_profile_info_t *profile_info = profile;
-        net_dev_info_t *net_info = __profile_get_net_info(profile_info);
+       net_profile_info_t *profile_info = profile;
+       net_dev_info_t *net_info = __profile_get_net_info(profile_info);
 
-        if (!net_info || false == __profile_ethernet_validate_eap_identity(net_info)) {
-                CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation"); //LCOV_EXCL_LINE
-                CONN_UNLOCK; //LCOV_EXCL_LINE
-                return CONNECTION_ERROR_INVALID_OPERATION; //LCOV_EXCL_LINE
-        }
+       if (!net_info || false == __profile_ethernet_validate_eap_identity(net_info)) {
+               CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation"); //LCOV_EXCL_LINE
+               CONN_UNLOCK; //LCOV_EXCL_LINE
+               return CONNECTION_ERROR_INVALID_OPERATION; //LCOV_EXCL_LINE
+       }
 
-        *identity = strdup(net_info->eap.username);
-        if (*identity == NULL)  {
-                CONN_UNLOCK; //LCOV_EXCL_LINE
-                return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
-        }
+       *identity = strdup(net_info->eap.username);
+       if (*identity == NULL)  {
+               CONN_UNLOCK; //LCOV_EXCL_LINE
+               return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
+       }
 
-        CONN_UNLOCK;
-        return CONNECTION_ERROR_NONE;
+       CONN_UNLOCK;
+       return CONNECTION_ERROR_NONE;
 }
 
 EXPORT_API int connection_profile_set_ethernet_eap_ca_cert_file(connection_profile_h profile,
                                const char *file)
 {
-        CONN_LOCK;
+       CONN_LOCK;
 
-        CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
-                        TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
+       CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
+       TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
 
-        if (!_connection_libnet_check_profile_validity(profile) ||
-                        file == NULL ) {
-                CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
-                CONN_UNLOCK;
-                return CONNECTION_ERROR_INVALID_PARAMETER;
-        }
+       if (!_connection_libnet_check_profile_validity(profile) ||
+               file == NULL) {
+               CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
+               CONN_UNLOCK;
+               return CONNECTION_ERROR_INVALID_PARAMETER;
+       }
 
-        net_profile_info_t *profile_info = profile;
-        net_dev_info_t *net_info = __profile_get_net_info(profile_info);
+       net_profile_info_t *profile_info = profile;
+       net_dev_info_t *net_info = __profile_get_net_info(profile_info);
 
-        if (!net_info || false == __profile_ethernet_validate_eap_ca_cert_file(net_info)) {
-                CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
-                CONN_UNLOCK;
-                return CONNECTION_ERROR_INVALID_OPERATION;
-        }
+       if (!net_info || false == __profile_ethernet_validate_eap_ca_cert_file(net_info)) {
+               CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
+               CONN_UNLOCK;
+               return CONNECTION_ERROR_INVALID_OPERATION;
+       }
 
-        g_strlcpy(net_info->eap.ca_cert_filename, file, NET_CA_CERT_FILENAME_LEN+1);
+       g_strlcpy(net_info->eap.ca_cert_filename, file, NET_CA_CERT_FILENAME_LEN+1);
 
-        CONN_UNLOCK;
-        return CONNECTION_ERROR_NONE;
+       CONN_UNLOCK;
+       return CONNECTION_ERROR_NONE;
 }
 
 EXPORT_API int connection_profile_get_ethernet_eap_ca_cert_file(connection_profile_h profile,
                                char **file)
 {
-        CONN_LOCK;
+       CONN_LOCK;
 
-        CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
-                        TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
+       CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
+               TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
 
-        if (!_connection_libnet_check_profile_validity(profile) ||
-                        file == NULL ) {
-                CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
-                CONN_UNLOCK;
-                return CONNECTION_ERROR_INVALID_PARAMETER;
-        }
+       if (!_connection_libnet_check_profile_validity(profile) ||
+               file == NULL) {
+               CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
+               CONN_UNLOCK;
+               return CONNECTION_ERROR_INVALID_PARAMETER;
+       }
 
-        net_profile_info_t *profile_info = profile;
-        net_dev_info_t *net_info = __profile_get_net_info(profile_info);
+       net_profile_info_t *profile_info = profile;
+       net_dev_info_t *net_info = __profile_get_net_info(profile_info);
 
-        if (!net_info || false == __profile_ethernet_validate_eap_ca_cert_file(net_info)) {
-                CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
-                CONN_UNLOCK;
-                return CONNECTION_ERROR_INVALID_OPERATION;
-        }
+       if (!net_info || false == __profile_ethernet_validate_eap_ca_cert_file(net_info)) {
+               CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
+               CONN_UNLOCK;
+               return CONNECTION_ERROR_INVALID_OPERATION;
+       }
 
-        *file = strdup(net_info->eap.ca_cert_filename);
-        if (*file == NULL)  {
-                CONN_UNLOCK; //LCOV_EXCL_LINE
-                return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
-        }
+       *file = strdup(net_info->eap.ca_cert_filename);
+       if (*file == NULL)  {
+               CONN_UNLOCK; //LCOV_EXCL_LINE
+               return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
+       }
 
-        CONN_UNLOCK;
-        return CONNECTION_ERROR_NONE;
+       CONN_UNLOCK;
+       return CONNECTION_ERROR_NONE;
 }
 
 EXPORT_API int connection_profile_set_ethernet_eap_client_cert_file(connection_profile_h profile,
                                const char *file)
 {
-        CONN_LOCK;
+       CONN_LOCK;
 
-        CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
-                        TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
+       CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
+               TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
 
-        if (!_connection_libnet_check_profile_validity(profile) ||
-                        file == NULL ) {
-                CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
-                CONN_UNLOCK;
-                return CONNECTION_ERROR_INVALID_PARAMETER;
-        }
+       if (!_connection_libnet_check_profile_validity(profile) ||
+               file == NULL) {
+               CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
+               CONN_UNLOCK;
+               return CONNECTION_ERROR_INVALID_PARAMETER;
+       }
 
-        net_profile_info_t *profile_info = profile;
-        net_dev_info_t *net_info = __profile_get_net_info(profile_info);
+       net_profile_info_t *profile_info = profile;
+       net_dev_info_t *net_info = __profile_get_net_info(profile_info);
 
-        if (!net_info || false == __profile_ethernet_validate_eap_client_cert_file(net_info)) {
-                CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
-                CONN_UNLOCK;
-                return CONNECTION_ERROR_INVALID_OPERATION;
-        }
+       if (!net_info || false == __profile_ethernet_validate_eap_client_cert_file(net_info)) {
+               CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
+               CONN_UNLOCK;
+               return CONNECTION_ERROR_INVALID_OPERATION;
+       }
 
-        g_strlcpy(net_info->eap.client_cert_filename, file, NET_CLIENT_CERT_FILENAME_LEN+1);
+       g_strlcpy(net_info->eap.client_cert_filename, file, NET_CLIENT_CERT_FILENAME_LEN+1);
 
-        CONN_UNLOCK;
-        return CONNECTION_ERROR_NONE;
+       CONN_UNLOCK;
+       return CONNECTION_ERROR_NONE;
 }
 
 EXPORT_API int connection_profile_get_ethernet_eap_client_cert_file(connection_profile_h profile,
                                char **file)
 {
-        CONN_LOCK;
+       CONN_LOCK;
 
-        CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
-                        TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
+       CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
+               TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
 
-        if (!_connection_libnet_check_profile_validity(profile) ||
-                        file == NULL ) {
-                CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
-                CONN_UNLOCK;
-                return CONNECTION_ERROR_INVALID_PARAMETER;
-        }
+       if (!_connection_libnet_check_profile_validity(profile) ||
+               file == NULL) {
+               CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
+               CONN_UNLOCK;
+               return CONNECTION_ERROR_INVALID_PARAMETER;
+       }
 
-        net_profile_info_t *profile_info = profile;
-        net_dev_info_t *net_info = __profile_get_net_info(profile_info);
+       net_profile_info_t *profile_info = profile;
+       net_dev_info_t *net_info = __profile_get_net_info(profile_info);
 
-        if (!net_info || false == __profile_ethernet_validate_eap_client_cert_file(net_info)) {
-                CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
-                CONN_UNLOCK;
-                return CONNECTION_ERROR_INVALID_OPERATION;
-        }
+       if (!net_info || false == __profile_ethernet_validate_eap_client_cert_file(net_info)) {
+               CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
+               CONN_UNLOCK;
+               return CONNECTION_ERROR_INVALID_OPERATION;
+       }
 
-        *file = strdup(net_info->eap.client_cert_filename);
-        if (*file == NULL)  {
-                CONN_UNLOCK; //LCOV_EXCL_LINE
-                return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
-        }
+       *file = strdup(net_info->eap.client_cert_filename);
+       if (*file == NULL)  {
+               CONN_UNLOCK; //LCOV_EXCL_LINE
+               return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
+       }
 
-        CONN_UNLOCK;
-        return CONNECTION_ERROR_NONE;
+       CONN_UNLOCK;
+       return CONNECTION_ERROR_NONE;
 }
 
-EXPORT_API int connection_profile_get_ethernet_eap_private_key_file(connection_profile_h profile,
-                                char **file)
+EXPORT_API int connection_profile_get_ethernet_eap_private_key_file(connection_profile_h profile, char **file)
 {
-        CONN_LOCK;
+       CONN_LOCK;
 
-        CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
-                        TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
+       CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
+               TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
 
-        if (!_connection_libnet_check_profile_validity(profile) ||
-                        file == NULL ) {
-                CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
-                CONN_UNLOCK;
-                return CONNECTION_ERROR_INVALID_PARAMETER;
-        }
+       if (!_connection_libnet_check_profile_validity(profile) ||
+               file == NULL) {
+               CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
+               CONN_UNLOCK;
+               return CONNECTION_ERROR_INVALID_PARAMETER;
+       }
 
-        net_profile_info_t *profile_info = profile;
-        net_dev_info_t *net_info = __profile_get_net_info(profile_info);
+       net_profile_info_t *profile_info = profile;
+       net_dev_info_t *net_info = __profile_get_net_info(profile_info);
 
-        if (!net_info || false == __profile_ethernet_validate_eap_private_key_file(net_info)) {
-                CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
-                CONN_UNLOCK;
-                return CONNECTION_ERROR_INVALID_OPERATION;
-        }
+       if (!net_info || false == __profile_ethernet_validate_eap_private_key_file(net_info)) {
+               CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
+               CONN_UNLOCK;
+               return CONNECTION_ERROR_INVALID_OPERATION;
+       }
 
-        *file = strdup(net_info->eap.private_key_filename);
-        if (*file == NULL)  {
-                CONN_UNLOCK; //LCOV_EXCL_LINE
-                return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
-        }
+       *file = strdup(net_info->eap.private_key_filename);
+       if (*file == NULL)  {
+               CONN_UNLOCK; //LCOV_EXCL_LINE
+               return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
+       }
 
-        CONN_UNLOCK;
-        return CONNECTION_ERROR_NONE;
+       CONN_UNLOCK;
+       return CONNECTION_ERROR_NONE;
 }
 
-EXPORT_API int connection_profile_set_ethernet_eap_private_key_info(connection_profile_h profile,
-                                const char *file, const char *password)
+EXPORT_API int connection_profile_set_ethernet_eap_private_key_info(connection_profile_h profile, const char *file, const char *password)
 {
-        CONN_LOCK;
+       CONN_LOCK;
 
-        CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
-                        TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
+       CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
+               TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
 
-        if (!_connection_libnet_check_profile_validity(profile) ||
-                        file == NULL || password == NULL) {
-                CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
-                CONN_UNLOCK;
-                return CONNECTION_ERROR_INVALID_PARAMETER;
-        }
+       if (!_connection_libnet_check_profile_validity(profile) || file == NULL || password == NULL) {
+               CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
+               CONN_UNLOCK;
+               return CONNECTION_ERROR_INVALID_PARAMETER;
+       }
 
-        net_profile_info_t *profile_info = profile;
-        net_dev_info_t *net_info = __profile_get_net_info(profile_info);
+       net_profile_info_t *profile_info = profile;
+       net_dev_info_t *net_info = __profile_get_net_info(profile_info);
 
-        if (!net_info || false == __profile_ethernet_validate_eap_private_key_file(net_info)) {
-                CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
-                CONN_UNLOCK;
-                return CONNECTION_ERROR_INVALID_OPERATION;
-        }
+       if (!net_info || false == __profile_ethernet_validate_eap_private_key_file(net_info)) {
+               CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
+               CONN_UNLOCK;
+               return CONNECTION_ERROR_INVALID_OPERATION;
+       }
 
-        g_strlcpy(net_info->eap.private_key_filename, file, NET_PRIVATE_KEY_FILENAME_LEN+1);
-        g_strlcpy(net_info->eap.private_key_passwd, password, NET_PRIVATE_KEY_PASSWD_LEN+1);
+       g_strlcpy(net_info->eap.private_key_filename, file, NET_PRIVATE_KEY_FILENAME_LEN+1);
+       g_strlcpy(net_info->eap.private_key_passwd, password, NET_PRIVATE_KEY_PASSWD_LEN+1);
 
-        CONN_UNLOCK;
-        return CONNECTION_ERROR_NONE;
+       CONN_UNLOCK;
+       return CONNECTION_ERROR_NONE;
 }
 
 EXPORT_API int connection_profile_set_ethernet_eap_anonymous_identity(connection_profile_h profile,
                                const char *anonymous_identity)
 {
-        CONN_LOCK;
+       CONN_LOCK;
 
-        CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
-                        TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
+       CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
+               TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
 
-        if (!_connection_libnet_check_profile_validity(profile) ||
-                      anonymous_identity == NULL ) {
-                CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
-                CONN_UNLOCK;
-                return CONNECTION_ERROR_INVALID_PARAMETER;
-        }
+       if (!_connection_libnet_check_profile_validity(profile) || anonymous_identity == NULL) {
+               CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
+               CONN_UNLOCK;
+               return CONNECTION_ERROR_INVALID_PARAMETER;
+       }
 
-        net_profile_info_t *profile_info = profile;
-        net_dev_info_t *net_info = __profile_get_net_info(profile_info);
+       net_profile_info_t *profile_info = profile;
+       net_dev_info_t *net_info = __profile_get_net_info(profile_info);
 
-        if (!net_info || false == __profile_ethernet_validate_eap_anonymous_identity(net_info)) {
-                CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
-                CONN_UNLOCK;
-                return CONNECTION_ERROR_INVALID_OPERATION;
-        }
+       if (!net_info || false == __profile_ethernet_validate_eap_anonymous_identity(net_info)) {
+               CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
+               CONN_UNLOCK;
+               return CONNECTION_ERROR_INVALID_OPERATION;
+       }
 
-        g_strlcpy(net_info->eap.anonymous_identity, anonymous_identity, NET_USERNAME_LEN+1);
+       g_strlcpy(net_info->eap.anonymous_identity, anonymous_identity, NET_USERNAME_LEN+1);
 
-        CONN_UNLOCK;
-        return CONNECTION_ERROR_NONE;
+       CONN_UNLOCK;
+       return CONNECTION_ERROR_NONE;
 }
 
 EXPORT_API int connection_profile_get_ethernet_eap_anonymous_identity(connection_profile_h profile,
                                char **anonymous_identity)
 {
-        CONN_LOCK;
+       CONN_LOCK;
 
-        CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
-                        TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
+       CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
+               TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
 
-        if (!_connection_libnet_check_profile_validity(profile) ||
-                       anonymous_identity == NULL ) {
-                CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
-                CONN_UNLOCK;
-                return CONNECTION_ERROR_INVALID_PARAMETER;
-        }
+       if (!_connection_libnet_check_profile_validity(profile) ||
+                       anonymous_identity == NULL) {
+               CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
+               CONN_UNLOCK;
+               return CONNECTION_ERROR_INVALID_PARAMETER;
+       }
 
-        net_profile_info_t *profile_info = profile;
-        net_dev_info_t *net_info = __profile_get_net_info(profile_info);
+       net_profile_info_t *profile_info = profile;
+       net_dev_info_t *net_info = __profile_get_net_info(profile_info);
 
-        if (!net_info || false == __profile_ethernet_validate_eap_anonymous_identity(net_info)) {
-                CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
-                CONN_UNLOCK;
-                return CONNECTION_ERROR_INVALID_OPERATION;
-        }
+       if (!net_info || false == __profile_ethernet_validate_eap_anonymous_identity(net_info)) {
+               CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
+               CONN_UNLOCK;
+               return CONNECTION_ERROR_INVALID_OPERATION;
+       }
 
-        *anonymous_identity= strdup(net_info->eap.anonymous_identity);
-        if (*anonymous_identity== NULL)  {
-                CONN_UNLOCK; //LCOV_EXCL_LINE
-                return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
-        }
+       *anonymous_identity = strdup(net_info->eap.anonymous_identity);
+       if (*anonymous_identity == NULL)  {
+               CONN_UNLOCK; //LCOV_EXCL_LINE
+               return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
+       }
 
-        CONN_UNLOCK;
-        return CONNECTION_ERROR_NONE;
+       CONN_UNLOCK;
+       return CONNECTION_ERROR_NONE;
 }
 
 EXPORT_API int connection_profile_set_ethernet_eap_pac_file(connection_profile_h profile,
                                const char *file)
 {
-        CONN_LOCK;
+       CONN_LOCK;
 
-        CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
-                        TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
+       CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
+               TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
 
-        if (!_connection_libnet_check_profile_validity(profile) ||
-                        file == NULL ) {
-                CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
-                CONN_UNLOCK;
-                return CONNECTION_ERROR_INVALID_PARAMETER;
-        }
+       if (!_connection_libnet_check_profile_validity(profile) ||
+               file == NULL) {
+               CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
+               CONN_UNLOCK;
+               return CONNECTION_ERROR_INVALID_PARAMETER;
+       }
 
-        net_profile_info_t *profile_info = profile;
-        net_dev_info_t *net_info = __profile_get_net_info(profile_info);
+       net_profile_info_t *profile_info = profile;
+       net_dev_info_t *net_info = __profile_get_net_info(profile_info);
 
-        if (!net_info || false == __profile_ethernet_validate_eap_pac_file(net_info)) {
-                CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
-                CONN_UNLOCK;
-                return CONNECTION_ERROR_INVALID_OPERATION;
-        }
+       if (!net_info || false == __profile_ethernet_validate_eap_pac_file(net_info)) {
+               CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
+               CONN_UNLOCK;
+               return CONNECTION_ERROR_INVALID_OPERATION;
+       }
 
-        g_strlcpy(net_info->eap.pac_filename, file, NET_PAC_FILENAME_LEN+1);
+       g_strlcpy(net_info->eap.pac_filename, file, NET_PAC_FILENAME_LEN+1);
 
-        CONN_UNLOCK;
-        return CONNECTION_ERROR_NONE;
+       CONN_UNLOCK;
+       return CONNECTION_ERROR_NONE;
 }
 
 EXPORT_API int connection_profile_get_ethernet_eap_pac_file(connection_profile_h profile,
                                char **file)
 {
-        CONN_LOCK;
+       CONN_LOCK;
 
-        CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
-                        TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
+       CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
+               TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
 
-        if (!_connection_libnet_check_profile_validity(profile) ||
-                        file == NULL ) {
-                CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
-                CONN_UNLOCK;
-                return CONNECTION_ERROR_INVALID_PARAMETER;
-        }
+       if (!_connection_libnet_check_profile_validity(profile) ||
+               file == NULL) {
+               CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
+               CONN_UNLOCK;
+               return CONNECTION_ERROR_INVALID_PARAMETER;
+       }
 
-        net_profile_info_t *profile_info = profile;
-        net_dev_info_t *net_info = __profile_get_net_info(profile_info);
+       net_profile_info_t *profile_info = profile;
+       net_dev_info_t *net_info = __profile_get_net_info(profile_info);
 
-        if (!net_info || false == __profile_ethernet_validate_eap_pac_file(net_info)) {
-                CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
-                CONN_UNLOCK;
-                return CONNECTION_ERROR_INVALID_OPERATION;
-        }
+       if (!net_info || false == __profile_ethernet_validate_eap_pac_file(net_info)) {
+               CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
+               CONN_UNLOCK;
+               return CONNECTION_ERROR_INVALID_OPERATION;
+       }
 
-        *file = strdup(net_info->eap.pac_filename);
-        if (*file == NULL)  {
-                CONN_UNLOCK; //LCOV_EXCL_LINE
-                return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
-        }
+       *file = strdup(net_info->eap.pac_filename);
+       if (*file == NULL)  {
+               CONN_UNLOCK; //LCOV_EXCL_LINE
+               return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
+       }
 
-        CONN_UNLOCK;
-        return CONNECTION_ERROR_NONE;
+       CONN_UNLOCK;
+       return CONNECTION_ERROR_NONE;
 }
 
 EXPORT_API int connection_profile_set_ethernet_eap_auth_type(connection_profile_h profile,
@@ -3345,12 +3340,12 @@ EXPORT_API int connection_profile_set_ethernet_eap_peap_version(connection_profi
        net_profile_info_t *profile_info = profile;
        net_dev_info_t *net_info = __profile_get_net_info(profile_info);
 
-        if (!net_info || false == __profile_ethernet_validate_eap_peap_version(net_info)) {
+       if (!net_info || false == __profile_ethernet_validate_eap_peap_version(net_info)) {
                CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
                CONN_UNLOCK;
                return CONNECTION_ERROR_INVALID_OPERATION;
        }
-       net_info->eap.peap_version= version;
+       net_info->eap.peap_version = version;
 
        CONN_UNLOCK;
        return CONNECTION_ERROR_NONE;
@@ -3373,7 +3368,7 @@ EXPORT_API int connection_profile_get_ethernet_eap_peap_version(connection_profi
        net_profile_info_t *profile_info = profile;
        net_dev_info_t *net_info = __profile_get_net_info(profile_info);
 
-        if (!net_info || false == __profile_ethernet_validate_eap_peap_version(net_info)) {
+       if (!net_info || false == __profile_ethernet_validate_eap_peap_version(net_info)) {
                CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
                CONN_UNLOCK;
                return CONNECTION_ERROR_INVALID_OPERATION;
index 7541231..3a1f310 100755 (executable)
@@ -1277,9 +1277,9 @@ int _connection_libnet_set_cellular_service_profile_async(connection_handle_s *c
 
        rv = net_set_default_cellular_service_profile_async(conn_handle->network_info_handle,
                                profile_info->profile_name);
-       if (rv == NET_ERR_ACCESS_DENIED) {
+       if (rv == NET_ERR_ACCESS_DENIED)
                return CONNECTION_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
-       else if (rv != NET_ERR_NONE)
+       else if (rv != NET_ERR_NONE)
                return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
 
        return CONNECTION_ERROR_NONE;
index 83e6ad3..033c4af 100755 (executable)
@@ -1028,10 +1028,8 @@ static void test_print_network_info(connection_profile_h profile, connection_add
 
        if (connection_profile_get_dhcp_lease_duration(profile, address_family, &dhcp_lease_duration) != CONNECTION_ERROR_NONE)
                printf("Fail to get DHCP lease duration!\n");
-       else {
+       else
                printf("DHCP lease duration : %d\n", dhcp_lease_duration);
-       }
-
        if (connection_profile_get_subnet_mask(profile, address_family, &subnet) != CONNECTION_ERROR_NONE)
                printf("Fail to get subnet mask!\n");
        else {
@@ -2353,10 +2351,8 @@ int test_is_metered_network(void)
 
 int test_start_tcpdump(void)
 {
-       if (connection_profile_start_tcpdump(connection) != CONNECTION_ERROR_NONE) {
+       if (connection_profile_start_tcpdump(connection) != CONNECTION_ERROR_NONE)
                return -1;
-       }
-
        printf("Successfully started tcpdump\n");
 
        return 1;
@@ -2364,10 +2360,8 @@ int test_start_tcpdump(void)
 
 int test_stop_tcpdump(void)
 {
-       if (connection_profile_stop_tcpdump(connection) != CONNECTION_ERROR_NONE) {
+       if (connection_profile_stop_tcpdump(connection) != CONNECTION_ERROR_NONE)
                return -1;
-       }
-
        printf("Successfully stopped tcpdump\n");
 
        return 1;
@@ -2377,10 +2371,8 @@ int test_get_tcpdump_state(void)
 {
        gboolean tcpdump_state = FALSE;
 
-       if (connection_profile_get_tcpdump_state(connection, &tcpdump_state) != CONNECTION_ERROR_NONE) {
+       if (connection_profile_get_tcpdump_state(connection, &tcpdump_state) != CONNECTION_ERROR_NONE)
                return -1;
-       }
-
        printf("tcpdump %s running\n", tcpdump_state ? "is" : "is not");
 
        return 1;
@@ -2633,7 +2625,7 @@ int test_ethernet_eap_connect(void)
                                return -1;
                        }
                }
-                break;
+               break;
 
        case CONNECTION_ETHERNET_EAP_TYPE_PEAP:
                {
@@ -2692,7 +2684,7 @@ int test_ethernet_eap_connect(void)
                                return -1;
                        }
                }
-                break;
+               break;
 
        case CONNECTION_ETHERNET_EAP_TYPE_TTLS:
                {
@@ -2741,7 +2733,7 @@ int test_ethernet_eap_connect(void)
                                return -1;
                        }
                }
-                break;
+               break;
 
        case CONNECTION_ETHERNET_EAP_TYPE_FAST:
                {
@@ -2790,7 +2782,7 @@ int test_ethernet_eap_connect(void)
                                return -1;
                        }
                }
-                break;
+               break;
 
        default:
                printf("Invalid EAP type\n");
@@ -2865,9 +2857,8 @@ int test_get_eapol_info(void)
                return -1;
 
        bool enabled = false;
-       if (connection_profile_is_ethernet_eap_enabled(profile, &enabled) != CONNECTION_ERROR_NONE) {
+       if (connection_profile_is_ethernet_eap_enabled(profile, &enabled) != CONNECTION_ERROR_NONE)
                printf("Failed to get ethernet eap enabled status!!\n");
-       }
        printf("EAP over Ethernet is %s\n", enabled ? "enabled" : "not enabled");
 
        if (connection_profile_get_name(profile, &profile_name) != CONNECTION_ERROR_NONE) {
index 7c88a02..65e235c 100755 (executable)
@@ -23,94 +23,94 @@ extern "C" {
 #endif
 
 #define assert(exp) \
-    do { \
-        if (!(exp)) { \
-            fprintf(stderr, \
-                "\n[TCT][%s][Line : %d] Assert Fail; Following expression is not true: %s\n", \
-                __FILE__, __LINE__, #exp); \
-            return 1; \
-        } \
-    } while (0)
+       do { \
+               if (!(exp)) { \
+                       fprintf(stderr, \
+                               "\n[TCT][%s][Line : %d] Assert Fail; Following expression is not true: %s\n", \
+                               __FILE__, __LINE__, #exp); \
+                       return 1; \
+               } \
+       } while (0)
 
 #define assert_eq(var, ref) \
-    do { \
-        if (var != ref) { \
-            fprintf(stderr, \
-                "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) and (%s == 0x%x) are not equal\n", \
-                __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \
-            return 1; \
-        } \
-    } while (0)
+       do { \
+               if (var != ref) { \
+                       fprintf(stderr, \
+                               "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) and (%s == 0x%x) are not equal\n", \
+                               __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \
+                       return 1; \
+               } \
+       } while (0)
 
 #define assert_eq_no_return(var, ref) \
-    do { \
-        if (var != ref) { \
-            fprintf(stderr, \
-                "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) and (%s == 0x%x) are not equal\n", \
-                __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \
-            return ; \
-        } \
-    } while (0)
+       do { \
+               if (var != ref) { \
+                       fprintf(stderr, \
+                               "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) and (%s == 0x%x) are not equal\n", \
+                               __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \
+                       return ; \
+               } \
+       } while (0)
 
 #define assert_neq_no_return(var, ref) \
-    do { \
-        if (var == ref) { \
-            fprintf(stderr, \
-                "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) and (%s == 0x%x) are equal\n", \
-                __FILE__, __LINE__,  #var, (int)var, #ref, (int)ref); \
-            return ; \
-        } \
-    } while (0)
+       do { \
+               if (var == ref) { \
+                       fprintf(stderr, \
+                               "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) and (%s == 0x%x) are equal\n", \
+                               __FILE__, __LINE__,  #var, (int)var, #ref, (int)ref); \
+                       return ; \
+               } \
+       } while (0)
 
 #define assert_neq(var, ref) \
-    do { \
-        if (var == ref) { \
-            fprintf(stderr, \
-                "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) and (%s == 0x%x) are equal\n", \
-                __FILE__, __LINE__,  #var, (int)var, #ref, (int)ref); \
-            return 1; \
-        } \
-    } while (0)
+       do { \
+               if (var == ref) { \
+                       fprintf(stderr, \
+                               "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) and (%s == 0x%x) are equal\n", \
+                               __FILE__, __LINE__,  #var, (int)var, #ref, (int)ref); \
+                       return 1; \
+               } \
+       } while (0)
 
 #define assert_gt(var, ref) \
-    do { \
-        if (var <= ref) { \
-            fprintf(stderr, \
-                "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) is not greater than (%s == 0x%x)\n", \
-            __FILE__, __LINE__,  #var, (int)var, #ref, (int)ref); \
-            return 1; \
-        } \
-    } while (0)
+       do { \
+               if (var <= ref) { \
+                       fprintf(stderr, \
+                               "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) is not greater than (%s == 0x%x)\n", \
+                               __FILE__, __LINE__,  #var, (int)var, #ref, (int)ref); \
+                       return 1; \
+               } \
+       } while (0)
 
 #define assert_geq(var, ref) \
-    do { \
-        if (var < ref) { \
-            fprintf(stderr, \
-                "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) is not greater than or equal to (%s == 0x%x)\n", \
-                __FILE__, __LINE__,  #var, (int)var, #ref, (int)ref); \
-            return 1; \
-        } \
-    } while (0)
+       do { \
+               if (var < ref) { \
+                       fprintf(stderr, \
+                               "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) is not greater than or equal to (%s == 0x%x)\n", \
+                               __FILE__, __LINE__,  #var, (int)var, #ref, (int)ref); \
+                       return 1; \
+               } \
+       } while (0)
 
 #define assert_lt(var, ref) \
-    do { \
-        if (var >= ref) { \
-            fprintf(stderr, \
-                "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) is not lower than (%s == 0x%x)\n", \
-                __FILE__, __LINE__,  #var, (int)var, #ref, (int)ref); \
-            return 1; \
-        } \
-    } while (0)
+       do { \
+               if (var >= ref) { \
+                       fprintf(stderr, \
+                               "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) is not lower than (%s == 0x%x)\n", \
+                               __FILE__, __LINE__,  #var, (int)var, #ref, (int)ref); \
+                       return 1; \
+               } \
+       } while (0)
 
 #define assert_leq(var, ref) \
-    do { \
-        if (var > ref) { \
-            fprintf(stderr, \
-                "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) is not lower than or equal to (%s == 0x%x)\n", \
-            __FILE__, __LINE__,  #var, (int)var, #ref, (int)ref); \
-            return 1; \
-        } \
-    } while (0)
+       do { \
+               if (var > ref) { \
+                       fprintf(stderr, \
+                               "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) is not lower than or equal to (%s == 0x%x)\n", \
+                               __FILE__, __LINE__,  #var, (int)var, #ref, (int)ref); \
+                       return 1; \
+               } \
+       } while (0)
 
 #ifdef __cplusplus
 }
index e23e7b3..ced442d 100755 (executable)
@@ -37,17 +37,16 @@ extern "C" {
 #endif
 
 #define FREE_MEMORY_TC(buffer) { \
-       if ( buffer != NULL ) \
-       { \
+       if (buffer != NULL) { \
                free(buffer); \
                buffer = NULL; \
        } \
 }
 
 #define PRINT_LOG(type, tag, ...) do { \
-    fprintf(stdout,  ##__VA_ARGS__ ); \
-    fprintf(stdout,  "\n" ); \
-} while(0)
+       fprintf(stdout,  ##__VA_ARGS__); \
+       fprintf(stdout,  "\n"); \
+} while (0)
 
 #ifdef __cplusplus
 }
index febac28..8726150 100755 (executable)
@@ -28,10 +28,10 @@ typedef int (*tc_fun_ptr)(void);
 
 /* struct describing specific testcase */
 typedef struct testcase_s {
-    const char* name;
-    tc_fun_ptr function;
-    void_fun_ptr startup;
-    void_fun_ptr cleanup;
+       const char* name;
+       tc_fun_ptr function;
+       void_fun_ptr startup;
+       void_fun_ptr cleanup;
 } testcase;
 
 #ifdef __cplusplus
index 89686fb..8674ba8 100755 (executable)
@@ -310,221 +310,221 @@ extern int utc_connection_profile_get_ethernet_eap_peap_version_p(void);
 extern int utc_connection_profile_get_ethernet_eap_peap_version_n(void);
 
 testcase tc_array[] = {
-    {"utc_connection_profile_create_p", utc_connection_profile_create_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_create_n", utc_connection_profile_create_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_clone_p", utc_connection_profile_clone_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_clone_n", utc_connection_profile_clone_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_name_p", utc_connection_profile_get_name_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_name_n", utc_connection_profile_get_name_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_id_p", utc_connection_profile_get_id_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_id_n", utc_connection_profile_get_id_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_type_p", utc_connection_profile_get_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_type_n", utc_connection_profile_get_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_network_interface_name_p", utc_connection_profile_get_network_interface_name_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_network_interface_name_n", utc_connection_profile_get_network_interface_name_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_state_p", utc_connection_profile_get_state_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_state_n", utc_connection_profile_get_state_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_ip_config_type_p", utc_connection_profile_get_ip_config_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_ip_config_type_n", utc_connection_profile_get_ip_config_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_ip_address_p", utc_connection_profile_get_ip_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_ip_address_n", utc_connection_profile_get_ip_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_subnet_mask_p", utc_connection_profile_get_subnet_mask_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_subnet_mask_n", utc_connection_profile_get_subnet_mask_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_gateway_address_p", utc_connection_profile_get_gateway_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_gateway_address_n", utc_connection_profile_get_gateway_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_dhcp_server_address_p", utc_connection_profile_get_dhcp_server_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_dhcp_server_address_n", utc_connection_profile_get_dhcp_server_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_dhcp_lease_duration_p", utc_connection_profile_get_dhcp_lease_duration_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_dhcp_lease_duration_n", utc_connection_profile_get_dhcp_lease_duration_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_dns_address_p", utc_connection_profile_get_dns_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_dns_address_n", utc_connection_profile_get_dns_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_proxy_type_p", utc_connection_profile_get_proxy_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_proxy_type_n", utc_connection_profile_get_proxy_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_proxy_address_p", utc_connection_profile_get_proxy_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_proxy_address_n", utc_connection_profile_get_proxy_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_ip_config_type_p", utc_connection_profile_set_ip_config_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_ip_config_type_n", utc_connection_profile_set_ip_config_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_ip_address_p", utc_connection_profile_set_ip_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_ip_address_n", utc_connection_profile_set_ip_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_subnet_mask_p", utc_connection_profile_set_subnet_mask_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_subnet_mask_n", utc_connection_profile_set_subnet_mask_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_gateway_address_p", utc_connection_profile_set_gateway_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_gateway_address_n", utc_connection_profile_set_gateway_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_dns_address_p", utc_connection_profile_set_dns_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_dns_address_n", utc_connection_profile_set_dns_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_proxy_type_p", utc_connection_profile_set_proxy_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_proxy_type_n", utc_connection_profile_set_proxy_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_proxy_address_p", utc_connection_profile_set_proxy_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_proxy_address_n", utc_connection_profile_set_proxy_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_state_changed_cb_p", utc_connection_profile_set_state_changed_cb_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_state_changed_cb_n", utc_connection_profile_set_state_changed_cb_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_unset_state_changed_cb_p", utc_connection_profile_unset_state_changed_cb_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_unset_state_changed_cb_n", utc_connection_profile_unset_state_changed_cb_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_cellular_service_type_p", utc_connection_profile_set_cellular_service_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_cellular_service_type_n", utc_connection_profile_set_cellular_service_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_cellular_apn_p", utc_connection_profile_set_cellular_apn_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_cellular_apn_n", utc_connection_profile_set_cellular_apn_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_cellular_auth_info_p", utc_connection_profile_set_cellular_auth_info_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_cellular_auth_info_n", utc_connection_profile_set_cellular_auth_info_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_cellular_home_url_p", utc_connection_profile_set_cellular_home_url_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_cellular_home_url_n", utc_connection_profile_set_cellular_home_url_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_cellular_pdn_type_p", utc_connection_profile_set_cellular_pdn_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_cellular_pdn_type_n", utc_connection_profile_set_cellular_pdn_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_cellular_roam_pdn_type_p", utc_connection_profile_set_cellular_roam_pdn_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_cellular_roam_pdn_type_n", utc_connection_profile_set_cellular_roam_pdn_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_cellular_service_type_p", utc_connection_profile_get_cellular_service_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_cellular_service_type_n", utc_connection_profile_get_cellular_service_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_cellular_apn_p", utc_connection_profile_get_cellular_apn_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_cellular_apn_n", utc_connection_profile_get_cellular_apn_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_cellular_auth_info_p", utc_connection_profile_get_cellular_auth_info_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_cellular_auth_info_n", utc_connection_profile_get_cellular_auth_info_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_cellular_home_url_p", utc_connection_profile_get_cellular_home_url_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_cellular_home_url_n", utc_connection_profile_get_cellular_home_url_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_cellular_pdn_type_p", utc_connection_profile_get_cellular_pdn_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_cellular_pdn_type_n", utc_connection_profile_get_cellular_pdn_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_cellular_roam_pdn_type_p", utc_connection_profile_get_cellular_roam_pdn_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_cellular_roam_pdn_type_n", utc_connection_profile_get_cellular_roam_pdn_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_is_cellular_roaming_p", utc_connection_profile_is_cellular_roaming_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_is_cellular_roaming_n", utc_connection_profile_is_cellular_roaming_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_is_cellular_hidden_p", utc_connection_profile_is_cellular_hidden_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_is_cellular_hidden_n", utc_connection_profile_is_cellular_hidden_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_is_cellular_editable_p", utc_connection_profile_is_cellular_editable_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_is_cellular_editable_n", utc_connection_profile_is_cellular_editable_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_is_cellular_default_p", utc_connection_profile_is_cellular_default_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_is_cellular_default_n", utc_connection_profile_is_cellular_default_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_refresh_p", utc_connection_profile_refresh_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_refresh_n", utc_connection_profile_refresh_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_wifi_essid_p", utc_connection_profile_get_wifi_essid_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_wifi_essid_n", utc_connection_profile_get_wifi_essid_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_wifi_bssid_p", utc_connection_profile_get_wifi_bssid_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_wifi_bssid_n", utc_connection_profile_get_wifi_bssid_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_wifi_rssi_p", utc_connection_profile_get_wifi_rssi_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_wifi_rssi_n", utc_connection_profile_get_wifi_rssi_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_wifi_frequency_p", utc_connection_profile_get_wifi_frequency_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_wifi_frequency_n", utc_connection_profile_get_wifi_frequency_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_wifi_max_speed_p", utc_connection_profile_get_wifi_max_speed_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_wifi_max_speed_n", utc_connection_profile_get_wifi_max_speed_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_wifi_security_type_p", utc_connection_profile_get_wifi_security_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_wifi_security_type_n", utc_connection_profile_get_wifi_security_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_wifi_encryption_type_p", utc_connection_profile_get_wifi_encryption_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_wifi_encryption_type_n", utc_connection_profile_get_wifi_encryption_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_is_wifi_passphrase_required_p", utc_connection_profile_is_wifi_passphrase_required_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_is_wifi_passphrase_required_n", utc_connection_profile_is_wifi_passphrase_required_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_wifi_passphrase_p", utc_connection_profile_set_wifi_passphrase_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_wifi_passphrase_n", utc_connection_profile_set_wifi_passphrase_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_is_wifi_wps_supported_p", utc_connection_profile_is_wifi_wps_supported_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_create_p", utc_connection_profile_create_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_create_n", utc_connection_profile_create_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_clone_p", utc_connection_profile_clone_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_clone_n", utc_connection_profile_clone_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_name_p", utc_connection_profile_get_name_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_name_n", utc_connection_profile_get_name_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_id_p", utc_connection_profile_get_id_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_id_n", utc_connection_profile_get_id_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_type_p", utc_connection_profile_get_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_type_n", utc_connection_profile_get_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_network_interface_name_p", utc_connection_profile_get_network_interface_name_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_network_interface_name_n", utc_connection_profile_get_network_interface_name_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_state_p", utc_connection_profile_get_state_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_state_n", utc_connection_profile_get_state_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_ip_config_type_p", utc_connection_profile_get_ip_config_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_ip_config_type_n", utc_connection_profile_get_ip_config_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_ip_address_p", utc_connection_profile_get_ip_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_ip_address_n", utc_connection_profile_get_ip_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_subnet_mask_p", utc_connection_profile_get_subnet_mask_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_subnet_mask_n", utc_connection_profile_get_subnet_mask_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_gateway_address_p", utc_connection_profile_get_gateway_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_gateway_address_n", utc_connection_profile_get_gateway_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_dhcp_server_address_p", utc_connection_profile_get_dhcp_server_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_dhcp_server_address_n", utc_connection_profile_get_dhcp_server_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_dhcp_lease_duration_p", utc_connection_profile_get_dhcp_lease_duration_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_dhcp_lease_duration_n", utc_connection_profile_get_dhcp_lease_duration_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_dns_address_p", utc_connection_profile_get_dns_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_dns_address_n", utc_connection_profile_get_dns_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_proxy_type_p", utc_connection_profile_get_proxy_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_proxy_type_n", utc_connection_profile_get_proxy_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_proxy_address_p", utc_connection_profile_get_proxy_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_proxy_address_n", utc_connection_profile_get_proxy_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_ip_config_type_p", utc_connection_profile_set_ip_config_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_ip_config_type_n", utc_connection_profile_set_ip_config_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_ip_address_p", utc_connection_profile_set_ip_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_ip_address_n", utc_connection_profile_set_ip_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_subnet_mask_p", utc_connection_profile_set_subnet_mask_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_subnet_mask_n", utc_connection_profile_set_subnet_mask_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_gateway_address_p", utc_connection_profile_set_gateway_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_gateway_address_n", utc_connection_profile_set_gateway_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_dns_address_p", utc_connection_profile_set_dns_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_dns_address_n", utc_connection_profile_set_dns_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_proxy_type_p", utc_connection_profile_set_proxy_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_proxy_type_n", utc_connection_profile_set_proxy_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_proxy_address_p", utc_connection_profile_set_proxy_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_proxy_address_n", utc_connection_profile_set_proxy_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_state_changed_cb_p", utc_connection_profile_set_state_changed_cb_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_state_changed_cb_n", utc_connection_profile_set_state_changed_cb_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_unset_state_changed_cb_p", utc_connection_profile_unset_state_changed_cb_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_unset_state_changed_cb_n", utc_connection_profile_unset_state_changed_cb_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_cellular_service_type_p", utc_connection_profile_set_cellular_service_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_cellular_service_type_n", utc_connection_profile_set_cellular_service_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_cellular_apn_p", utc_connection_profile_set_cellular_apn_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_cellular_apn_n", utc_connection_profile_set_cellular_apn_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_cellular_auth_info_p", utc_connection_profile_set_cellular_auth_info_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_cellular_auth_info_n", utc_connection_profile_set_cellular_auth_info_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_cellular_home_url_p", utc_connection_profile_set_cellular_home_url_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_cellular_home_url_n", utc_connection_profile_set_cellular_home_url_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_cellular_pdn_type_p", utc_connection_profile_set_cellular_pdn_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_cellular_pdn_type_n", utc_connection_profile_set_cellular_pdn_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_cellular_roam_pdn_type_p", utc_connection_profile_set_cellular_roam_pdn_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_cellular_roam_pdn_type_n", utc_connection_profile_set_cellular_roam_pdn_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_cellular_service_type_p", utc_connection_profile_get_cellular_service_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_cellular_service_type_n", utc_connection_profile_get_cellular_service_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_cellular_apn_p", utc_connection_profile_get_cellular_apn_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_cellular_apn_n", utc_connection_profile_get_cellular_apn_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_cellular_auth_info_p", utc_connection_profile_get_cellular_auth_info_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_cellular_auth_info_n", utc_connection_profile_get_cellular_auth_info_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_cellular_home_url_p", utc_connection_profile_get_cellular_home_url_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_cellular_home_url_n", utc_connection_profile_get_cellular_home_url_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_cellular_pdn_type_p", utc_connection_profile_get_cellular_pdn_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_cellular_pdn_type_n", utc_connection_profile_get_cellular_pdn_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_cellular_roam_pdn_type_p", utc_connection_profile_get_cellular_roam_pdn_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_cellular_roam_pdn_type_n", utc_connection_profile_get_cellular_roam_pdn_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_is_cellular_roaming_p", utc_connection_profile_is_cellular_roaming_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_is_cellular_roaming_n", utc_connection_profile_is_cellular_roaming_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_is_cellular_hidden_p", utc_connection_profile_is_cellular_hidden_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_is_cellular_hidden_n", utc_connection_profile_is_cellular_hidden_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_is_cellular_editable_p", utc_connection_profile_is_cellular_editable_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_is_cellular_editable_n", utc_connection_profile_is_cellular_editable_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_is_cellular_default_p", utc_connection_profile_is_cellular_default_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_is_cellular_default_n", utc_connection_profile_is_cellular_default_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_refresh_p", utc_connection_profile_refresh_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_refresh_n", utc_connection_profile_refresh_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_wifi_essid_p", utc_connection_profile_get_wifi_essid_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_wifi_essid_n", utc_connection_profile_get_wifi_essid_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_wifi_bssid_p", utc_connection_profile_get_wifi_bssid_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_wifi_bssid_n", utc_connection_profile_get_wifi_bssid_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_wifi_rssi_p", utc_connection_profile_get_wifi_rssi_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_wifi_rssi_n", utc_connection_profile_get_wifi_rssi_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_wifi_frequency_p", utc_connection_profile_get_wifi_frequency_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_wifi_frequency_n", utc_connection_profile_get_wifi_frequency_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_wifi_max_speed_p", utc_connection_profile_get_wifi_max_speed_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_wifi_max_speed_n", utc_connection_profile_get_wifi_max_speed_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_wifi_security_type_p", utc_connection_profile_get_wifi_security_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_wifi_security_type_n", utc_connection_profile_get_wifi_security_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_wifi_encryption_type_p", utc_connection_profile_get_wifi_encryption_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_wifi_encryption_type_n", utc_connection_profile_get_wifi_encryption_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_is_wifi_passphrase_required_p", utc_connection_profile_is_wifi_passphrase_required_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_is_wifi_passphrase_required_n", utc_connection_profile_is_wifi_passphrase_required_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_wifi_passphrase_p", utc_connection_profile_set_wifi_passphrase_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_wifi_passphrase_n", utc_connection_profile_set_wifi_passphrase_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_is_wifi_wps_supported_p", utc_connection_profile_is_wifi_wps_supported_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
        {"utc_connection_profile_is_wifi_wps_supported_n", utc_connection_profile_is_wifi_wps_supported_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_ipv6_state_p", utc_connection_profile_get_ipv6_state_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_ipv6_state_n", utc_connection_profile_get_ipv6_state_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_prefix_length_p", utc_connection_profile_get_prefix_length_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_prefix_length_n", utc_connection_profile_get_prefix_length_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_prefix_length_p", utc_connection_profile_set_prefix_length_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_prefix_length_n", utc_connection_profile_set_prefix_length_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_dns_config_type_p", utc_connection_profile_get_dns_config_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_get_dns_config_type_n", utc_connection_profile_get_dns_config_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_dns_config_type_p", utc_connection_profile_set_dns_config_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_set_dns_config_type_n", utc_connection_profile_set_dns_config_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_destroy_p", utc_connection_profile_destroy_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_profile_destroy_n", utc_connection_profile_destroy_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
-    {"utc_connection_create_p", utc_connection_create_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_create_n", utc_connection_create_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_get_ip_address_p", utc_connection_get_ip_address_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_get_ip_address_n", utc_connection_get_ip_address_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_get_proxy_p", utc_connection_get_proxy_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_get_proxy_n", utc_connection_get_proxy_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_get_type_n", utc_connection_get_type_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_get_type_p", utc_connection_get_type_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_is_metered_network_n", utc_connection_is_metered_network_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_is_metered_network_p", utc_connection_is_metered_network_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_get_cellular_state_n", utc_connection_get_cellular_state_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_get_cellular_state_p", utc_connection_get_cellular_state_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_get_ethernet_state_n", utc_connection_get_ethernet_state_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_get_ethernet_state_p", utc_connection_get_ethernet_state_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_get_wifi_state_n", utc_connection_get_wifi_state_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_get_wifi_state_p", utc_connection_get_wifi_state_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_get_bt_state_n", utc_connection_get_bt_state_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_get_bt_state_p", utc_connection_get_bt_state_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_get_mac_address_n", utc_connection_get_mac_address_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_get_mac_address_p", utc_connection_get_mac_address_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_set_ethernet_cable_state_chaged_cb_n", utc_connection_set_ethernet_cable_state_chaged_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_profile_get_ipv6_state_p", utc_connection_profile_get_ipv6_state_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_ipv6_state_n", utc_connection_profile_get_ipv6_state_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_prefix_length_p", utc_connection_profile_get_prefix_length_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_prefix_length_n", utc_connection_profile_get_prefix_length_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_prefix_length_p", utc_connection_profile_set_prefix_length_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_prefix_length_n", utc_connection_profile_set_prefix_length_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_dns_config_type_p", utc_connection_profile_get_dns_config_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_get_dns_config_type_n", utc_connection_profile_get_dns_config_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_dns_config_type_p", utc_connection_profile_set_dns_config_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_set_dns_config_type_n", utc_connection_profile_set_dns_config_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_destroy_p", utc_connection_profile_destroy_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_profile_destroy_n", utc_connection_profile_destroy_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+       {"utc_connection_create_p", utc_connection_create_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_create_n", utc_connection_create_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_get_ip_address_p", utc_connection_get_ip_address_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_get_ip_address_n", utc_connection_get_ip_address_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_get_proxy_p", utc_connection_get_proxy_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_get_proxy_n", utc_connection_get_proxy_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_get_type_n", utc_connection_get_type_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_get_type_p", utc_connection_get_type_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_is_metered_network_n", utc_connection_is_metered_network_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_is_metered_network_p", utc_connection_is_metered_network_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_get_cellular_state_n", utc_connection_get_cellular_state_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_get_cellular_state_p", utc_connection_get_cellular_state_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_get_ethernet_state_n", utc_connection_get_ethernet_state_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_get_ethernet_state_p", utc_connection_get_ethernet_state_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_get_wifi_state_n", utc_connection_get_wifi_state_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_get_wifi_state_p", utc_connection_get_wifi_state_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_get_bt_state_n", utc_connection_get_bt_state_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_get_bt_state_p", utc_connection_get_bt_state_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_get_mac_address_n", utc_connection_get_mac_address_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_get_mac_address_p", utc_connection_get_mac_address_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_set_ethernet_cable_state_chaged_cb_n", utc_connection_set_ethernet_cable_state_chaged_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
        {"utc_connection_set_ethernet_cable_state_chaged_cb_p", utc_connection_set_ethernet_cable_state_chaged_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_unset_ethernet_cable_state_chaged_cb_n", utc_connection_unset_ethernet_cable_state_chaged_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_unset_ethernet_cable_state_chaged_cb_n", utc_connection_unset_ethernet_cable_state_chaged_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
        {"utc_connection_unset_ethernet_cable_state_chaged_cb_p", utc_connection_unset_ethernet_cable_state_chaged_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_get_ethernet_cable_state_n", utc_connection_get_ethernet_cable_state_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_get_ethernet_cable_state_p", utc_connection_get_ethernet_cable_state_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_get_current_profile_p", utc_connection_get_current_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_get_current_profile_n", utc_connection_get_current_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_get_default_cellular_service_profile_p", utc_connection_get_default_cellular_service_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_get_default_cellular_service_profile_n", utc_connection_get_default_cellular_service_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_set_default_cellular_service_profile_p", utc_connection_set_default_cellular_service_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_set_default_cellular_service_profile_n", utc_connection_set_default_cellular_service_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_set_default_cellular_service_profile_async_p", utc_connection_set_default_cellular_service_profile_async_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_set_default_cellular_service_profile_async_n", utc_connection_set_default_cellular_service_profile_async_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_set_type_changed_cb_n", utc_connection_set_type_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_set_type_changed_cb_p", utc_connection_set_type_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_unset_type_changed_cb_n", utc_connection_unset_type_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_unset_type_changed_cb_p", utc_connection_unset_type_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_set_ip_address_changed_cb_n", utc_connection_set_ip_address_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_set_ip_address_changed_cb_p", utc_connection_set_ip_address_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_unset_ip_address_changed_cb_n", utc_connection_unset_ip_address_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_unset_ip_address_changed_cb_p", utc_connection_unset_ip_address_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_set_proxy_address_changed_cb_n", utc_connection_set_proxy_address_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_set_proxy_address_changed_cb_p", utc_connection_set_proxy_address_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_unset_proxy_address_changed_cb_n", utc_connection_unset_proxy_address_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_unset_proxy_address_changed_cb_p", utc_connection_unset_proxy_address_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_get_statistics_p", utc_connection_get_statistics_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_get_statistics_n", utc_connection_get_statistics_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_reset_statistics_p", utc_connection_reset_statistics_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_reset_statistics_n", utc_connection_reset_statistics_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_add_route_n", utc_connection_add_route_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_add_route_p", utc_connection_add_route_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_remove_route_n", utc_connection_remove_route_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_remove_route_p", utc_connection_remove_route_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_add_route_ipv6_n", utc_connection_add_route_ipv6_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_add_route_ipv6_p", utc_connection_add_route_ipv6_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_remove_route_ipv6_n", utc_connection_remove_route_ipv6_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_remove_route_ipv6_p", utc_connection_remove_route_ipv6_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_get_ethernet_cable_state_n", utc_connection_get_ethernet_cable_state_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_get_ethernet_cable_state_p", utc_connection_get_ethernet_cable_state_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_get_current_profile_p", utc_connection_get_current_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_get_current_profile_n", utc_connection_get_current_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_get_default_cellular_service_profile_p", utc_connection_get_default_cellular_service_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_get_default_cellular_service_profile_n", utc_connection_get_default_cellular_service_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_set_default_cellular_service_profile_p", utc_connection_set_default_cellular_service_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_set_default_cellular_service_profile_n", utc_connection_set_default_cellular_service_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_set_default_cellular_service_profile_async_p", utc_connection_set_default_cellular_service_profile_async_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_set_default_cellular_service_profile_async_n", utc_connection_set_default_cellular_service_profile_async_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_set_type_changed_cb_n", utc_connection_set_type_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_set_type_changed_cb_p", utc_connection_set_type_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_unset_type_changed_cb_n", utc_connection_unset_type_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_unset_type_changed_cb_p", utc_connection_unset_type_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_set_ip_address_changed_cb_n", utc_connection_set_ip_address_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_set_ip_address_changed_cb_p", utc_connection_set_ip_address_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_unset_ip_address_changed_cb_n", utc_connection_unset_ip_address_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_unset_ip_address_changed_cb_p", utc_connection_unset_ip_address_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_set_proxy_address_changed_cb_n", utc_connection_set_proxy_address_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_set_proxy_address_changed_cb_p", utc_connection_set_proxy_address_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_unset_proxy_address_changed_cb_n", utc_connection_unset_proxy_address_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_unset_proxy_address_changed_cb_p", utc_connection_unset_proxy_address_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_get_statistics_p", utc_connection_get_statistics_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_get_statistics_n", utc_connection_get_statistics_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_reset_statistics_p", utc_connection_reset_statistics_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_reset_statistics_n", utc_connection_reset_statistics_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_add_route_n", utc_connection_add_route_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_add_route_p", utc_connection_add_route_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_remove_route_n", utc_connection_remove_route_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_remove_route_p", utc_connection_remove_route_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_add_route_ipv6_n", utc_connection_add_route_ipv6_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_add_route_ipv6_p", utc_connection_add_route_ipv6_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_remove_route_ipv6_n", utc_connection_remove_route_ipv6_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_remove_route_ipv6_p", utc_connection_remove_route_ipv6_p, utc_network_connection_startup, utc_network_connection_cleanup},
        {"utc_connection_add_route_entry_n", utc_connection_add_route_entry_n, utc_network_connection_startup, utc_network_connection_cleanup},
        {"utc_connection_add_route_entry_p", utc_connection_add_route_entry_p, utc_network_connection_startup, utc_network_connection_cleanup},
        {"utc_connection_remove_route_entry_n", utc_connection_remove_route_entry_n, utc_network_connection_startup, utc_network_connection_cleanup},
        {"utc_connection_remove_route_entry_p", utc_connection_remove_route_entry_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_get_profile_iterator_n", utc_connection_get_profile_iterator_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_get_profile_iterator_p", utc_connection_get_profile_iterator_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_destroy_profile_iterator_n", utc_connection_destroy_profile_iterator_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_destroy_profile_iterator_p", utc_connection_destroy_profile_iterator_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_profile_iterator_has_next_n", utc_connection_profile_iterator_has_next_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_profile_iterator_has_next_p", utc_connection_profile_iterator_has_next_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_profile_iterator_next_n", utc_connection_profile_iterator_next_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_profile_iterator_next_p", utc_connection_profile_iterator_next_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_add_profile_p", utc_connection_add_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_add_profile_n", utc_connection_add_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_close_profile_p", utc_connection_close_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_close_profile_n", utc_connection_close_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_update_profile_p", utc_connection_update_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_update_profile_n", utc_connection_update_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_remove_profile_p", utc_connection_remove_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_remove_profile_n", utc_connection_remove_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_open_profile_p", utc_connection_open_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_open_profile_n", utc_connection_open_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_reset_profile_p", utc_connection_reset_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_reset_profile_n", utc_connection_reset_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_foreach_ipv6_address_p", utc_connection_foreach_ipv6_address_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_foreach_ipv6_address_n", utc_connection_foreach_ipv6_address_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_get_profile_iterator_n", utc_connection_get_profile_iterator_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_get_profile_iterator_p", utc_connection_get_profile_iterator_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_destroy_profile_iterator_n", utc_connection_destroy_profile_iterator_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_destroy_profile_iterator_p", utc_connection_destroy_profile_iterator_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_profile_iterator_has_next_n", utc_connection_profile_iterator_has_next_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_profile_iterator_has_next_p", utc_connection_profile_iterator_has_next_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_profile_iterator_next_n", utc_connection_profile_iterator_next_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_profile_iterator_next_p", utc_connection_profile_iterator_next_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_add_profile_p", utc_connection_add_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_add_profile_n", utc_connection_add_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_close_profile_p", utc_connection_close_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_close_profile_n", utc_connection_close_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_update_profile_p", utc_connection_update_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_update_profile_n", utc_connection_update_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_remove_profile_p", utc_connection_remove_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_remove_profile_n", utc_connection_remove_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_open_profile_p", utc_connection_open_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_open_profile_n", utc_connection_open_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_reset_profile_p", utc_connection_reset_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_reset_profile_n", utc_connection_reset_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_foreach_ipv6_address_p", utc_connection_foreach_ipv6_address_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_foreach_ipv6_address_n", utc_connection_foreach_ipv6_address_n, utc_network_connection_startup, utc_network_connection_cleanup},
        {"utc_connection_set_ethernet_cable_state_changed_cb_n", utc_connection_set_ethernet_cable_state_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
        {"utc_connection_set_ethernet_cable_state_changed_cb_p", utc_connection_set_ethernet_cable_state_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
        {"utc_connection_unset_ethernet_cable_state_changed_cb_n", utc_connection_unset_ethernet_cable_state_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
        {"utc_connection_unset_ethernet_cable_state_changed_cb_p", utc_connection_unset_ethernet_cable_state_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_set_internet_state_changed_cb_p", utc_connection_set_internet_state_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_set_internet_state_changed_cb_n1", utc_connection_set_internet_state_changed_cb_n1, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_set_internet_state_changed_cb_n2", utc_connection_set_internet_state_changed_cb_n2, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_unset_internet_state_changed_cb_p", utc_connection_unset_internet_state_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_unset_internet_state_changed_cb_n", utc_connection_unset_internet_state_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_profile_get_internet_state_p", utc_connection_profile_get_internet_state_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_profile_get_internet_state_n1", utc_connection_profile_get_internet_state_n1, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_profile_get_internet_state_n2", utc_connection_profile_get_internet_state_n2, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_destroy_p", utc_connection_destroy_p, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_destroy_n", utc_connection_destroy_n, utc_network_connection_startup, utc_network_connection_cleanup},
-    {"utc_connection_profile_start_tcpdump_p", utc_connection_profile_start_tcpdump_p, utc_connection_extension_startup, utc_connection_extension_cleanup},
+       {"utc_connection_set_internet_state_changed_cb_p", utc_connection_set_internet_state_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_set_internet_state_changed_cb_n1", utc_connection_set_internet_state_changed_cb_n1, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_set_internet_state_changed_cb_n2", utc_connection_set_internet_state_changed_cb_n2, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_unset_internet_state_changed_cb_p", utc_connection_unset_internet_state_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_unset_internet_state_changed_cb_n", utc_connection_unset_internet_state_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_profile_get_internet_state_p", utc_connection_profile_get_internet_state_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_profile_get_internet_state_n1", utc_connection_profile_get_internet_state_n1, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_profile_get_internet_state_n2", utc_connection_profile_get_internet_state_n2, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_destroy_p", utc_connection_destroy_p, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_destroy_n", utc_connection_destroy_n, utc_network_connection_startup, utc_network_connection_cleanup},
+       {"utc_connection_profile_start_tcpdump_p", utc_connection_profile_start_tcpdump_p, utc_connection_extension_startup, utc_connection_extension_cleanup},
        {"utc_connection_profile_start_tcpdump_n", utc_connection_profile_start_tcpdump_n, utc_connection_extension_startup, utc_connection_extension_cleanup},
        {"utc_connection_profile_stop_tcpdump_p", utc_connection_profile_stop_tcpdump_p, utc_connection_extension_startup, utc_connection_extension_cleanup},
        {"utc_connection_profile_stop_tcpdump_n", utc_connection_profile_stop_tcpdump_n, utc_connection_extension_startup, utc_connection_extension_cleanup},
@@ -592,7 +592,7 @@ testcase tc_array[] = {
        {"utc_connection_profile_set_ethernet_eap_peap_version_n", utc_connection_profile_set_ethernet_eap_peap_version_n, utc_connection_extension_startup, utc_connection_extension_cleanup},
        {"utc_connection_profile_get_ethernet_eap_peap_version_p", utc_connection_profile_get_ethernet_eap_peap_version_p, utc_connection_extension_startup, utc_connection_extension_cleanup},
        {"utc_connection_profile_get_ethernet_eap_peap_version_n", utc_connection_profile_get_ethernet_eap_peap_version_n, utc_connection_extension_startup, utc_connection_extension_cleanup},
-    {NULL, NULL}
+       {NULL, NULL}
 };
 
 #endif // __TCT_CONNECTION_CORE_H__
index 97860f4..12c8446 100755 (executable)
@@ -72,11 +72,8 @@ bool connection_check_feature_supported(char *key)
 {
        bool value = false;
        int ret = system_info_get_platform_bool(key, &value);
-
-       if (ret != SYSTEM_INFO_ERROR_NONE) {
+       if (ret != SYSTEM_INFO_ERROR_NONE)
                return false;
-       }
-
        return value;
 }
 
@@ -87,17 +84,17 @@ int test_get_any_profile(connection_profile_h *profile)
 
        int  rv = connection_get_profile_iterator(connection, CONNECTION_ITERATOR_TYPE_REGISTERED, &profile_iter);
        PRINT_RETURN("connection_get_profile_iterator", rv);
-       if(CONNECTION_ERROR_NONE != rv)
+       if (CONNECTION_ERROR_NONE != rv)
                return -1;
 
        rv = connection_profile_iterator_next(profile_iter, &profile_h);
        PRINT_RETURN("connection_profile_iterator_next", rv);
-       if(CONNECTION_ERROR_NONE != rv)
+       if (CONNECTION_ERROR_NONE != rv)
                return -1;
 
        rv = connection_profile_clone(profile, profile_h);
        PRINT_RETURN("connection_profile_clone", rv);
-       if(CONNECTION_ERROR_NONE != rv)
+       if (CONNECTION_ERROR_NONE != rv)
                return -1;
 
        return 1;
index e1293d5..7f2ce11 100755 (executable)
@@ -57,60 +57,59 @@ connection_profile_h profile_wifi;
 connection_profile_h profile_temp;
 connection_h connection;
 
-#define RUN_GMAIN_LOOP {\
-       g_pMainLoop = g_main_loop_new(NULL, false);\
-       g_nTimeoutId = g_timeout_add(GMAINTIMEOUT, test_connection_timeout_callback, g_pMainLoop);\
-       if (COMMON_DEBUG) {\
-               PRINT_LOG(DLOG_INFO, "NativeTCT", "[Line:%5d][%s] Run mainloop [%p]",\
-                       __LINE__, __FUNCTION__, g_pMainLoop);\
-       }\
-       g_main_loop_run(g_pMainLoop);\
-       g_source_remove(g_nTimeoutId);\
-       g_pMainLoop = NULL;\
+#define RUN_GMAIN_LOOP { \
+       g_pMainLoop = g_main_loop_new(NULL, false); \
+       g_nTimeoutId = g_timeout_add(GMAINTIMEOUT, test_connection_timeout_callback, g_pMainLoop); \
+       if (COMMON_DEBUG) { \
+               PRINT_LOG(DLOG_INFO, "NativeTCT", "[Line:%5d][%s] Run mainloop [%p]", \
+                               __LINE__, __FUNCTION__, g_pMainLoop); \
+       } \
+       g_main_loop_run(g_pMainLoop); \
+       g_source_remove(g_nTimeoutId); \
+       g_pMainLoop = NULL; \
 }
 
-#define QUIT_GMAIN_LOOP {\
-       if (g_pMainLoop)\
-{\
-       if (COMMON_DEBUG) {\
-               PRINT_LOG(DLOG_INFO, "NativeTCT", "[Line:%5d][%s] Quit mainloop [%p]",\
-                       __LINE__, __FUNCTION__, g_pMainLoop);\
-       }\
-       g_main_loop_quit(g_pMainLoop);\
-}\
+#define QUIT_GMAIN_LOOP { \
+       if (g_pMainLoop) { \
+               if (COMMON_DEBUG) { \
+                       PRINT_LOG(DLOG_INFO, "NativeTCT", "[Line:%5d][%s] Quit mainloop [%p]", \
+                                       __LINE__, __FUNCTION__, g_pMainLoop); \
+               } \
+               g_main_loop_quit(g_pMainLoop); \
+       } \
 }
 
-#define FREE_RESOURCE(var) {\
-       if(var != NULL) {\
-               g_free(var);\
-               var = NULL;\
-       }\
+#define FREE_RESOURCE(var) { \
+       if (var != NULL) { \
+               g_free(var); \
+               var = NULL; \
+       } \
 }
 
-#define PRINT_RETURN(api, ret) {\
-       if (COMMON_DEBUG) {\
-               PRINT_LOG(DLOG_INFO, "NativeTCT", "[Line:%5d][%s] %s returned = %s",\
-                       __LINE__, __FUNCTION__, api, connection_get_error(ret));\
-       }\
+#define PRINT_RETURN(api, ret) { \
+       if (COMMON_DEBUG) { \
+               PRINT_LOG(DLOG_INFO, "NativeTCT", "[Line:%5d][%s] %s returned = %s", \
+                               __LINE__, __FUNCTION__, api, connection_get_error(ret)); \
+       } \
 }
 
-#define CHECK_RETURN(api, ret, val) {\
-       if (ret != val) {\
-               if (COMMON_DEBUG) {\
-                       PRINT_LOG(DLOG_INFO, "NativeTCT", "[Line:%5d][%s] %s failed, error returned = %s",\
-                               __LINE__, __FUNCTION__, api, connection_get_error(ret));\
-               }\
-               return 1;\
-       } else {\
-               if (COMMON_DEBUG) {\
-                       PRINT_LOG(DLOG_INFO, "NativeTCT", "[Line:%5d][%s] %s",\
-                               __LINE__, __FUNCTION__, api);\
-               }\
-       }\
-}
-
-#define DEBUG_LOG {\
-       PRINT_LOG(DLOG_INFO, "NativeTCT", "[Line:%5d][%s] ***** DEBUG *****", __LINE__, __FUNCTION__);\
+#define CHECK_RETURN(api, ret, val) ({ \
+       if (ret != val) { \
+               if (COMMON_DEBUG) { \
+                       PRINT_LOG(DLOG_INFO, "NativeTCT", "[Line:%5d][%s] %s failed, error returned = %s", \
+                                       __LINE__, __FUNCTION__, api, connection_get_error(ret)); \
+               } \
+               return 1; \
+       } else { \
+               if (COMMON_DEBUG) { \
+                       PRINT_LOG(DLOG_INFO, "NativeTCT", "[Line:%5d][%s] %s", \
+                                       __LINE__, __FUNCTION__, api); \
+               } \
+       } \
+})
+
+#define DEBUG_LOG { \
+       PRINT_LOG(DLOG_INFO, "NativeTCT", "[Line:%5d][%s] ***** DEBUG *****", __LINE__, __FUNCTION__); \
 }
 
 gboolean test_connection_timeout_callback(gpointer data);
index 8c0d998..28fa478 100755 (executable)
@@ -118,10 +118,10 @@ void utc_connection_profile_cleanup(void)
 
 /**
  * @testcase           utc_connection_profile_create_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Creates a profile handle.
- * @scenario           Invoking connection_profile_create with valid parameter.
+ * @scenario           Invoking connection_profile_create with valid parameter.
  */
 int utc_connection_profile_create_p(void)
 {
@@ -146,10 +146,10 @@ int utc_connection_profile_create_p(void)
 
 /**
  * @testcase           utc_connection_profile_create_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                should not creates a profile handle.
- * @scenario           Verify connection_profile_create by passing invalid parameter.
+ * @scenario           Verify connection_profile_create by passing invalid parameter.
  */
 int utc_connection_profile_create_n(void)
 {
@@ -179,10 +179,10 @@ int utc_connection_profile_create_n(void)
 
 /**
  * @testcase           utc_connection_profile_clone_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Clones a profile handle.
- * @scenario           Verify connection_profile_clone with valid parameter and destroy it.
+ * @scenario           Verify connection_profile_clone with valid parameter and destroy it.
  */
 int utc_connection_profile_clone_p(void)
 {
@@ -212,10 +212,10 @@ int utc_connection_profile_clone_p(void)
 
 /**
  * @testcase           utc_connection_profile_clone_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                should not Clones a profile handle.
- * @scenario           Verify connection_profile_clone by passing invalid parameters.
+ * @scenario           Verify connection_profile_clone by passing invalid parameters.
  */
 int utc_connection_profile_clone_n(void)
 {
@@ -241,10 +241,10 @@ int utc_connection_profile_clone_n(void)
 
 /**
  * @testcase           utc_connection_profile_get_name_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the profile name.
- * @scenario           Get the profile name by invoking connection_profile_get_name with a valid parameter.
+ * @scenario           Get the profile name by invoking connection_profile_get_name with a valid parameter.
  */
 int utc_connection_profile_get_name_p(void)
 {
@@ -276,10 +276,10 @@ int utc_connection_profile_get_name_p(void)
 
 /**
  * @testcase           utc_connection_profile_get_name_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                should not return profile handle.
- * @scenario           Verify connection_profile_get_name by passing invalid profile handle.
+ * @scenario           Verify connection_profile_get_name by passing invalid profile handle.
  */
 int utc_connection_profile_get_name_n(void)
 {
@@ -307,10 +307,10 @@ int utc_connection_profile_get_name_n(void)
 
 /**
  * @testcase           utc_connection_profile_get_id_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the profile ID.
- * @scenario           Invoking connection_profile_get_id with valid profile handle.
+ * @scenario           Invoking connection_profile_get_id with valid profile handle.
  */
 int utc_connection_profile_get_id_p(void)
 {
@@ -337,16 +337,16 @@ int utc_connection_profile_get_id_p(void)
 
 /**
  * @testcase           utc_connection_profile_get_id_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                should not return profile ID.
- * @scenario           Verify connection_profile_get_id by passing invalid parameter..
+ * @scenario           Verify connection_profile_get_id by passing invalid parameter..
  */
 int utc_connection_profile_get_id_n(void)
 {
        int ret;
-    char *id = NULL;
-    connection_profile_h profile_inval = NULL;
+       char *id = NULL;
+       connection_profile_h profile_inval = NULL;
 
        if (all_features_not_supported) {
                ret = connection_profile_get_id(profile_inval, NULL);
@@ -354,23 +354,23 @@ int utc_connection_profile_get_id_n(void)
                return 0;
        }
 
-    ret = connection_profile_get_id(profile_inval, NULL);
-    CHECK_RETURN("connection_profile_get_id", ret, CONNECTION_ERROR_INVALID_PARAMETER);
-    ret = connection_profile_get_id(profile_inval, &id);
-    CHECK_RETURN("connection_profile_get_id", ret, CONNECTION_ERROR_INVALID_PARAMETER);
-    ret = connection_profile_get_id(profile_cellular, NULL);
-    CHECK_RETURN("connection_profile_get_id", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+       ret = connection_profile_get_id(profile_inval, NULL);
+       CHECK_RETURN("connection_profile_get_id", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+       ret = connection_profile_get_id(profile_inval, &id);
+       CHECK_RETURN("connection_profile_get_id", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+       ret = connection_profile_get_id(profile_cellular, NULL);
+       CHECK_RETURN("connection_profile_get_id", ret, CONNECTION_ERROR_INVALID_PARAMETER);
 
-    return 0;
+       return 0;
 }
 
 
 /**
  * @testcase           utc_connection_profile_get_type_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the network type.
- * @scenario           connection_profile_get_type should return profile type.
+ * @scenario           connection_profile_get_type should return profile type.
  */
 int utc_connection_profile_get_type_p(void)
 {
@@ -392,10 +392,10 @@ int utc_connection_profile_get_type_p(void)
 
 /**
  * @testcase           utc_connection_profile_get_type_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                should not get the network type.
- * @scenario           Verify connection_profile_get_type by passing invalid parameter.
+ * @scenario           Verify connection_profile_get_type by passing invalid parameter.
  */
 int utc_connection_profile_get_type_n(void)
 {
@@ -421,10 +421,10 @@ int utc_connection_profile_get_type_n(void)
 
 /**
  * @testcase           utc_connection_profile_get_network_interface_name_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the name of the network interface, e.g. eth0 and pdp0.
- * @scenario           Invoking connection_profile_get_network_interface_name with valid parameter.
+ * @scenario           Invoking connection_profile_get_network_interface_name with valid parameter.
  */
 int utc_connection_profile_get_network_interface_name_p(void)
 {
@@ -448,10 +448,10 @@ int utc_connection_profile_get_network_interface_name_p(void)
 
 /**
  * @testcase           utc_connection_profile_get_network_interface_name_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                should not get the name of the network interface.
- * @scenario           Verify connection_profile_get_network_interface_name by passing invalid parameter.
+ * @scenario           Verify connection_profile_get_network_interface_name by passing invalid parameter.
  */
 int utc_connection_profile_get_network_interface_name_n(void)
 {
@@ -477,10 +477,10 @@ int utc_connection_profile_get_network_interface_name_n(void)
 
 /**
  * @testcase           utc_connection_profile_get_state_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the network type and the state of the profile.
- * @scenario           Verify connection_profile_get_state with valid parameter.
+ * @scenario           Verify connection_profile_get_state with valid parameter.
  */
 int utc_connection_profile_get_state_p(void)
 {
@@ -502,10 +502,10 @@ int utc_connection_profile_get_state_p(void)
 
 /**
  * @testcase           utc_connection_profile_get_state_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                should not get the state of the profile.
- * @scenario           Verify connection_profile_get_state by passing invalid parameter.
+ * @scenario           Verify connection_profile_get_state by passing invalid parameter.
  */
 int utc_connection_profile_get_state_n(void)
 {
@@ -531,10 +531,10 @@ int utc_connection_profile_get_state_n(void)
 
 /**
  * @testcase           utc_connection_profile_get_ip_config_type_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the IP config type.Should return the type of the IP config.
- * @scenario           Invoking connection_profile_get_ip_config_type with valid parameter.
+ * @scenario           Invoking connection_profile_get_ip_config_type with valid parameter.
  */
 int utc_connection_profile_get_ip_config_type_p(void)
 {
@@ -556,10 +556,10 @@ int utc_connection_profile_get_ip_config_type_p(void)
 
 /**
  * @testcase           utc_connection_profile_get_ip_config_type_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                should not return the type of the IP config.
- * @scenario           Verify connection_profile_get_ip_config_type by passing invalid parameter..
+ * @scenario           Verify connection_profile_get_ip_config_type by passing invalid parameter..
  */
 int utc_connection_profile_get_ip_config_type_n(void)
 {
@@ -591,10 +591,10 @@ int utc_connection_profile_get_ip_config_type_n(void)
 
 /**
  * @testcase           utc_connection_profile_get_ip_address_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the IP address.Shoudl return IP Address.
- * @scenario           Invoking connection_profile_get_ip_address with valid parameter.
+ * @scenario           Invoking connection_profile_get_ip_address with valid parameter.
  */
 int utc_connection_profile_get_ip_address_p(void)
 {
@@ -618,10 +618,10 @@ int utc_connection_profile_get_ip_address_p(void)
 
 /**
  * @testcase           utc_connection_profile_get_ip_address_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                should not return IP Address.
- * @scenario           Verify connection_profile_get_ip_address by passing invalid parameter.
+ * @scenario           Verify connection_profile_get_ip_address by passing invalid parameter.
  */
 int utc_connection_profile_get_ip_address_n(void)
 {
@@ -653,17 +653,17 @@ int utc_connection_profile_get_ip_address_n(void)
 
 /**
  * @testcase           utc_connection_profile_get_subnet_mask_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the Subnet Mask.
- * @scenario           Invoking connection_profile_get_subnet_mask with valid parameter.
+ * @scenario           Invoking connection_profile_get_subnet_mask with valid parameter.
  */
 int utc_connection_profile_get_subnet_mask_p(void)
 {
        char *ip_addr = NULL;
        int ret = test_get_any_profile(&profile_temp);
 
-       if(all_features_not_supported){
+       if (all_features_not_supported) {
                ret = connection_profile_get_subnet_mask(profile_temp, CONNECTION_ADDRESS_FAMILY_IPV4, &ip_addr);
                FREE_RESOURCE(ip_addr);
                CHECK_RETURN("connection_profile_get_subnet_mask", ret, CONNECTION_ERROR_NOT_SUPPORTED);
@@ -680,10 +680,10 @@ int utc_connection_profile_get_subnet_mask_p(void)
 
 /**
  * @testcase           utc_connection_profile_get_subnet_mask_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                should not return any subnet mask.
- * @scenario           Verify connection_profile_get_subnet_mask by passing invalid parameter.
+ * @scenario           Verify connection_profile_get_subnet_mask by passing invalid parameter.
  */
 int utc_connection_profile_get_subnet_mask_n(void)
 {
@@ -715,10 +715,10 @@ int utc_connection_profile_get_subnet_mask_n(void)
 
 /**
  * @testcase           utc_connection_profile_get_gateway_address_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the Gateway address.
- * @scenario           Invoking connection_profile_get_gateway_address with valid parameter.
+ * @scenario           Invoking connection_profile_get_gateway_address with valid parameter.
  */
 int utc_connection_profile_get_gateway_address_p(void)
 {
@@ -745,10 +745,10 @@ int utc_connection_profile_get_gateway_address_p(void)
 
 /**
  * @testcase           utc_connection_profile_get_gateway_address_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_get_gateway_address should fail with invalid parameter.
- * @scenario           Verify connection_profile_get_gateway_address by passing invalid parameter.
+ * @scenario           Verify connection_profile_get_gateway_address by passing invalid parameter.
  */
 int utc_connection_profile_get_gateway_address_n(void)
 {
@@ -910,10 +910,10 @@ int utc_connection_profile_get_dhcp_lease_duration_n(void)
 
 /**
  * @testcase           utc_connection_profile_get_dns_address_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the DNS address.
- * @scenario           Invoking connection_profile_get_dns_address with valid parameter.
+ * @scenario           Invoking connection_profile_get_dns_address with valid parameter.
  */
 int utc_connection_profile_get_dns_address_p(void)
 {
@@ -940,10 +940,10 @@ int utc_connection_profile_get_dns_address_p(void)
 
 /**
  * @testcase           utc_connection_profile_get_dns_address_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_get_dns_address should fail with invalid parameter.
- * @scenario           Verify connection_profile_get_dns_address by passing invalid parameter.
+ * @scenario           Verify connection_profile_get_dns_address by passing invalid parameter.
  */
 int utc_connection_profile_get_dns_address_n(void)
 {
@@ -981,10 +981,10 @@ int utc_connection_profile_get_dns_address_n(void)
 
 /**
  * @testcase           utc_connection_profile_get_proxy_type_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Sets the Proxy type.
- * @scenario           Invoking connection_profile_set_proxy_type with valid parameter.
+ * @scenario           Invoking connection_profile_set_proxy_type with valid parameter.
  */
 int utc_connection_profile_get_proxy_type_p(void)
 {
@@ -1008,10 +1008,10 @@ int utc_connection_profile_get_proxy_type_p(void)
 
 /**
  * @testcase           utc_connection_profile_get_proxy_type_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_get_proxy_type should fail with invalid parameter.
- * @scenario           Verify connection_profile_get_proxy_type by passing invalid parameter.
+ * @scenario           Verify connection_profile_get_proxy_type by passing invalid parameter.
  */
 int utc_connection_profile_get_proxy_type_n(void)
 {
@@ -1037,10 +1037,10 @@ int utc_connection_profile_get_proxy_type_n(void)
 
 /**
  * @testcase           utc_connection_profile_get_proxy_address_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the Proxy address.
- * @scenario           Invoking connection_profile_get_proxy_address with valid parameter.
+ * @scenario           Invoking connection_profile_get_proxy_address with valid parameter.
  */
 int utc_connection_profile_get_proxy_address_p(void)
 {
@@ -1064,10 +1064,10 @@ int utc_connection_profile_get_proxy_address_p(void)
 
 /**
  * @testcase           utc_connection_profile_get_proxy_address_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_get_proxy_address should fail with invalid parameter.
- * @scenario           Verify connection_profile_get_proxy_address by passing invalid parameter.
+ * @scenario           Verify connection_profile_get_proxy_address by passing invalid parameter.
  */
 int utc_connection_profile_get_proxy_address_n(void)
 {
@@ -1099,10 +1099,10 @@ int utc_connection_profile_get_proxy_address_n(void)
 
 /**
  * @testcase           utc_connection_profile_set_ip_config_type_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Sets the IP config type.
- * @scenario           Invoking connection_profile_set_ip_config_type with valid parameter.
+ * @scenario           Invoking connection_profile_set_ip_config_type with valid parameter.
  */
 int utc_connection_profile_set_ip_config_type_p(void)
 {
@@ -1129,10 +1129,10 @@ int utc_connection_profile_set_ip_config_type_p(void)
 
 /**
  * @testcase           utc_connection_profile_set_ip_config_type_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_set_ip_config_type should fail with invalid parameter.
- * @scenario           Verify connection_profile_set_ip_config_type by passing invalid parameter.
+ * @scenario           Verify connection_profile_set_ip_config_type by passing invalid parameter.
  */
 int utc_connection_profile_set_ip_config_type_n(void)
 {
@@ -1158,10 +1158,10 @@ int utc_connection_profile_set_ip_config_type_n(void)
 
 /**
  * @testcase           utc_connection_profile_set_ip_address_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Sets the IP address.
- * @scenario           Invoking connection_profile_set_ip_address with valid parameter.
+ * @scenario           Invoking connection_profile_set_ip_address with valid parameter.
  */
 int utc_connection_profile_set_ip_address_p(void)
 {
@@ -1185,10 +1185,10 @@ int utc_connection_profile_set_ip_address_p(void)
 
 /**
  * @testcase           utc_connection_profile_set_ip_address_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_set_ip_address should fail with invalid parameter.
- * @scenario           Verify connection_profile_set_ip_address by passing invalid parameter.
+ * @scenario           Verify connection_profile_set_ip_address by passing invalid parameter.
  */
 int utc_connection_profile_set_ip_address_n(void)
 {
@@ -1211,10 +1211,10 @@ int utc_connection_profile_set_ip_address_n(void)
 
 /**
  * @testcase           utc_connection_profile_set_subnet_mask_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Sets the Subnet Mask.
- * @scenario           Invoking connection_profile_set_subnet_mask with valid parameter.
+ * @scenario           Invoking connection_profile_set_subnet_mask with valid parameter.
  */
 int utc_connection_profile_set_subnet_mask_p(void)
 {
@@ -1235,10 +1235,10 @@ int utc_connection_profile_set_subnet_mask_p(void)
 
 /**
  * @testcase           utc_connection_profile_set_subnet_mask_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_set_subnet_mask should fail with invalid parameter.
- * @scenario           Verify connection_profile_set_subnet_mask by passing invalid parameter.
+ * @scenario           Verify connection_profile_set_subnet_mask by passing invalid parameter.
  */
 int utc_connection_profile_set_subnet_mask_n(void)
 {
@@ -1261,10 +1261,10 @@ int utc_connection_profile_set_subnet_mask_n(void)
 
 /**
  * @testcase           utc_connection_profile_set_gateway_address_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Sets the Gateway address.
- * @scenario           Invoking connection_profile_set_gateway_address with valid parameter.
+ * @scenario           Invoking connection_profile_set_gateway_address with valid parameter.
  */
 int utc_connection_profile_set_gateway_address_p(void)
 {
@@ -1288,10 +1288,10 @@ int utc_connection_profile_set_gateway_address_p(void)
 
 /**
  * @testcase           utc_connection_profile_set_gateway_address_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_set_gateway_address should fail with invalid parameter.
- * @scenario           Verify connection_profile_set_gateway_address by passing invalid parameter.
+ * @scenario           Verify connection_profile_set_gateway_address by passing invalid parameter.
  */
 int utc_connection_profile_set_gateway_address_n(void)
 {
@@ -1314,10 +1314,10 @@ int utc_connection_profile_set_gateway_address_n(void)
 
 /**
  * @testcase           utc_connection_profile_set_dns_address_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Sets the DNS address.
- * @scenario           Invoking connection_profile_set_dns_address with valid parameter.
+ * @scenario           Invoking connection_profile_set_dns_address with valid parameter.
  */
 int utc_connection_profile_set_dns_address_p(void)
 {
@@ -1342,10 +1342,10 @@ int utc_connection_profile_set_dns_address_p(void)
 
 /**
  * @testcase           utc_connection_profile_set_dns_address_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_set_dns_address should fail with invalid parameter.
- * @scenario           Verify connection_profile_set_dns_address by passing invalid parameter.
+ * @scenario           Verify connection_profile_set_dns_address by passing invalid parameter.
  */
 int utc_connection_profile_set_dns_address_n(void)
 {
@@ -1370,10 +1370,10 @@ int utc_connection_profile_set_dns_address_n(void)
 
 /**
  * @testcase           utc_connection_profile_set_proxy_type_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Sets the Proxy type.
- * @scenario           Invoking connection_profile_set_proxy_type with valid parameter.
+ * @scenario           Invoking connection_profile_set_proxy_type with valid parameter.
  */
 int utc_connection_profile_set_proxy_type_p(void)
 {
@@ -1394,10 +1394,10 @@ int utc_connection_profile_set_proxy_type_p(void)
 
 /**
  * @testcase           utc_connection_profile_set_proxy_type_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_set_proxy_type should fail with invalid parameter.
- * @scenario           Verify connection_profile_set_proxy_type by passing invalid parameter.
+ * @scenario           Verify connection_profile_set_proxy_type by passing invalid parameter.
  */
 int utc_connection_profile_set_proxy_type_n(void)
 {
@@ -1422,10 +1422,10 @@ int utc_connection_profile_set_proxy_type_n(void)
 
 /**
  * @testcase           utc_connection_profile_set_proxy_address_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Sets the Proxy address.
- * @scenario           Invoking connection_profile_set_proxy_address with valid parameter.
+ * @scenario           Invoking connection_profile_set_proxy_address with valid parameter.
  */
 int utc_connection_profile_set_proxy_address_p(void)
 {
@@ -1448,10 +1448,10 @@ int utc_connection_profile_set_proxy_address_p(void)
 
 /**
  * @testcase           utc_connection_profile_set_proxy_address_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_set_proxy_address should fail with invalid parameter.
- * @scenario           Verify connection_profile_set_proxy_address by passing invalid parameter.
+ * @scenario           Verify connection_profile_set_proxy_address by passing invalid parameter.
  */
 int utc_connection_profile_set_proxy_address_n(void)
 {
@@ -1474,10 +1474,10 @@ int utc_connection_profile_set_proxy_address_n(void)
 
 /**
  * @testcase           utc_connection_profile_set_state_changed_cb_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Registers the callback that is called when the state of profile is changed.
- * @scenario           Invoking connection_profile_set_state_changed_cb with valid parameter.
+ * @scenario           Invoking connection_profile_set_state_changed_cb with valid parameter.
  */
 int utc_connection_profile_set_state_changed_cb_p(void)
 {
@@ -1501,10 +1501,10 @@ int utc_connection_profile_set_state_changed_cb_p(void)
 
 /**
  * @testcase           utc_connection_profile_set_state_changed_cb_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_set_state_changed_cb should fail with invalid parameter.
- * @scenario           Verify connection_profile_set_state_changed_cb by passing callback and user_data as NULL.
+ * @scenario           Verify connection_profile_set_state_changed_cb by passing callback and user_data as NULL.
  */
 int utc_connection_profile_set_state_changed_cb_n(void)
 {
@@ -1530,10 +1530,10 @@ int utc_connection_profile_set_state_changed_cb_n(void)
 
 /**
  * @testcase           utc_connection_profile_unset_state_changed_cb_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Unregisters the callback that is called when the state of profile is changed.
- * @scenario           Invoking connection_profile_unset_state_changed_cb with valid parameter.
+ * @scenario           Invoking connection_profile_unset_state_changed_cb with valid parameter.
  */
 int utc_connection_profile_unset_state_changed_cb_p(void)
 {
@@ -1557,10 +1557,10 @@ int utc_connection_profile_unset_state_changed_cb_p(void)
 
 /**
  * @testcase           utc_connection_profile_unset_state_changed_cb_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_unset_state_changed_cb should fail with invalid parameter.
- * @scenario           Verify connection_profile_unset_state_changed_cb by passing invalid profile handle.
+ * @scenario           Verify connection_profile_unset_state_changed_cb by passing invalid profile handle.
  */
 int utc_connection_profile_unset_state_changed_cb_n(void)
 {
@@ -1568,12 +1568,10 @@ int utc_connection_profile_unset_state_changed_cb_n(void)
 
        int ret = connection_profile_unset_state_changed_cb(profile_inval);
 
-       if (all_features_not_supported) {
+       if (all_features_not_supported)
                CHECK_RETURN("connection_profile_unset_state_changed_cb", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       } else {
+       else
                CHECK_RETURN("connection_profile_unset_state_changed_cb", ret, CONNECTION_ERROR_INVALID_PARAMETER);
-       }
-
        return 0;
 }
 
@@ -1582,14 +1580,14 @@ int utc_connection_profile_unset_state_changed_cb_n(void)
 
 /**
  * @testcase           utc_connection_profile_set_cellular_service_type_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Sets the service type.
- * @scenario           Invoking connection_profile_set_cellular_service_type with valid parameter.
+ * @scenario           Invoking connection_profile_set_cellular_service_type with valid parameter.
  */
 int utc_connection_profile_set_cellular_service_type_p(void)
 {
-       if(telephony_supported) {
+       if (telephony_supported) {
                int ret = connection_profile_set_cellular_service_type(profile_cellular, CONNECTION_CELLULAR_SERVICE_TYPE_INTERNET);
                CHECK_RETURN("connection_profile_set_cellular_service_type", ret, CONNECTION_ERROR_NONE);
        } else {
@@ -1602,10 +1600,10 @@ int utc_connection_profile_set_cellular_service_type_p(void)
 
 /**
  * @testcase           utc_connection_profile_set_cellular_service_type_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_set_cellular_service_type should fail with invalid parameter.
- * @scenario           Verify connection_profile_set_cellular_service_type by passing invalid parameter.
+ * @scenario           Verify connection_profile_set_cellular_service_type by passing invalid parameter.
  */
 int utc_connection_profile_set_cellular_service_type_n(void)
 {
@@ -1630,10 +1628,10 @@ int utc_connection_profile_set_cellular_service_type_n(void)
 
 /**
  * @testcase           utc_connection_profile_set_cellular_apn_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Sets the APN (Access Point Name).
- * @scenario           Invoking connection_profile_set_cellular_apn with valid parameter.
+ * @scenario           Invoking connection_profile_set_cellular_apn with valid parameter.
  */
 int utc_connection_profile_set_cellular_apn_p(void)
 {
@@ -1650,10 +1648,10 @@ int utc_connection_profile_set_cellular_apn_p(void)
 
 /**
  * @testcase           utc_connection_profile_set_cellular_apn_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_set_cellular_apn should fail with invalid parameter.
- * @scenario           Verify connection_profile_set_cellular_apn by passing invalid parameter.
+ * @scenario           Verify connection_profile_set_cellular_apn by passing invalid parameter.
  */
 int utc_connection_profile_set_cellular_apn_n(void)
 {
@@ -1677,10 +1675,10 @@ int utc_connection_profile_set_cellular_apn_n(void)
 
 /**
  * @testcase           utc_connection_profile_set_cellular_auth_info_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Sets the Authentication information.
- * @scenario           Invoking connection_profile_set_cellular_auth_info with valid parameter.
+ * @scenario           Invoking connection_profile_set_cellular_auth_info with valid parameter.
  */
 int utc_connection_profile_set_cellular_auth_info_p(void)
 {
@@ -1699,10 +1697,10 @@ int utc_connection_profile_set_cellular_auth_info_p(void)
 
 /**
  * @testcase           utc_connection_profile_set_cellular_auth_info_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_set_cellular_auth_info should fail with invalid parameter.
- * @scenario           Verify connection_profile_set_cellular_auth_info by passing invalid AUTHENTICATION TYPE/parameter.
+ * @scenario           Verify connection_profile_set_cellular_auth_info by passing invalid AUTHENTICATION TYPE/parameter.
  */
 int utc_connection_profile_set_cellular_auth_info_n(void)
 {
@@ -1741,14 +1739,14 @@ int utc_connection_profile_set_cellular_auth_info_n(void)
 
 /**
  * @testcase           utc_connection_profile_set_cellular_home_url_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                connection_profile_set_cellular_home_url.
- * @scenario           Invoking connection_profile_set_cellular_home_url with valid parameter.
+ * @scenario           Invoking connection_profile_set_cellular_home_url with valid parameter.
  */
 int utc_connection_profile_set_cellular_home_url_p(void)
 {
-       if(telephony_supported) {
+       if (telephony_supported) {
                int ret = connection_profile_set_cellular_home_url(profile_cellular, "www.tizen.org");
                CHECK_RETURN("connection_profile_set_cellular_home_url", ret, CONNECTION_ERROR_NONE);
        } else {
@@ -1761,10 +1759,10 @@ int utc_connection_profile_set_cellular_home_url_p(void)
 
 /**
  * @testcase           utc_connection_profile_set_cellular_home_url_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_set_cellular_home_url should fail with invalid parameter.
- * @scenario           Verify connection_profile_set_cellular_home_url by passing invalid profile handle.
+ * @scenario           Verify connection_profile_set_cellular_home_url by passing invalid profile handle.
  */
 int utc_connection_profile_set_cellular_home_url_n(void)
 {
@@ -1789,30 +1787,28 @@ int utc_connection_profile_set_cellular_home_url_n(void)
 #if (defined(MOBILE) || defined(WEARABLE)  || defined(TIZENIOT)) //Starts MOBILE or WEARABLE or TIZENIOT
 /**
  * @testcase           utc_connection_profile_set_cellular_pdn_type_p
- * @since_tizen        3.0
+ * @since_tizen                3.0
  * @type               Positive
  * @description                Sets the pdn type.
- * @scenario           Invoking connection_profile_set_cellular_pdn_type with valid parameter.
+ * @scenario           Invoking connection_profile_set_cellular_pdn_type with valid parameter.
  */
 int utc_connection_profile_set_cellular_pdn_type_p(void)
 {
        int ret = connection_profile_set_cellular_pdn_type(profile_cellular, CONNECTION_CELLULAR_PDN_TYPE_IPV4);
 
-       if (telephony_supported) {
+       if (telephony_supported)
                CHECK_RETURN("connection_profile_set_cellular_pdn_type", ret, CONNECTION_ERROR_NONE);
-       } else {
+       else
                CHECK_RETURN("connection_profile_set_cellular_pdn_type", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       }
-
        return 0;
 }
 
 /**
  * @testcase           utc_connection_profile_set_cellular_pdn_type_n
- * @since_tizen        3.0
+ * @since_tizen                3.0
  * @type               Negative
  * @description                connection_profile_set_cellular_pdn_type should fail with invalid parameter.
- * @scenario           Verify connection_profile_set_cellular_pdn_type by passing invalid profile handle.
+ * @scenario           Verify connection_profile_set_cellular_pdn_type by passing invalid profile handle.
  */
 int utc_connection_profile_set_cellular_pdn_type_n(void)
 {
@@ -1834,30 +1830,28 @@ int utc_connection_profile_set_cellular_pdn_type_n(void)
 
 /**
  * @testcase           utc_connection_profile_set_cellular_roam_pdn_type_p
- * @since_tizen        3.0
+ * @since_tizen                3.0
  * @type               Positive
  * @description                Sets the roam pdn type.
- * @scenario           Invoking connection_profile_set_cellular_roam_pdn_type with valid parameter.
+ * @scenario           Invoking connection_profile_set_cellular_roam_pdn_type with valid parameter.
  */
 int utc_connection_profile_set_cellular_roam_pdn_type_p(void)
 {
        int ret = connection_profile_set_cellular_roam_pdn_type(profile_cellular, CONNECTION_CELLULAR_PDN_TYPE_IPV4);
 
-       if (telephony_supported) {
+       if (telephony_supported)
                CHECK_RETURN("connection_profile_set_cellular_roam_pdn_type", ret, CONNECTION_ERROR_NONE);
-       } else {
+       else
                CHECK_RETURN("connection_profile_set_cellular_roam_pdn_type", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       }
-
        return 0;
 }
 
 /**
  * @testcase           utc_connection_profile_set_cellular_roam_pdn_type_n
- * @since_tizen        3.0
+ * @since_tizen                3.0
  * @type               Negative
  * @description                connection_profile_set_cellular_roam_pdn_type should fail with invalid parameter.
- * @scenario           Verify connection_profile_set_cellular_roam_pdn_type by passing invalid profile handle.
+ * @scenario           Verify connection_profile_set_cellular_roam_pdn_type by passing invalid profile handle.
  */
 int utc_connection_profile_set_cellular_roam_pdn_type_n(void)
 {
@@ -1880,10 +1874,10 @@ int utc_connection_profile_set_cellular_roam_pdn_type_n(void)
 
 /**
  * @testcase           utc_connection_profile_get_cellular_service_type_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Sets the home URL.
- * @scenario           Invoking connection_profile_get_cellular_service_type with valid parameter.
+ * @scenario           Invoking connection_profile_get_cellular_service_type with valid parameter.
  */
 int utc_connection_profile_get_cellular_service_type_p(void)
 {
@@ -1904,10 +1898,10 @@ int utc_connection_profile_get_cellular_service_type_p(void)
 
 /**
  * @testcase           utc_connection_profile_get_cellular_service_type_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_get_cellular_service_type should fail with invalid parameter.
- * @scenario           Verify connection_profile_get_cellular_service_type by passing invalid profile handle and home URL.
+ * @scenario           Verify connection_profile_get_cellular_service_type by passing invalid profile handle and home URL.
  */
 int utc_connection_profile_get_cellular_service_type_n(void)
 {
@@ -1933,10 +1927,10 @@ int utc_connection_profile_get_cellular_service_type_n(void)
 
 /**
  * @testcase           utc_connection_profile_get_cellular_apn_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the APN (access point name).
- * @scenario           Invoking connection_profile_get_cellular_apn with valid parameter.
+ * @scenario           Invoking connection_profile_get_cellular_apn with valid parameter.
  */
 int utc_connection_profile_get_cellular_apn_p(void)
 {
@@ -1945,21 +1939,19 @@ int utc_connection_profile_get_cellular_apn_p(void)
        int ret = connection_profile_get_cellular_apn(profile_cellular, &apn);
        FREE_RESOURCE(apn);
 
-       if(telephony_supported) {
+       if (telephony_supported)
                CHECK_RETURN("connection_profile_get_cellular_apn", ret, CONNECTION_ERROR_NONE);
-       } else {
+       else
                CHECK_RETURN("connection_profile_get_cellular_apn", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       }
-
        return 0;
 }
 
 /**
  * @testcase           utc_connection_profile_get_cellular_apn_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_get_cellular_apn should fail with invalid parameter.
- * @scenario           Verify connection_profile_get_cellular_apn by passing invalid parameter.
+ * @scenario           Verify connection_profile_get_cellular_apn by passing invalid parameter.
  */
 int utc_connection_profile_get_cellular_apn_n(void)
 {
@@ -1985,10 +1977,10 @@ int utc_connection_profile_get_cellular_apn_n(void)
 
 /**
  * @testcase           utc_connection_profile_get_cellular_auth_info_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the authentication information.
- * @scenario           Invoking connection_profile_get_cellular_auth_info with valid parameter.
+ * @scenario           Invoking connection_profile_get_cellular_auth_info with valid parameter.
  */
 int utc_connection_profile_get_cellular_auth_info_p(void)
 {
@@ -1999,21 +1991,19 @@ int utc_connection_profile_get_cellular_auth_info_p(void)
        int ret = connection_profile_get_cellular_auth_info(profile_cellular, &type, &name, &pwd);
        FREE_RESOURCE(name); FREE_RESOURCE(pwd);
 
-       if (telephony_supported) {
+       if (telephony_supported)
                CHECK_RETURN("connection_profile_get_cellular_auth_info", ret, CONNECTION_ERROR_NONE);
-       } else {
+       else
                CHECK_RETURN("connection_profile_get_cellular_auth_info", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       }
-
        return 0;
 }
 
 /**
  * @testcase           utc_connection_profile_get_cellular_auth_info_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_get_cellular_auth_info should fail with invalid parameter.
- * @scenario           Verify connection_profile_get_cellular_auth_info by passing invalid parameter.
+ * @scenario           Verify connection_profile_get_cellular_auth_info by passing invalid parameter.
  */
 int utc_connection_profile_get_cellular_auth_info_n(void)
 {
@@ -2061,10 +2051,10 @@ int utc_connection_profile_get_cellular_auth_info_n(void)
 
 /**
  * @testcase           utc_connection_profile_get_cellular_home_url_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the home URL.
- * @scenario           Invoking connection_profile_get_cellular_home_url with valid parameter.
+ * @scenario           Invoking connection_profile_get_cellular_home_url with valid parameter.
  */
 int utc_connection_profile_get_cellular_home_url_p(void)
 {
@@ -2073,21 +2063,19 @@ int utc_connection_profile_get_cellular_home_url_p(void)
        int ret = connection_profile_get_cellular_home_url(profile_cellular, &home_url);
        FREE_RESOURCE(home_url);
 
-       if (telephony_supported) {
+       if (telephony_supported)
                CHECK_RETURN("connection_profile_get_cellular_home_url", ret, CONNECTION_ERROR_NONE);
-       } else {
+       else
                CHECK_RETURN("connection_profile_get_cellular_home_url", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       }
-
        return 0;
 }
 
 /**
  * @testcase           utc_connection_profile_get_cellular_home_url_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_get_cellular_home_url should fail with invalid parameter.
- * @scenario           Verify connection_profile_get_cellular_home_url by passing invalid profile handle.
+ * @scenario           Verify connection_profile_get_cellular_home_url by passing invalid profile handle.
  */
 int utc_connection_profile_get_cellular_home_url_n(void)
 {
@@ -2114,10 +2102,10 @@ int utc_connection_profile_get_cellular_home_url_n(void)
 #if (defined(MOBILE) || defined(WEARABLE)  || defined(TIZENIOT)) //Starts MOBILE or WEARABLE or TIZENIOT
 /**
  * @testcase           utc_connection_profile_get_cellular_pdn_type_p
- * @since_tizen        3.0
+ * @since_tizen                3.0
  * @type               Positive
  * @description                Gets the pdn type.
- * @scenario           Invoking connection_profile_get_cellular_pdn_type with valid parameter.
+ * @scenario           Invoking connection_profile_get_cellular_pdn_type with valid parameter.
  */
 int utc_connection_profile_get_cellular_pdn_type_p(void)
 {
@@ -2139,10 +2127,10 @@ int utc_connection_profile_get_cellular_pdn_type_p(void)
 
 /**
  * @testcase           utc_connection_profile_get_cellular_pdn_type_n
- * @since_tizen        3.0
+ * @since_tizen                3.0
  * @type               Negative
  * @description                connection_profile_get_cellular_pdn_type should fail with invalid parameter.
- * @scenario           Verify connection_profile_get_cellular_pdn_type by passing invalid profile handle.
+ * @scenario           Verify connection_profile_get_cellular_pdn_type by passing invalid profile handle.
  */
 int utc_connection_profile_get_cellular_pdn_type_n(void)
 {
@@ -2166,16 +2154,16 @@ int utc_connection_profile_get_cellular_pdn_type_n(void)
 
 /**
  * @testcase           utc_connection_profile_get_cellular_roam_pdn_type_p
- * @since_tizen        3.0
+ * @since_tizen                3.0
  * @type               Positive
  * @description                Gets the roam pdn type.
- * @scenario           Invoking connection_profile_get_cellular_roam_pdn_type with valid parameter.
+ * @scenario           Invoking connection_profile_get_cellular_roam_pdn_type with valid parameter.
  */
 int utc_connection_profile_get_cellular_roam_pdn_type_p(void)
 {
        connection_cellular_pdn_type_e type;
 
-       if(telephony_supported) {
+       if (telephony_supported) {
                int ret = connection_profile_set_cellular_roam_pdn_type(profile_cellular, CONNECTION_CELLULAR_PDN_TYPE_IPV4);
                CHECK_RETURN("connection_profile_set_cellular_roam_pdn_type", ret, CONNECTION_ERROR_NONE);
 
@@ -2191,10 +2179,10 @@ int utc_connection_profile_get_cellular_roam_pdn_type_p(void)
 
 /**
  * @testcase           utc_connection_profile_get_cellular_roam_pdn_type_n
- * @since_tizen        3.0
+ * @since_tizen                3.0
  * @type               Negative
  * @description                connection_profile_get_cellular_roam_pdn_type should fail with invalid parameter.
- * @scenario           Verify connection_profile_get_cellular_roam_pdn_type by passing invalid profile handle.
+ * @scenario           Verify connection_profile_get_cellular_roam_pdn_type by passing invalid profile handle.
  */
 int utc_connection_profile_get_cellular_roam_pdn_type_n(void)
 {
@@ -2219,10 +2207,10 @@ int utc_connection_profile_get_cellular_roam_pdn_type_n(void)
 
 /**
  * @testcase           utc_connection_profile_is_cellular_roaming_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Checks wheter the connection is in roaming state.
- * @scenario           Invoking connection_profile_is_cellular_roaming with valid parameter.
+ * @scenario           Invoking connection_profile_is_cellular_roaming with valid parameter.
  */
 int utc_connection_profile_is_cellular_roaming_p(void)
 {
@@ -2241,10 +2229,10 @@ int utc_connection_profile_is_cellular_roaming_p(void)
 
 /**
  * @testcase           utc_connection_profile_is_cellular_roaming_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_is_cellular_roaming should fail with invalid parameter.
- * @scenario           Verify connection_profile_is_cellular_roaming by passing invalid parameter.
+ * @scenario           Verify connection_profile_is_cellular_roaming by passing invalid parameter.
  */
 int utc_connection_profile_is_cellular_roaming_n(void)
 {
@@ -2270,10 +2258,10 @@ int utc_connection_profile_is_cellular_roaming_n(void)
 
 /**
  * @testcase           utc_connection_profile_is_cellular_hidden_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Checks whether the profile is hidden.
- * @scenario           Invoking connection_profile_is_cellular_hidden with valid parameter.
+ * @scenario           Invoking connection_profile_is_cellular_hidden with valid parameter.
  */
 int utc_connection_profile_is_cellular_hidden_p(void)
 {
@@ -2293,10 +2281,10 @@ int utc_connection_profile_is_cellular_hidden_p(void)
 
 /**
  * @testcase           utc_connection_profile_is_cellular_hidden_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_is_cellular_hidden should fail with invalid parameter.
- * @scenario           Verify connection_profile_is_cellular_hidden by passing invalid parameter.
+ * @scenario           Verify connection_profile_is_cellular_hidden by passing invalid parameter.
  */
 int utc_connection_profile_is_cellular_hidden_n(void)
 {
@@ -2322,10 +2310,10 @@ int utc_connection_profile_is_cellular_hidden_n(void)
 
 /**
  * @testcase           utc_connection_profile_is_cellular_editable_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Checks whether the profile is editable.
- * @scenario           Invoking connection_profile_is_cellular_editable with valid parameter.
+ * @scenario           Invoking connection_profile_is_cellular_editable with valid parameter.
  */
 int utc_connection_profile_is_cellular_editable_p(void)
 {
@@ -2344,10 +2332,10 @@ int utc_connection_profile_is_cellular_editable_p(void)
 
 /**
  * @testcase           utc_connection_profile_is_cellular_editable_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_is_cellular_editable should fail with invalid parameter.
- * @scenario           Verify connection_profile_is_cellular_editable by passing invalid parameter.
+ * @scenario           Verify connection_profile_is_cellular_editable by passing invalid parameter.
  */
 int utc_connection_profile_is_cellular_editable_n(void)
 {
@@ -2373,11 +2361,11 @@ int utc_connection_profile_is_cellular_editable_n(void)
 
 /**
  * @testcase           utc_connection_profile_is_cellular_default_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Checks whether the profile is default.is_default  @c true if the profile is default,
                        otherwise @c false if the profile is not default
- * @scenario           Invoking connection_profile_is_cellular_default with valid parameter.
+ * @scenario           Invoking connection_profile_is_cellular_default with valid parameter.
  */
 int utc_connection_profile_is_cellular_default_p(void)
 {
@@ -2396,10 +2384,10 @@ int utc_connection_profile_is_cellular_default_p(void)
 
 /**
  * @testcase           utc_connection_profile_is_cellular_default_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_is_cellular_default should fail with invalid parameter.
- * @scenario           Verify connection_profile_is_cellular_default by passing invalid parameter.
+ * @scenario           Verify connection_profile_is_cellular_default by passing invalid parameter.
  */
 int utc_connection_profile_is_cellular_default_n(void)
 {
@@ -2424,10 +2412,10 @@ int utc_connection_profile_is_cellular_default_n(void)
 
 /**
  * @testcase           utc_connection_profile_refresh_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Refreshes the profile information.
- * @scenario           Invoking connection_profile_refresh with valid parameter.
+ * @scenario           Invoking connection_profile_refresh with valid parameter.
  */
 int utc_connection_profile_refresh_p(void)
 {
@@ -2448,10 +2436,10 @@ int utc_connection_profile_refresh_p(void)
 
 /**
  * @testcase           utc_connection_profile_refresh_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_refresh should fail with invalid parameter.
- * @scenario           Verify connection_profile_refresh by passing invalid profile handle.
+ * @scenario           Verify connection_profile_refresh by passing invalid profile handle.
  */
 int utc_connection_profile_refresh_n(void)
 {
@@ -2459,12 +2447,10 @@ int utc_connection_profile_refresh_n(void)
 
        int ret = connection_profile_refresh(profile_inval);
 
-       if (all_features_not_supported) {
+       if (all_features_not_supported)
                CHECK_RETURN("connection_profile_refresh", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       } else {
+       else
                CHECK_RETURN("connection_profile_refresh", ret, CONNECTION_ERROR_INVALID_PARAMETER);
-       }
-
        return 0;
 }
 
@@ -2472,10 +2458,10 @@ int utc_connection_profile_refresh_n(void)
 
 /**
  * @testcase           utc_connection_profile_get_wifi_essid_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the ESSID (Extended Service Set Identifier).
- * @scenario           Invoking connection_profile_get_wifi_essid with valid parameter.
+ * @scenario           Invoking connection_profile_get_wifi_essid with valid parameter.
  */
 int utc_connection_profile_get_wifi_essid_p(void)
 {
@@ -2484,21 +2470,19 @@ int utc_connection_profile_get_wifi_essid_p(void)
        int ret = connection_profile_get_wifi_essid(profile_wifi, &essid);
        FREE_RESOURCE(essid);
 
-       if (wifi_supported) {
+       if (wifi_supported)
                CHECK_RETURN("connection_profile_get_wifi_essid", ret, CONNECTION_ERROR_NONE);
-       } else {
+       else
                CHECK_RETURN("connection_profile_get_wifi_essid", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       }
-
        return 0;
 }
 
 /**
  * @testcase           utc_connection_profile_get_wifi_essid_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_get_wifi_essid should fail with invalid parameter.
- * @scenario           Verify connection_profile_get_wifi_essid by passing invalid parameter.
+ * @scenario           Verify connection_profile_get_wifi_essid by passing invalid parameter.
  */
 int utc_connection_profile_get_wifi_essid_n(void)
 {
@@ -2524,10 +2508,10 @@ int utc_connection_profile_get_wifi_essid_n(void)
 
 /**
  * @testcase           utc_connection_profile_get_wifi_bssid_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the BSSID (Basic Service Set Identifier).
- * @scenario           Invoking connection_profile_get_wifi_bssid with valid parameter.
+ * @scenario           Invoking connection_profile_get_wifi_bssid with valid parameter.
  */
 int utc_connection_profile_get_wifi_bssid_p(void)
 {
@@ -2536,21 +2520,19 @@ int utc_connection_profile_get_wifi_bssid_p(void)
        int ret = connection_profile_get_wifi_bssid(profile_wifi, &bssid);
        FREE_RESOURCE(bssid);
 
-       if (wifi_supported) {
+       if (wifi_supported)
                CHECK_RETURN("connection_profile_get_wifi_bssid", ret, CONNECTION_ERROR_NONE);
-       } else {
+       else
                CHECK_RETURN("connection_profile_get_wifi_bssid", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       }
-
        return 0;
 }
 
 /**
  * @testcase           utc_connection_profile_get_wifi_bssid_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_get_wifi_bssid should fail with invalid parameter.
- * @scenario           Verify connection_profile_get_wifi_bssid by passing invalid parameter.
+ * @scenario           Verify connection_profile_get_wifi_bssid by passing invalid parameter.
  */
 int utc_connection_profile_get_wifi_bssid_n(void)
 {
@@ -2576,10 +2558,10 @@ int utc_connection_profile_get_wifi_bssid_n(void)
 
 /**
  * @testcase           utc_connection_profile_get_wifi_rssi_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the RSSI.
- * @scenario           Invoking connection_profile_get_wifi_rssi with valid parameter.
+ * @scenario           Invoking connection_profile_get_wifi_rssi with valid parameter.
  */
 int utc_connection_profile_get_wifi_rssi_p(void)
 {
@@ -2598,10 +2580,10 @@ int utc_connection_profile_get_wifi_rssi_p(void)
 
 /**
  * @testcase           utc_connection_profile_get_wifi_rssi_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_get_wifi_rssi should fail with invalid parameter.
- * @scenario           Verify connection_profile_get_wifi_rssi by passing invalid parameter.
+ * @scenario           Verify connection_profile_get_wifi_rssi by passing invalid parameter.
  */
 int utc_connection_profile_get_wifi_rssi_n(void)
 {
@@ -2627,10 +2609,10 @@ int utc_connection_profile_get_wifi_rssi_n(void)
 
 /**
  * @testcase           utc_connection_profile_get_wifi_frequency_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the frequency (MHz).
- * @scenario           Invoking connection_profile_get_wifi_frequency with valid parameter.
+ * @scenario           Invoking connection_profile_get_wifi_frequency with valid parameter.
  */
 int utc_connection_profile_get_wifi_frequency_p(void)
 {
@@ -2649,10 +2631,10 @@ int utc_connection_profile_get_wifi_frequency_p(void)
 
 /**
  * @testcase           utc_connection_profile_get_wifi_frequency_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_get_wifi_frequency should fail with invalid parameter.
- * @scenario           Verify connection_profile_get_wifi_frequency by passing invalid parameter.
+ * @scenario           Verify connection_profile_get_wifi_frequency by passing invalid parameter.
  */
 int utc_connection_profile_get_wifi_frequency_n(void)
 {
@@ -2678,10 +2660,10 @@ int utc_connection_profile_get_wifi_frequency_n(void)
 
 /**
  * @testcase           utc_connection_profile_get_wifi_max_speed_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the max speed (Mbps).
- * @scenario           Invoking connection_profile_get_wifi_max_speed with valid parameter.
+ * @scenario           Invoking connection_profile_get_wifi_max_speed with valid parameter.
  */
 int utc_connection_profile_get_wifi_max_speed_p(void)
 {
@@ -2700,10 +2682,10 @@ int utc_connection_profile_get_wifi_max_speed_p(void)
 
 /**
  * @testcase           utc_connection_profile_get_wifi_max_speed_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_get_wifi_max_speed should fail with invalid parameter.
- * @scenario           Verify connection_profile_get_wifi_max_speed by passing invalid parameter.
+ * @scenario           Verify connection_profile_get_wifi_max_speed by passing invalid parameter.
  */
 int utc_connection_profile_get_wifi_max_speed_n(void)
 {
@@ -2729,10 +2711,10 @@ int utc_connection_profile_get_wifi_max_speed_n(void)
 
 /**
  * @testcase           utc_connection_profile_get_wifi_security_type_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the security mode of Wi-Fi.
- * @scenario           Invoking connection_profile_get_wifi_security_type with valid parameter.
+ * @scenario           Invoking connection_profile_get_wifi_security_type with valid parameter.
  */
 int utc_connection_profile_get_wifi_security_type_p(void)
 {
@@ -2751,10 +2733,10 @@ int utc_connection_profile_get_wifi_security_type_p(void)
 
 /**
  * @testcase           utc_connection_profile_get_wifi_security_type_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_get_wifi_security_type should fail with invalid parameter.
- * @scenario           Verify connection_profile_get_wifi_security_type by passing invalid parameter.
+ * @scenario           Verify connection_profile_get_wifi_security_type by passing invalid parameter.
  */
 int utc_connection_profile_get_wifi_security_type_n(void)
 {
@@ -2780,10 +2762,10 @@ int utc_connection_profile_get_wifi_security_type_n(void)
 
 /**
  * @testcase           utc_connection_profile_get_wifi_encryption_type_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the security mode of Wi-Fi.
- * @scenario           Invoking connection_profile_get_wifi_encryption_type with valid parameter.
+ * @scenario           Invoking connection_profile_get_wifi_encryption_type with valid parameter.
  */
 int utc_connection_profile_get_wifi_encryption_type_p(void)
 {
@@ -2802,10 +2784,10 @@ int utc_connection_profile_get_wifi_encryption_type_p(void)
 
 /**
  * @testcase           utc_connection_profile_get_wifi_encryption_type_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_get_wifi_encryption_type should fail with invalid parameter.
- * @scenario           Verify connection_profile_get_wifi_encryption_type by passing invalid parameter.
+ * @scenario           Verify connection_profile_get_wifi_encryption_type by passing invalid parameter.
  */
 int utc_connection_profile_get_wifi_encryption_type_n(void)
 {
@@ -2831,10 +2813,10 @@ int utc_connection_profile_get_wifi_encryption_type_n(void)
 
 /**
  * @testcase           utc_connection_profile_is_wifi_passphrase_required_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Checks whether passphrase is required.
- * @scenario           Invoking connection_profile_is_wifi_passphrase_required with valid parameter.
+ * @scenario           Invoking connection_profile_is_wifi_passphrase_required with valid parameter.
  */
 int utc_connection_profile_is_wifi_passphrase_required_p(void)
 {
@@ -2853,10 +2835,10 @@ int utc_connection_profile_is_wifi_passphrase_required_p(void)
 
 /**
  * @testcase           utc_connection_profile_is_wifi_passphrase_required_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_is_wifi_passphrase_required should fail with invalid parameter.
- * @scenario           Verify connection_profile_is_wifi_passphrase_required by passing invalid parameter.
+ * @scenario           Verify connection_profile_is_wifi_passphrase_required by passing invalid parameter.
  */
 int utc_connection_profile_is_wifi_passphrase_required_n(void)
 {
@@ -2882,116 +2864,116 @@ int utc_connection_profile_is_wifi_passphrase_required_n(void)
 
 /**
  * @testcase           utc_connection_profile_set_wifi_passphrase_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Sets the passphrase of the Wi-Fi WPA.
- * @scenario           Invoking connection_profile_set_wifi_passphrase with valid parameter.
+ * @scenario           Invoking connection_profile_set_wifi_passphrase with valid parameter.
  */
 int utc_connection_profile_set_wifi_passphrase_p(void)
 {
-    if(wifi_supported) {
-        int ret = connection_profile_set_wifi_passphrase(profile_wifi, "keystring");
-        CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_NONE);
-    } else {
-        int ret = connection_profile_set_wifi_passphrase(profile_wifi, "keystring");
-        CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-    }
+       if (wifi_supported) {
+               int ret = connection_profile_set_wifi_passphrase(profile_wifi, "keystring");
+               CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_NONE);
+       } else {
+               int ret = connection_profile_set_wifi_passphrase(profile_wifi, "keystring");
+               CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_NOT_SUPPORTED);
+       }
 
-    return 0;
+       return 0;
 }
 
 /**
  * @testcase           utc_connection_profile_set_wifi_passphrase_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_set_wifi_passphrase should fail with invalid parameter.
- * @scenario           Verify connection_profile_set_wifi_passphrase by passing invalid parameter.
+ * @scenario           Verify connection_profile_set_wifi_passphrase by passing invalid parameter.
  */
 int utc_connection_profile_set_wifi_passphrase_n(void)
 {
-    connection_profile_h profile_inval = NULL;
+       connection_profile_h profile_inval = NULL;
 
-    if(wifi_supported) {
-        int ret = connection_profile_set_wifi_passphrase(profile_inval, NULL);
-        CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
-        ret = connection_profile_set_wifi_passphrase(profile_inval, "keystring");
-        CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
-        ret = connection_profile_set_wifi_passphrase(profile_wifi, NULL);
-        CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
-        ret = connection_profile_set_wifi_passphrase(profile_cellular, "keystring");
-        CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
-    } else {
-        int ret = connection_profile_set_wifi_passphrase(profile_inval, NULL);
-        CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-    }
+       if (wifi_supported) {
+               int ret = connection_profile_set_wifi_passphrase(profile_inval, NULL);
+               CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+               ret = connection_profile_set_wifi_passphrase(profile_inval, "keystring");
+               CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+               ret = connection_profile_set_wifi_passphrase(profile_wifi, NULL);
+               CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+               ret = connection_profile_set_wifi_passphrase(profile_cellular, "keystring");
+               CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+       } else {
+               int ret = connection_profile_set_wifi_passphrase(profile_inval, NULL);
+               CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_NOT_SUPPORTED);
+       }
 
-    return 0;
+       return 0;
 }
 
 /**
  * @testcase           utc_connection_profile_is_wifi_wps_supported_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Checks whether the WPS (Wi-Fi Protected Setup) is supported.
- * @scenario           Invoking connection_profile_is_wifi_wps_supported with valid parameter.
+ * @scenario           Invoking connection_profile_is_wifi_wps_supported with valid parameter.
  */
 int utc_connection_profile_is_wifi_wps_supported_p(void)
 {
-    bool flag;
+       bool flag;
 
-    if(wifi_supported) {
-        int ret = connection_profile_is_wifi_wps_supported(profile_wifi, &flag);
-        CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_NONE);
-    } else {
-        int ret = connection_profile_is_wifi_wps_supported(profile_wifi, &flag);
-        CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-    }
+       if (wifi_supported) {
+               int ret = connection_profile_is_wifi_wps_supported(profile_wifi, &flag);
+               CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_NONE);
+       } else {
+               int ret = connection_profile_is_wifi_wps_supported(profile_wifi, &flag);
+               CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_NOT_SUPPORTED);
+       }
 
-    return 0;
+       return 0;
 }
 
 /**
  * @testcase           utc_connection_profile_is_wifi_wps_supported_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_is_wifi_wps_supported should fail with invalid parameter.
- * @scenario           Verify connection_profile_is_wifi_wps_supported by passing invalid parameter.
+ * @scenario           Verify connection_profile_is_wifi_wps_supported by passing invalid parameter.
  */
 int utc_connection_profile_is_wifi_wps_supported_n(void)
 {
-    connection_profile_h profile_inval = NULL;
-    bool flag;
+       connection_profile_h profile_inval = NULL;
+       bool flag;
 
-    if(wifi_supported) {
-        int ret = connection_profile_is_wifi_wps_supported(profile_inval, NULL);
-        CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
-        ret = connection_profile_is_wifi_wps_supported(profile_inval, &flag);
-        CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
-        ret = connection_profile_is_wifi_wps_supported(profile_wifi, NULL);
-        CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
-        ret = connection_profile_is_wifi_wps_supported(profile_cellular, &flag);
-        CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
-    } else {
-        int ret = connection_profile_is_wifi_wps_supported(profile_inval, NULL);
-        CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-    }
+       if (wifi_supported) {
+               int ret = connection_profile_is_wifi_wps_supported(profile_inval, NULL);
+               CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+               ret = connection_profile_is_wifi_wps_supported(profile_inval, &flag);
+               CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+               ret = connection_profile_is_wifi_wps_supported(profile_wifi, NULL);
+               CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+               ret = connection_profile_is_wifi_wps_supported(profile_cellular, &flag);
+               CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+       } else {
+               int ret = connection_profile_is_wifi_wps_supported(profile_inval, NULL);
+               CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_NOT_SUPPORTED);
+       }
 
-    return 0;
+       return 0;
 }
 
 /**
- * @testcase        utc_connection_profile_get_ipv6_state_p
- * @since_tizen     4.0
- * @type            Positive
- * @description     Gets IPv6 state
- * @scenario        Invoking connection_profile_get_ipv6_state with valid parameter.
+ * @testcase           utc_connection_profile_get_ipv6_state_p
+ * @since_tizen                4.0
+ * @type               Positive
+ * @description                Gets IPv6 state
+ * @scenario           Invoking connection_profile_get_ipv6_state with valid parameter.
  */
 int utc_connection_profile_get_ipv6_state_p(void)
 {
        connection_profile_state_e state;
        int ret = test_get_any_profile(&profile_temp);
 
-       if(all_features_not_supported) {
+       if (all_features_not_supported) {
                ret = connection_profile_get_ipv6_state(profile_temp, &state);
                CHECK_RETURN("connection_profile_get_ipv6_state", ret, CONNECTION_ERROR_NOT_SUPPORTED);
                return 0;
@@ -3002,22 +2984,22 @@ int utc_connection_profile_get_ipv6_state_p(void)
        ret = connection_profile_get_ipv6_state(profile_temp, &state);
        CHECK_RETURN("connection_profile_get_ipv6_state", ret, CONNECTION_ERROR_NONE);
 
-    return 0;
+       return 0;
 }
 
 /**
- * @testcase        utc_connection_profile_get_ipv6_state_n
- * @since_tizen     4.0
- * @type            Negative
- * @description     connection_profile_get_ipv6_state should be failed with invalid parameter.
- * @scenario        Verify connection_profile_get_ipv6_state by passing invalid parameter.
+ * @testcase           utc_connection_profile_get_ipv6_state_n
+ * @since_tizen                4.0
+ * @type               Negative
+ * @description                connection_profile_get_ipv6_state should be failed with invalid parameter.
+ * @scenario           Verify connection_profile_get_ipv6_state by passing invalid parameter.
  */
 int utc_connection_profile_get_ipv6_state_n(void)
 {
        connection_profile_h profile_inval = NULL;
        connection_profile_state_e state;
 
-       if(all_features_not_supported) {
+       if (all_features_not_supported) {
                int ret = connection_profile_get_ipv6_state(profile_inval, NULL);
                CHECK_RETURN("connection_profile_get_ipv6_state", ret, CONNECTION_ERROR_NOT_SUPPORTED);
                return 0;
@@ -3030,15 +3012,15 @@ int utc_connection_profile_get_ipv6_state_n(void)
        ret = connection_profile_get_ipv6_state(profile_wifi, NULL);
        CHECK_RETURN("connection_profile_get_ipv6_state", ret, CONNECTION_ERROR_INVALID_PARAMETER);
 
-    return 0;
+       return 0;
 }
 
 /**
- * @testcase        utc_connection_profile_get_prefix_length_p
- * @since_tizen     4.0
- * @type            Positive
- * @description     Gets prefix length
- * @scenario        Invoking connection_profile_get_ipv6_state with valid parameter.
+ * @testcase           utc_connection_profile_get_prefix_length_p
+ * @since_tizen                4.0
+ * @type               Positive
+ * @description                Gets prefix length
+ * @scenario           Invoking connection_profile_get_ipv6_state with valid parameter.
  */
 int utc_connection_profile_get_prefix_length_p(void)
 {
@@ -3136,15 +3118,15 @@ int utc_connection_profile_set_prefix_length_n(void)
        int ret = connection_profile_set_prefix_length(profile_inval, CONNECTION_ADDRESS_FAMILY_IPV4, length);
        CHECK_RETURN("connection_profile_set_prefix_length", ret, CONNECTION_ERROR_INVALID_PARAMETER);
 
-    return 0;
+       return 0;
 }
 
 /**
- * @testcase        utc_connection_profile_get_dns_config_type_p
- * @since_tizen     4.0
- * @type            Positive
- * @description     Gets DNS configuration type
- * @scenario        Invoking connection_profile_get_dns_config_typ with valid parameter.
+ * @testcase           utc_connection_profile_get_dns_config_type_p
+ * @since_tizen                4.0
+ * @type               Positive
+ * @description                Gets DNS configuration type
+ * @scenario           Invoking connection_profile_get_dns_config_typ with valid parameter.
  */
 int utc_connection_profile_get_dns_config_type_p(void)
 {
@@ -3169,18 +3151,18 @@ int utc_connection_profile_get_dns_config_type_p(void)
 }
 
 /**
- * @testcase        utc_connection_profile_get_dns_config_type_n
- * @since_tizen     4.0
- * @type            Negative
- * @description     connection_profile_get_dns_config_typ should be failed with invalid parameter.
- * @scenario        Verify connection_profile_get_dns_config_typ by passing invalid parameter.
+ * @testcase           utc_connection_profile_get_dns_config_type_n
+ * @since_tizen                4.0
+ * @type               Negative
+ * @description                connection_profile_get_dns_config_typ should be failed with invalid parameter.
+ * @scenario           Verify connection_profile_get_dns_config_typ by passing invalid parameter.
  */
 int utc_connection_profile_get_dns_config_type_n(void)
 {
        connection_profile_h profile_inval = NULL;
        connection_dns_config_type_e config_type;
 
-       if(all_features_not_supported) {
+       if (all_features_not_supported) {
                int ret = connection_profile_get_dns_config_type(profile_inval, CONNECTION_ADDRESS_FAMILY_IPV4, NULL);
                CHECK_RETURN("connection_profile_get_dns_config_type", ret, CONNECTION_ERROR_NOT_SUPPORTED);
                return 0;
@@ -3197,11 +3179,11 @@ int utc_connection_profile_get_dns_config_type_n(void)
 }
 
 /**
- * @testcase        utc_connection_profile_set_dns_config_type_p
- * @since_tizen     4.0
- * @type            Positive
- * @description     Sets DNS configuration type
- * @scenario        Invoking connection_profile_set_dns_config_typ with valid parameter.
+ * @testcase           utc_connection_profile_set_dns_config_type_p
+ * @since_tizen                4.0
+ * @type               Positive
+ * @description                Sets DNS configuration type
+ * @scenario           Invoking connection_profile_set_dns_config_typ with valid parameter.
  */
 int utc_connection_profile_set_dns_config_type_p(void)
 {
@@ -3226,10 +3208,10 @@ int utc_connection_profile_set_dns_config_type_p(void)
 
 /**
  * @testcase           utc_connection_profile_set_dns_config_type_n
- * @since_tizen        4.0
- * @type                       Negative
+ * @since_tizen                4.0
+ * @type               Negative
  * @description                connection_profile_set_dns_config_typ should be failed with invalid parameter.
- * @scenario           Verify connection_profile_get_dns_config_typ by passing invalid parameter.
+ * @scenario           Verify connection_profile_get_dns_config_typ by passing invalid parameter.
  */
 int utc_connection_profile_set_dns_config_type_n(void)
 {
@@ -3252,10 +3234,10 @@ int utc_connection_profile_set_dns_config_type_n(void)
 
 /**
  * @testcase           utc_connection_profile_get_internet_state_p
- * @since_tizen        5.5
+ * @since_tizen                5.5
  * @type               Positive
  * @description                Gets internet state.
- * @scenario           Verify connection_profile_get_internet_state by passing valid parameter.
+ * @scenario           Verify connection_profile_get_internet_state by passing valid parameter.
  */
 int utc_connection_profile_get_internet_state_p(void)
 {
@@ -3276,10 +3258,10 @@ int utc_connection_profile_get_internet_state_p(void)
 
 /**
  * @testcase           utc_connection_profile_get_internet_state_n1
- * @since_tizen        5.5
+ * @since_tizen                5.5
  * @type               Negative
  * @description                connection_profile_get_internet_state should be failed with invalid parameter.
- * @scenario           Verify connection_profile_get_internet_state by passing profile as NULL.
+ * @scenario           Verify connection_profile_get_internet_state by passing profile as NULL.
  */
 int utc_connection_profile_get_internet_state_n1(void)
 {
@@ -3298,10 +3280,10 @@ int utc_connection_profile_get_internet_state_n1(void)
 
 /**
  * @testcase           utc_connection_profile_get_internet_state_n2
- * @since_tizen        5.5
+ * @since_tizen                5.5
  * @type               Negative
  * @description                connection_profile_get_internet_state should be failed with invalid parameter.
- * @scenario           Verify connection_profile_get_internet_state by passing invalid parameter.
+ * @scenario           Verify connection_profile_get_internet_state by passing invalid parameter.
  */
 int utc_connection_profile_get_internet_state_n2(void)
 {
@@ -3320,10 +3302,10 @@ int utc_connection_profile_get_internet_state_n2(void)
 
 /**
  * @testcase           utc_connection_profile_destroy_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Destroys a profile handle.
- * @scenario           Invoking connection_profile_destroy with valid parameter.
+ * @scenario           Invoking connection_profile_destroy with valid parameter.
  */
 int utc_connection_profile_destroy_p(void)
 {
@@ -3345,20 +3327,18 @@ int utc_connection_profile_destroy_p(void)
 
 /**
  * @testcase           utc_connection_profile_destroy_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_destroy should fail with invalid parameter.
- * @scenario           Verify connection_profile_destroy by passing invalid parameter.
+ * @scenario           Verify connection_profile_destroy by passing invalid parameter.
  */
 int utc_connection_profile_destroy_n(void)
 {
        int ret = connection_profile_destroy(NULL);
 
-       if (all_features_not_supported) {
+       if (all_features_not_supported)
                CHECK_RETURN("connection_profile_destroy", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       } else {
+       else
                CHECK_RETURN("connection_profile_destroy", ret, CONNECTION_ERROR_INVALID_PARAMETER);
-       }
-
        return 0;
 }
index c4ff027..6c9bd5d 100755 (executable)
@@ -136,10 +136,10 @@ void utc_network_connection_cleanup(void)
 
 /**
  * @testcase           utc_connection_create_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Creates a handle for managing data connections.
- * @scenario           Invoking connection_create with valid parameter.Destroy and create Connection.
+ * @scenario           Invoking connection_create with valid parameter.Destroy and create Connection.
  */
 int utc_connection_create_p(void)
 {
@@ -165,10 +165,10 @@ int utc_connection_create_p(void)
 
 /**
  * @testcase           utc_connection_create_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_create should fail with invalid parameter.
- * @scenario           Verify connection_create by passing NULL parameter.
+ * @scenario           Verify connection_create by passing NULL parameter.
  */
 int utc_connection_create_n(void)
 {
@@ -194,10 +194,10 @@ int utc_connection_create_n(void)
 
 /**
  * @testcase           utc_connection_get_ip_address_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the IP address of the current connection.
- * @scenario           Invoking connection_get_ip_address with valid parameter.
+ * @scenario           Invoking connection_get_ip_address with valid parameter.
  */
 int utc_connection_get_ip_address_p(void)
 {
@@ -206,30 +206,26 @@ int utc_connection_get_ip_address_p(void)
        int ret = connection_get_ip_address(connection, CONNECTION_ADDRESS_FAMILY_IPV4, &ip_address);
        FREE_RESOURCE(ip_address);
 
-       if (all_features_not_supported) {
+       if (all_features_not_supported)
                CHECK_RETURN("connection_get_ip_address", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       } else {
+       else
                CHECK_RETURN("connection_get_ip_address", ret, CONNECTION_ERROR_NONE);
-       }
-
        ret = connection_get_ip_address(connection, CONNECTION_ADDRESS_FAMILY_IPV6, &ip_address);
        FREE_RESOURCE(ip_address);
 
-       if (all_features_not_supported) {
+       if (all_features_not_supported)
                CHECK_RETURN("connection_get_ip_address", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       } else {
+       else
                CHECK_RETURN("connection_get_ip_address", ret, CONNECTION_ERROR_NONE);
-       }
-
        return 0;
 }
 
 /**
  * @testcase           utc_connection_get_ip_address_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_get_ip_address should fail with invalid parameter.
- * @scenario           Verify connection_get_ip_address by passing invalid parameter.
+ * @scenario           Verify connection_get_ip_address by passing invalid parameter.
  */
 int utc_connection_get_ip_address_n(void)
 {
@@ -265,10 +261,10 @@ int utc_connection_get_ip_address_n(void)
 
 /**
  * @testcase           utc_connection_get_proxy_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the proxy address of the current connection.
- * @scenario           Invoking connection_get_proxy with valid parameter.
+ * @scenario           Invoking connection_get_proxy with valid parameter.
  */
 int utc_connection_get_proxy_p(void)
 {
@@ -276,22 +272,19 @@ int utc_connection_get_proxy_p(void)
 
        int ret = connection_get_proxy(connection, CONNECTION_ADDRESS_FAMILY_IPV4, &proxy);
        FREE_RESOURCE(proxy);
-
-       if (all_features_not_supported) {
+       if (all_features_not_supported)
                CHECK_RETURN("connection_get_proxy", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       } else {
+       else
                CHECK_RETURN("connection_get_proxy", ret, CONNECTION_ERROR_NONE);
-       }
-
        return 0;
 }
 
 /**
  * @testcase           utc_connection_get_proxy_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_get_proxy should fail with invalid parameter.
- * @scenario           Verify connection_get_proxy by passing invalid parameter.
+ * @scenario           Verify connection_get_proxy by passing invalid parameter.
  */
 int utc_connection_get_proxy_n(void)
 {
@@ -327,10 +320,10 @@ int utc_connection_get_proxy_n(void)
 
 /**
  * @testcase           utc_connection_get_type_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_get_type should fail with invalid parameter.
- * @scenario           Verify connection_get_type by passing invalid parameter.
+ * @scenario           Verify connection_get_type by passing invalid parameter.
  */
 int utc_connection_get_type_n(void)
 {
@@ -355,10 +348,10 @@ int utc_connection_get_type_n(void)
 
 /**
  * @testcase           utc_connection_get_type_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the type of the current profile for data connection.
- * @scenario           Invoking connection_get_type with valid parameter.
+ * @scenario           Invoking connection_get_type with valid parameter.
  */
 int utc_connection_get_type_p(void)
 {
@@ -366,21 +359,19 @@ int utc_connection_get_type_p(void)
 
        int ret = connection_get_type(connection, &state);
 
-       if (all_features_not_supported) {
+       if (all_features_not_supported)
                CHECK_RETURN("connection_get_type", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       } else {
+       else
                CHECK_RETURN("connection_get_type", ret, CONNECTION_ERROR_NONE);
-       }
-
        return 0;
 }
 
 /**
  * @testcase           utc_connection_is_metered_network_n
- * @since_tizen        4.0
+ * @since_tizen                4.0
  * @type               Negative
  * @description                connection_is_metered_network should fail with invalid parameter.
- * @scenario           Verify utc_connection_is_metered_network_n by passing invalid parameter.
+ * @scenario           Verify utc_connection_is_metered_network_n by passing invalid parameter.
  */
 int utc_connection_is_metered_network_n(void)
 {
@@ -405,10 +396,10 @@ int utc_connection_is_metered_network_n(void)
 
 /**
  * @testcase           utc_connection_is_metered_network_p
- * @since_tizen        4.0
+ * @since_tizen                4.0
  * @type               Positive
  * @description                Gets if the current connection is metered.
- * @scenario           Invoking utc_connection_is_metered_network_p with valid parameter.
+ * @scenario           Invoking utc_connection_is_metered_network_p with valid parameter.
  */
 int utc_connection_is_metered_network_p(void)
 {
@@ -418,23 +409,21 @@ int utc_connection_is_metered_network_p(void)
        int ret = connection_is_metered_network(connection, &state);
        connection_get_type(connection, &type);
 
-       if (all_features_not_supported) {
+       if (all_features_not_supported)
                CHECK_RETURN("connection_is_metered_network", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       } else if (state) {
+       else if (state)
                CHECK_RETURN("connection_is_metered_network", type, CONNECTION_TYPE_CELLULAR);
-       } else {
+       else
                CHECK_RETURN("connection_is_metered_network", ret, CONNECTION_ERROR_NONE);
-       }
-
        return 0;
 }
 
 /**
  * @testcase           utc_connection_get_cellular_state_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_get_cellular_state should fail with invalid parameter.
- * @scenario           Verify connection_get_cellular_state by passing invalid parameter.
+ * @scenario           Verify connection_get_cellular_state by passing invalid parameter.
  */
 int utc_connection_get_cellular_state_n(void)
 {
@@ -458,10 +447,10 @@ int utc_connection_get_cellular_state_n(void)
 
 /**
  * @testcase           utc_connection_get_cellular_state_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the state of cellular connection.
- * @scenario           Invoking connection_get_cellular_state with valid parameter.
+ * @scenario           Invoking connection_get_cellular_state with valid parameter.
  */
 int utc_connection_get_cellular_state_p(void)
 {
@@ -481,10 +470,10 @@ int utc_connection_get_cellular_state_p(void)
 
 /**
  * @testcase           utc_connection_get_ethernet_state_n
- * @since_tizen        2.4
+ * @since_tizen                2.4
  * @type               Negative
  * @description                connection_get_ethernet_state should fail with invalid parameter.
- * @scenario           Verify connection_get_ethernet_state by passing invalid parameter.
+ * @scenario           Verify connection_get_ethernet_state by passing invalid parameter.
  */
 int utc_connection_get_ethernet_state_n(void)
 {
@@ -508,10 +497,10 @@ int utc_connection_get_ethernet_state_n(void)
 
 /**
  * @testcase           utc_connection_get_ethernet_state_p
- * @since_tizen        2.4
+ * @since_tizen                2.4
  * @type               Positive
  * @description                Gets the state of the Ethernet.
- * @scenario           Invoking connection_get_ethernet_state with valid parameter.
+ * @scenario           Invoking connection_get_ethernet_state with valid parameter.
  */
 int utc_connection_get_ethernet_state_p(void)
 {
@@ -531,10 +520,10 @@ int utc_connection_get_ethernet_state_p(void)
 
 /**
  * @testcase           utc_connection_get_wifi_state_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_get_wifi_state should fail with invalid parameter.
- * @scenario           Verify connection_get_wifi_state by passing invalid parameter.
+ * @scenario           Verify connection_get_wifi_state by passing invalid parameter.
  */
 int utc_connection_get_wifi_state_n(void)
 {
@@ -558,10 +547,10 @@ int utc_connection_get_wifi_state_n(void)
 
 /**
  * @testcase           utc_connection_get_wifi_state_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the state of the Wi-Fi.
- * @scenario           Invoking connection_get_wifi_state with valid parameter.
+ * @scenario           Invoking connection_get_wifi_state with valid parameter.
  */
 int utc_connection_get_wifi_state_p(void)
 {
@@ -581,10 +570,10 @@ int utc_connection_get_wifi_state_p(void)
 
 /**
  * @testcase           utc_connection_get_bt_state_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_get_bt_state should fail with invalid parameter.
- * @scenario           Verify connection_get_bt_state by passing invalid parameter.
+ * @scenario           Verify connection_get_bt_state by passing invalid parameter.
  */
 int utc_connection_get_bt_state_n(void)
 {
@@ -608,10 +597,10 @@ int utc_connection_get_bt_state_n(void)
 
 /**
  * @testcase           utc_connection_get_bt_state_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the state of the bluetooth.The returned state is for the bluetooth connection state.
- * @scenario           Invoking connection_get_bt_state with valid parameter.
+ * @scenario           Invoking connection_get_bt_state with valid parameter.
  */
 int utc_connection_get_bt_state_p(void)
 {
@@ -631,10 +620,10 @@ int utc_connection_get_bt_state_p(void)
 
 /**
  * @testcase           utc_connection_get_mac_address_n
- * @since_tizen        2.4
+ * @since_tizen                2.4
  * @type               Negative
  * @description                connection_get_mac_address should fail with invalid parameter.
- * @scenario           Verify connection_get_mac_address by passing invalid parameter.
+ * @scenario           Verify connection_get_mac_address by passing invalid parameter.
  */
 int utc_connection_get_mac_address_n(void)
 {
@@ -662,10 +651,10 @@ int utc_connection_get_mac_address_n(void)
 
 /**
  * @testcase           utc_connection_get_mac_address_p
- * @since_tizen        2.4
+ * @since_tizen                2.4
  * @type               Positive
  * @description                Gets the MAC address of the Wi-Fi or ethernet.
- * @scenario           Invoking connection_get_mac_address with valid parameter.
+ * @scenario           Invoking connection_get_mac_address with valid parameter.
  */
 int utc_connection_get_mac_address_p(void)
 {
@@ -676,7 +665,7 @@ int utc_connection_get_mac_address_p(void)
                ret = connection_get_mac_address(connection, CONNECTION_TYPE_WIFI, &mac_addr);
                assert(mac_addr); FREE_RESOURCE(mac_addr);
                CHECK_RETURN("connection_get_mac_address", ret, CONNECTION_ERROR_NONE);
-       } else if(ethernet_supported) {
+       } else if (ethernet_supported) {
                ret = connection_get_mac_address(connection, CONNECTION_TYPE_ETHERNET, &mac_addr);
                assert(mac_addr); FREE_RESOURCE(mac_addr);
                CHECK_RETURN("connection_get_mac_address", ret, CONNECTION_ERROR_NONE);
@@ -691,10 +680,10 @@ int utc_connection_get_mac_address_p(void)
 
 /**
  * @testcase           utc_connection_set_ethernet_cable_state_chaged_cb_n
- * @since_tizen        2.4
+ * @since_tizen                2.4
  * @type               Negative
  * @description                connection_set_ethernet_cable_state_chaged_cb should fail with invalid parameter.
- * @scenario           Verify connection_set_ethernet_cable_state_chaged_cb by passing invalid parameter.
+ * @scenario           Verify connection_set_ethernet_cable_state_chaged_cb by passing invalid parameter.
  */
 int utc_connection_set_ethernet_cable_state_chaged_cb_n(void)
 {
@@ -731,21 +720,21 @@ int utc_connection_set_ethernet_cable_state_chaged_cb_p(void)
 
 /**
  * @testcase           utc_connection_unset_ethernet_cable_state_chaged_cb_n
- * @since_tizen        2.4
+ * @since_tizen                2.4
  * @type               Negative
  * @description                connection_unset_ethernet_cable_state_chaged_cb should fail with invalid parameter.
- * @scenario           Verify connection_unset_ethernet_cable_state_chaged_cb by passing invalid parameter.
+ * @scenario           Verify connection_unset_ethernet_cable_state_chaged_cb by passing invalid parameter.
  */
 int utc_connection_unset_ethernet_cable_state_chaged_cb_n(void)
 {
        int ret;
        ret = connection_unset_ethernet_cable_state_chaged_cb(NULL);
 
-       if (ethernet_supported == false) {
+       if (ethernet_supported == false)
                CHECK_RETURN("connection_unset_ethernet_cable_state_chaged_cb", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       } else {
+       else
                CHECK_RETURN("connection_unset_ethernet_cable_state_chaged_cb", ret, CONNECTION_ERROR_INVALID_PARAMETER);
-       }
+
 
        return 0;
 }
@@ -754,22 +743,19 @@ int utc_connection_unset_ethernet_cable_state_chaged_cb_p(void)
 {
        int ret;
        ret = connection_unset_ethernet_cable_state_chaged_cb(connection);
-
-       if (ethernet_supported == false) {
+       if (ethernet_supported == false)
                CHECK_RETURN("connection_unset_ethernet_cable_state_chaged_cb", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       } else {
+       else
                CHECK_RETURN("connection_unset_ethernet_cable_state_chaged_cb", ret, CONNECTION_ERROR_NONE);
-       }
-
        return 0;
 }
 
 /**
  * @testcase           utc_connection_get_ethernet_cable_state_n
- * @since_tizen        2.4
+ * @since_tizen                2.4
  * @type               Negative
  * @description                connection_get_ethernet_cable_state should fail with invalid parameter.
- * @scenario           Verify connection_get_ethernet_cable_state by passing invalid parameter.
+ * @scenario           Verify connection_get_ethernet_cable_state by passing invalid parameter.
  */
 int utc_connection_get_ethernet_cable_state_n(void)
 {
@@ -792,10 +778,10 @@ int utc_connection_get_ethernet_cable_state_n(void)
 
 /**
  * @testcase           utc_connection_get_ethernet_cable_state_p
- * @since_tizen        2.4
+ * @since_tizen                2.4
  * @type               Positive
  * @description                Checks for ethernet cable is attached or not.
- * @scenario           Invoking connection_get_ethernet_cable_state with valid parameter.
+ * @scenario           Invoking connection_get_ethernet_cable_state with valid parameter.
  */
 int utc_connection_get_ethernet_cable_state_p(void)
 {
@@ -803,41 +789,37 @@ int utc_connection_get_ethernet_cable_state_p(void)
        connection_ethernet_cable_state_e cable_state;
 
        ret = connection_get_ethernet_cable_state(connection, &cable_state);
-       if (ethernet_supported == false) {
+       if (ethernet_supported == false)
                CHECK_RETURN("connection_get_ethernet_cable_state", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       } else {
+       else
                CHECK_RETURN("connection_get_ethernet_cable_state", ret, CONNECTION_ERROR_NONE);
-       }
-
        return 0;
 }
 
 /**
  * @testcase           utc_connection_get_current_profile_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the name of the default profile.
- * @scenario           Invoking connection_get_current_profile with valid parameter.
+ * @scenario           Invoking connection_get_current_profile with valid parameter.
  */
 int utc_connection_get_current_profile_p(void)
 {
        int ret = connection_get_current_profile(connection, &profile_temp);
 
-       if (all_features_not_supported) {
+       if (all_features_not_supported)
                CHECK_RETURN("connection_get_current_profile", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       } else {
+       else
                CHECK_RETURN("connection_get_current_profile", ret, CONNECTION_ERROR_NONE);
-       }
-
        return 0;
 }
 
 /**
  * @testcase           utc_connection_get_current_profile_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_get_current_profile should fail with invalid parameter.
- * @scenario           Verify connection_get_current_profile by passing invalid parameter.
+ * @scenario           Verify connection_get_current_profile by passing invalid parameter.
  */
 int utc_connection_get_current_profile_n(void)
 {
@@ -862,16 +844,16 @@ int utc_connection_get_current_profile_n(void)
 
 /**
  * @testcase           utc_connection_get_default_cellular_service_profile_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the default profile which provides the given cellular service.
- * @scenario           Invoking connection_get_default_cellular_service_profile with valid parameter.
+ * @scenario           Invoking connection_get_default_cellular_service_profile with valid parameter.
  */
 int utc_connection_get_default_cellular_service_profile_p(void)
 {
        connection_profile_h profile = NULL;
 
-       if(!telephony_supported) {
+       if (!telephony_supported) {
                int ret = connection_get_default_cellular_service_profile(connection, CONNECTION_CELLULAR_SERVICE_TYPE_INTERNET, &profile);
                CHECK_RETURN("connection_get_default_cellular_service_profile", ret, CONNECTION_ERROR_NOT_SUPPORTED);
                return 0;
@@ -896,10 +878,10 @@ int utc_connection_get_default_cellular_service_profile_p(void)
 
 /**
  * @testcase           utc_connection_get_default_cellular_service_profile_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_get_default_cellular_service_profile should fail with invalid parameter.
- * @scenario           Verify connection_get_default_cellular_service_profile by passing invalid parameter.
+ * @scenario           Verify connection_get_default_cellular_service_profile by passing invalid parameter.
  */
 int utc_connection_get_default_cellular_service_profile_n(void)
 {
@@ -926,10 +908,10 @@ int utc_connection_get_default_cellular_service_profile_n(void)
 
 /**
  * @testcase           utc_connection_set_default_cellular_service_profile_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Sets the default profile which provides the given cellular service.
- * @scenario           Invoking connection_set_default_cellular_service_profile with valid parameter.
+ * @scenario           Invoking connection_set_default_cellular_service_profile with valid parameter.
  */
 int utc_connection_set_default_cellular_service_profile_p(void)
 {
@@ -958,10 +940,10 @@ int utc_connection_set_default_cellular_service_profile_p(void)
 
 /**
  * @testcase           utc_connection_set_default_cellular_service_profile_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_set_default_cellular_service_profile should fail with invalid parameter.
- * @scenario           Verify connection_set_default_cellular_service_profile by passing invalid parameter.
+ * @scenario           Verify connection_set_default_cellular_service_profile by passing invalid parameter.
  */
 int utc_connection_set_default_cellular_service_profile_n(void)
 {
@@ -986,10 +968,10 @@ int utc_connection_set_default_cellular_service_profile_n(void)
 
 /**
  * @testcase           utc_connection_set_default_cellular_service_profile_async_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Sets the default profile which provides the given cellular service, asynchronously.
- * @scenario           Invoking connection_set_default_cellular_service_profile_async with valid parameter.
+ * @scenario           Invoking connection_set_default_cellular_service_profile_async with valid parameter.
  */
 int utc_connection_set_default_cellular_service_profile_async_p(void)
 {
@@ -1019,10 +1001,10 @@ int utc_connection_set_default_cellular_service_profile_async_p(void)
 
 /**
  * @testcase           utc_connection_set_default_cellular_service_profile_async_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_set_default_cellular_service_profile_async should fail with invalid parameter.
- * @scenario           Verify connection_set_default_cellular_service_profile_async by passing invalid parameter.
+ * @scenario           Verify connection_set_default_cellular_service_profile_async by passing invalid parameter.
  */
 int utc_connection_set_default_cellular_service_profile_async_n(void)
 {
@@ -1049,10 +1031,10 @@ int utc_connection_set_default_cellular_service_profile_async_n(void)
 
 /**
  * @testcase           utc_connection_set_type_changed_cb_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_set_type_changed_cb should fail with invalid parameter.
- * @scenario           Verify connection_set_type_changed_cb by passing invalid parameter.
+ * @scenario           Verify connection_set_type_changed_cb by passing invalid parameter.
  */
 int utc_connection_set_type_changed_cb_n(void)
 {
@@ -1076,10 +1058,10 @@ int utc_connection_set_type_changed_cb_n(void)
 
 /**
  * @testcase           utc_connection_set_type_changed_cb_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Registers the callback that is called when the type of the current connection is changed.
- * @scenario           Invoking connection_set_type_changed_cb with valid parameter.
+ * @scenario           Invoking connection_set_type_changed_cb with valid parameter.
  */
 int utc_connection_set_type_changed_cb_p(void)
 {
@@ -1100,50 +1082,46 @@ int utc_connection_set_type_changed_cb_p(void)
 
 /**
  * @testcase           utc_connection_unset_type_changed_cb_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_unset_type_changed_cb should fail with invalid parameter.
- * @scenario           Verify connection_unset_type_changed_cb by passing invalid parameter.
+ * @scenario           Verify connection_unset_type_changed_cb by passing invalid parameter.
  */
 int utc_connection_unset_type_changed_cb_n(void)
 {
        int ret = connection_unset_type_changed_cb(NULL);
 
-       if (all_features_not_supported) {
+       if (all_features_not_supported)
                CHECK_RETURN("connection_unset_type_changed_cb", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       } else {
+       else
                CHECK_RETURN("connection_unset_type_changed_cb", ret, CONNECTION_ERROR_INVALID_PARAMETER);
-       }
-
        return 0;
 }
 
 /**
  * @testcase           utc_connection_unset_type_changed_cb_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Unregisters the callback that is called when the type of current connection is changed.
- * @scenario           Invoking connection_unset_type_changed_cb with valid parameter.
+ * @scenario           Invoking connection_unset_type_changed_cb with valid parameter.
  */
 int utc_connection_unset_type_changed_cb_p(void)
 {
        int ret = connection_unset_type_changed_cb(connection);
 
-       if (all_features_not_supported) {
+       if (all_features_not_supported)
                CHECK_RETURN("connection_unset_type_changed_cb", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       } else {
+       else
                CHECK_RETURN("connection_unset_type_changed_cb", ret, CONNECTION_ERROR_NONE);
-       }
-
        return 0;
 }
 
 /**
  * @testcase           utc_connection_set_ip_address_changed_cb_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_set_ip_address_changed_cb should fail with invalid parameter.
- * @scenario           Verify connection_set_ip_address_changed_cb by passing invalid parameter.
+ * @scenario           Verify connection_set_ip_address_changed_cb by passing invalid parameter.
  */
 int utc_connection_set_ip_address_changed_cb_n(void)
 {
@@ -1167,10 +1145,10 @@ int utc_connection_set_ip_address_changed_cb_n(void)
 
 /**
  * @testcase           utc_connection_set_ip_address_changed_cb_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Registers the callback that is called when the IP address is changed.
- * @scenario           Invoking connection_set_ip_address_changed_cb with valid parameter.
+ * @scenario           Invoking connection_set_ip_address_changed_cb with valid parameter.
  */
 int utc_connection_set_ip_address_changed_cb_p(void)
 {
@@ -1191,50 +1169,46 @@ int utc_connection_set_ip_address_changed_cb_p(void)
 
 /**
  * @testcase           utc_connection_unset_ip_address_changed_cb_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_unset_ip_address_changed_cb should fail with invalid parameter.
- * @scenario           Verify connection_unset_ip_address_changed_cb by passing invalid parameter.
+ * @scenario           Verify connection_unset_ip_address_changed_cb by passing invalid parameter.
  */
 int utc_connection_unset_ip_address_changed_cb_n(void)
 {
        int ret = connection_unset_ip_address_changed_cb(NULL);
 
-       if (all_features_not_supported) {
+       if (all_features_not_supported)
                CHECK_RETURN("connection_set_ip_address_changed_cb", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       } else {
+       else
                CHECK_RETURN("connection_set_ip_address_changed_cb", ret, CONNECTION_ERROR_INVALID_PARAMETER);
-       }
-
        return 0;
 }
 
 /**
  * @testcase           utc_connection_unset_ip_address_changed_cb_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Unregisters the callback that is called when the IP address is changed.
- * @scenario           Invoking connection_unset_ip_address_changed_cb with valid parameter.
+ * @scenario           Invoking connection_unset_ip_address_changed_cb with valid parameter.
  */
 int utc_connection_unset_ip_address_changed_cb_p(void)
 {
        int ret = connection_unset_ip_address_changed_cb(connection);
 
-       if (all_features_not_supported) {
+       if (all_features_not_supported)
                CHECK_RETURN("connection_unset_ip_address_changed_cb", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       } else {
+       else
                CHECK_RETURN("connection_unset_ip_address_changed_cb", ret, CONNECTION_ERROR_NONE);
-       }
-
        return 0;
 }
 
 /**
  * @testcase           utc_connection_set_proxy_address_changed_cb_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_set_proxy_address_changed_cb should fail with invalid parameter.
- * @scenario           Verify connection_set_proxy_address_changed_cb by passing invalid parameter.
+ * @scenario           Verify connection_set_proxy_address_changed_cb by passing invalid parameter.
  */
 int utc_connection_set_proxy_address_changed_cb_n(void)
 {
@@ -1258,10 +1232,10 @@ int utc_connection_set_proxy_address_changed_cb_n(void)
 
 /**
  * @testcase           utc_connection_set_proxy_address_changed_cb_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Registers the callback that is called when the proxy address is changed.
- * @scenario           Invoking connection_set_proxy_address_changed_cb with valid parameter.
+ * @scenario           Invoking connection_set_proxy_address_changed_cb with valid parameter.
  */
 int utc_connection_set_proxy_address_changed_cb_p(void)
 {
@@ -1282,50 +1256,46 @@ int utc_connection_set_proxy_address_changed_cb_p(void)
 
 /**
  * @testcase           utc_connection_unset_proxy_address_changed_cb_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_unset_proxy_address_changed_cb should fail with invalid parameter.
- * @scenario           Verify connection_unset_proxy_address_changed_cb by passing invalid parameter.
+ * @scenario           Verify connection_unset_proxy_address_changed_cb by passing invalid parameter.
  */
 int utc_connection_unset_proxy_address_changed_cb_n(void)
 {
-    int ret = connection_unset_proxy_address_changed_cb(NULL);
+       int ret = connection_unset_proxy_address_changed_cb(NULL);
 
-       if (all_features_not_supported) {
+       if (all_features_not_supported)
                CHECK_RETURN("connection_unset_proxy_address_changed_cb", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       } else {
+       else
                CHECK_RETURN("connection_unset_proxy_address_changed_cb", ret, CONNECTION_ERROR_INVALID_PARAMETER);
-       }
-
-    return 0;
+       return 0;
 }
 
 /**
  * @testcase           utc_connection_unset_proxy_address_changed_cb_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Unregisters the callback that is called when the proxy address is changed.
- * @scenario           Invoking connection_unset_proxy_address_changed_cb with valid parameter.
+ * @scenario           Invoking connection_unset_proxy_address_changed_cb with valid parameter.
  */
 int utc_connection_unset_proxy_address_changed_cb_p(void)
 {
        int ret = connection_unset_proxy_address_changed_cb(connection);
 
-       if (all_features_not_supported) {
+       if (all_features_not_supported)
                CHECK_RETURN("connection_unset_proxy_address_changed_cb", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       } else {
+       else
                CHECK_RETURN("connection_unset_proxy_address_changed_cb", ret, CONNECTION_ERROR_NONE);
-       }
-
        return 0;
 }
 
 /**
  * @testcase           utc_connection_get_statistics_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets the statistics information.
- * @scenario           Invoking connection_get_statistics with valid parameter.
+ * @scenario           Invoking connection_get_statistics with valid parameter.
  */
 int utc_connection_get_statistics_p(void)
 {
@@ -1364,17 +1334,17 @@ int utc_connection_get_statistics_p(void)
 
 /**
  * @testcase           utc_connection_get_statistics_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_get_statistics should fail with invalid parameter.
- * @scenario           Verify connection_get_statistics by passing invalid parameter.
+ * @scenario           Verify connection_get_statistics by passing invalid parameter.
  */
 int utc_connection_get_statistics_n(void)
 {
        int ret;
        long long stat;
 
-       if (telephony_supported == false && wifi_supported == false){
+       if (telephony_supported == false && wifi_supported == false) {
                ret = connection_get_statistics(NULL, -1, -1, NULL);
                CHECK_RETURN("connection_get_statistics", ret, CONNECTION_ERROR_NOT_SUPPORTED);
                return 0;
@@ -1416,10 +1386,10 @@ int utc_connection_get_statistics_n(void)
 
 /**
  * @testcase           utc_connection_reset_statistics_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Resets the statistics information.
- * @scenario           Invoking connection_reset_statistics with valid parameter.
+ * @scenario           Invoking connection_reset_statistics with valid parameter.
  */
 int utc_connection_reset_statistics_p(void)
 {
@@ -1457,10 +1427,10 @@ int utc_connection_reset_statistics_p(void)
 
 /**
  * @testcase           utc_connection_reset_statistics_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_reset_statistics should fail with invalid parameter.
- * @scenario           Verify connection_reset_statistics by passing invalid parameter.
+ * @scenario           Verify connection_reset_statistics by passing invalid parameter.
  */
 int utc_connection_reset_statistics_n(void)
 {
@@ -1489,10 +1459,10 @@ int utc_connection_reset_statistics_n(void)
 
 /**
  * @testcase           utc_connection_add_route_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_add_route should fail with invalid parameter.
- * @scenario           Verify connection_add_route by passing invalid parameter.
+ * @scenario           Verify connection_add_route by passing invalid parameter.
  */
 int utc_connection_add_route_n(void)
 {
@@ -1521,10 +1491,10 @@ int utc_connection_add_route_n(void)
 
 /**
  * @testcase           utc_connection_add_route_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Adds a IPv4 route to the routing table.You can get the @a interface_name from connection_profile_get_network_interface_name() of opened profile.
- * @scenario           Invoking connection_add_route with valid parameter.
+ * @scenario           Invoking connection_add_route with valid parameter.
  */
 int utc_connection_add_route_p(void)
 {
@@ -1552,10 +1522,10 @@ int utc_connection_add_route_p(void)
 
 /**
  * @testcase           utc_connection_remove_route_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_remove_route should fail with invalid parameter.
- * @scenario           Verify connection_remove_route by passing invalid parameter.
+ * @scenario           Verify connection_remove_route by passing invalid parameter.
  */
 int utc_connection_remove_route_n(void)
 {
@@ -1584,10 +1554,10 @@ int utc_connection_remove_route_n(void)
 
 /**
  * @testcase           utc_connection_remove_route_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Removes a IPv4 route from the routing table.get the @a interface_name from connection_profile_get_network_interface_name() of opened profile.
- * @scenario           Invoking connection_remove_route with valid parameter.
+ * @scenario           Invoking connection_remove_route with valid parameter.
  */
 int utc_connection_remove_route_p(void)
 {
@@ -1615,10 +1585,10 @@ int utc_connection_remove_route_p(void)
 
 /**
  * @testcase           utc_connection_add_route_ipv6_n
- * @since_tizen        2.3.1
+ * @since_tizen                2.3.1
  * @type               Negative
  * @description                connection_add_route_ipv6 should fail with invalid parameter.
- * @scenario           Verify connection_add_route_ipv6 by passing invalid parameter.
+ * @scenario           Verify connection_add_route_ipv6 by passing invalid parameter.
  */
 int utc_connection_add_route_ipv6_n(void)
 {
@@ -1644,10 +1614,10 @@ int utc_connection_add_route_ipv6_n(void)
 
 /**
  * @testcase           utc_connection_add_route_ipv6_p
- * @since_tizen        2.3.1
+ * @since_tizen                2.3.1
  * @type               Positive
  * @description                Adds a IPv6 route to the routing table.
- * @scenario           Invoking connection_add_route_ipv6 with valid parameter.
+ * @scenario           Invoking connection_add_route_ipv6 with valid parameter.
  */
 int utc_connection_add_route_ipv6_p(void)
 {
@@ -1674,10 +1644,10 @@ int utc_connection_add_route_ipv6_p(void)
 
 /**
  * @testcase           utc_connection_remove_route_ipv6_n
- * @since_tizen        2.3.1
+ * @since_tizen                2.3.1
  * @type               Negative
  * @description                connection_add_route_ipv6 should fail with invalid parameter.
- * @scenario           Verify connection_add_route_ipv6 by passing invalid parameter.
+ * @scenario           Verify connection_add_route_ipv6 by passing invalid parameter.
  */
 int utc_connection_remove_route_ipv6_n(void)
 {
@@ -1703,10 +1673,10 @@ int utc_connection_remove_route_ipv6_n(void)
 
 /**
  * @testcase           utc_connection_remove_route_ipv6_p
- * @since_tizen        2.3.1
+ * @since_tizen                2.3.1
  * @type               Positive
  * @description                Removes a IPV6 route from the routing table.
- * @scenario           Invoking connection_remove_route_ipv6 with valid parameter.
+ * @scenario           Invoking connection_remove_route_ipv6 with valid parameter.
  */
 int utc_connection_remove_route_ipv6_p(void)
 {
@@ -1733,11 +1703,11 @@ int utc_connection_remove_route_ipv6_p(void)
 }
 
 /**
- * @testcase        utc_connection_add_route_entry_n
- * @since_tizen     4.0
- * @type            Negative
- * @description     connection_add_route_entry should fail with invalid parameter.
- * @scenario           Verify connection_add_route_entry by passing invalid parameter.
+ * @testcase           utc_connection_add_route_entry_n
+ * @since_tizen                4.0
+ * @type               Negative
+ * @description                connection_add_route_entry should fail with invalid parameter.
+ * @scenario           Verify connection_add_route_entry by passing invalid parameter.
  */
 int utc_connection_add_route_entry_n(void)
 {
@@ -1762,11 +1732,11 @@ int utc_connection_add_route_entry_n(void)
 }
 
 /**
- * @testcase        utc_connection_add_route_entry_p
- * @since_tizen     4.0
- * @type            Positive
- * @description     Adds a route to the routing table.
- * @scenario           Invoking connection_add_route_entry with valid parameter.
+ * @testcase           utc_connection_add_route_entry_p
+ * @since_tizen                4.0
+ * @type               Positive
+ * @description                Adds a route to the routing table.
+ * @scenario           Invoking connection_add_route_entry with valid parameter.
  */
 int utc_connection_add_route_entry_p(void)
 {
@@ -1795,11 +1765,11 @@ int utc_connection_add_route_entry_p(void)
 }
 
 /**
- * @testcase        utc_connection_remove_route_entry_n
- * @since_tizen     4.0
- * @type            Negative
- * @description     connection_add_route_entry should fail with invalid parameter.
- * @scenario        Verify connection_add_route_entry by passing invalid parameter.
+ * @testcase           utc_connection_remove_route_entry_n
+ * @since_tizen                4.0
+ * @type               Negative
+ * @description                connection_add_route_entry should fail with invalid parameter.
+ * @scenario           Verify connection_add_route_entry by passing invalid parameter.
  */
 int utc_connection_remove_route_entry_n(void)
 {
@@ -1824,11 +1794,11 @@ int utc_connection_remove_route_entry_n(void)
 }
 
 /**
- * @testcase        utc_connection_remove_route_entry_p
- * @since_tizen        4.0
- * @type            Positive
- * @description     Removes a route from the routing table.
- * @scenario        Invoking connection_remove_route_entry with valid parameter.
+ * @testcase           utc_connection_remove_route_entry_p
+ * @since_tizen                4.0
+ * @type               Positive
+ * @description                Removes a route from the routing table.
+ * @scenario           Invoking connection_remove_route_entry with valid parameter.
  */
 int utc_connection_remove_route_entry_p(void)
 {
@@ -1859,10 +1829,10 @@ int utc_connection_remove_route_entry_p(void)
 
 /**
  * @testcase           utc_connection_get_profile_iterator_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_get_profile_iterator should fail with invalid parameter.
- * @scenario           Verify connection_get_profile_iterator by passing invalid parameter.
+ * @scenario           Verify connection_get_profile_iterator by passing invalid parameter.
  */
 int utc_connection_get_profile_iterator_n(void)
 {
@@ -1887,10 +1857,10 @@ int utc_connection_get_profile_iterator_n(void)
 
 /**
  * @testcase           utc_connection_get_profile_iterator_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Gets a profiles iterator.
- * @scenario           Invoking connection_get_profile_iterator with valid parameter.
+ * @scenario           Invoking connection_get_profile_iterator with valid parameter.
  */
 int utc_connection_get_profile_iterator_p(void)
 {
@@ -1913,30 +1883,28 @@ int utc_connection_get_profile_iterator_p(void)
 
 /**
  * @testcase           utc_connection_destroy_profile_iterator_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_destroy_profile_iterator should fail with invalid parameter.
- * @scenario           Verify connection_destroy_profile_iterator by passing invalid parameter.
+ * @scenario           Verify connection_destroy_profile_iterator by passing invalid parameter.
  */
 int utc_connection_destroy_profile_iterator_n(void)
 {
        int ret = connection_destroy_profile_iterator(NULL);
 
-       if (all_features_not_supported) {
+       if (all_features_not_supported)
                CHECK_RETURN("connection_destroy_profile_iterator", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       } else {
+       else
                CHECK_RETURN("connection_destroy_profile_iterator", ret, CONNECTION_ERROR_INVALID_PARAMETER);
-       }
-
        return 0;
 }
 
 /**
  * @testcase           utc_connection_destroy_profile_iterator_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Destroys a profiles iterator.
- * @scenario           Invoking connection_destroy_profile_iterator with valid parameter.
+ * @scenario           Invoking connection_destroy_profile_iterator with valid parameter.
  */
 int utc_connection_destroy_profile_iterator_p(void)
 {
@@ -1960,29 +1928,27 @@ int utc_connection_destroy_profile_iterator_p(void)
 
 /**
  * @testcase           utc_connection_profile_iterator_has_next_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_iterator_has_next should fail with invalid parameter.
- * @scenario           Verify connection_profile_iterator_has_next by passing invalid parameter.
+ * @scenario           Verify connection_profile_iterator_has_next by passing invalid parameter.
  */
 int utc_connection_profile_iterator_has_next_n(void)
 {
        int ret = connection_profile_iterator_has_next(NULL);
-       if (all_features_not_supported) {
+       if (all_features_not_supported)
                CHECK_RETURN("connection_profile_iterator_has_next", get_last_result(), CONNECTION_ERROR_NOT_SUPPORTED);
-       } else {
+       else
                CHECK_RETURN("connection_profile_iterator_has_next", ret, false);
-       }
-
        return 0;
 }
 
 /**
  * @testcase           utc_connection_profile_iterator_has_next_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Checks whether the next element of a profile iterator exists or not.
- * @scenario           Invoking connection_profile_iterator_has_next with valid parameter.
+ * @scenario           Invoking connection_profile_iterator_has_next with valid parameter.
  */
 int utc_connection_profile_iterator_has_next_p(void)
 {
@@ -2009,10 +1975,10 @@ int utc_connection_profile_iterator_has_next_p(void)
 
 /**
  * @testcase           utc_connection_profile_iterator_next_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_profile_iterator_next should fail with invalid parameter.
- * @scenario           Verify connection_profile_iterator_next by passing invalid parameter.
+ * @scenario           Verify connection_profile_iterator_next by passing invalid parameter.
  */
 int utc_connection_profile_iterator_next_n(void)
 {
@@ -2020,21 +1986,19 @@ int utc_connection_profile_iterator_next_n(void)
 
        int ret = connection_profile_iterator_next(NULL, &profile_h);
 
-       if (all_features_not_supported) {
+       if (all_features_not_supported)
                CHECK_RETURN("connection_profile_iterator_next", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       } else {
+       else
                CHECK_RETURN("connection_profile_iterator_next", ret, CONNECTION_ERROR_INVALID_PARAMETER);
-       }
-
        return 0;
 }
 
 /**
  * @testcase           utc_connection_profile_iterator_next_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Moves the profile iterator to the next position and gets a profile handle.
- * @scenario           Invoking connection_profile_iterator_next with valid parameter.
+ * @scenario           Invoking connection_profile_iterator_next with valid parameter.
  */
 int utc_connection_profile_iterator_next_p(void)
 {
@@ -2061,64 +2025,64 @@ int utc_connection_profile_iterator_next_p(void)
 
 /**
  * @testcase           utc_connection_add_profile_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Creates a profile handle.The profile name, which you get from connection_profile_get_name(), will include the keyword you set.
- * @scenario           Invoking connection_profile_create with valid parameter.
+ * @scenario           Invoking connection_profile_create with valid parameter.
  */
 int utc_connection_add_profile_p(void)
 {
-    if (telephony_supported) {
-        int ret = connection_profile_create(CONNECTION_PROFILE_TYPE_CELLULAR, CUSTOM_PROFILE_NAME, &profile_cellular);
-        PRINT_RETURN("connection_profile_create", ret);
-        ret = connection_profile_set_cellular_service_type(profile_cellular, CONNECTION_CELLULAR_SERVICE_TYPE_APPLICATION);
-        PRINT_RETURN("connection_profile_set_cellular_service_type", ret);
+       if (telephony_supported) {
+               int ret = connection_profile_create(CONNECTION_PROFILE_TYPE_CELLULAR, CUSTOM_PROFILE_NAME, &profile_cellular);
+               PRINT_RETURN("connection_profile_create", ret);
+               ret = connection_profile_set_cellular_service_type(profile_cellular, CONNECTION_CELLULAR_SERVICE_TYPE_APPLICATION);
+               PRINT_RETURN("connection_profile_set_cellular_service_type", ret);
 
                connection_cellular_state_e state;
                ret = connection_get_cellular_state(connection, &state);
-               PRINT_RETURN("connection_get_cellular_state", ret);
+               PRINT_RETURN("connection_get_cellular_state", ret);
 
-        ret = connection_add_profile(connection, profile_cellular);
-        CHECK_RETURN("connection_add_profile", ret, CONNECTION_ERROR_NONE);
-    } else {
-        int ret = connection_add_profile(connection, profile_cellular);
-        CHECK_RETURN("connection_add_profile", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-    }
+               ret = connection_add_profile(connection, profile_cellular);
+               CHECK_RETURN("connection_add_profile", ret, CONNECTION_ERROR_NONE);
+       } else {
+               int ret = connection_add_profile(connection, profile_cellular);
+               CHECK_RETURN("connection_add_profile", ret, CONNECTION_ERROR_NOT_SUPPORTED);
+       }
 
-    return 0;
+       return 0;
 }
 
 /**
  * @testcase           utc_connection_add_profile_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_add_profile should fail with invalid parameter.
- * @scenario           Verify connection_add_profile by passing invalid parameter.
+ * @scenario           Verify connection_add_profile by passing invalid parameter.
  */
 int utc_connection_add_profile_n(void)
 {
-    connection_profile_h profile = NULL;
+       connection_profile_h profile = NULL;
 
-    if (telephony_supported) {
-        int ret = connection_add_profile(NULL, NULL);
-        CHECK_RETURN("connection_add_profile", ret, CONNECTION_ERROR_INVALID_PARAMETER);
-        ret = connection_add_profile(NULL, &profile);
-        CHECK_RETURN("connection_add_profile", ret, CONNECTION_ERROR_INVALID_PARAMETER);
-        ret = connection_add_profile(connection, NULL);
-        CHECK_RETURN("connection_add_profile", ret, CONNECTION_ERROR_INVALID_PARAMETER);
-    } else {
-        int ret = connection_add_profile(NULL, NULL);
-        CHECK_RETURN("connection_add_profile", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-    }
-    return 0;
+       if (telephony_supported) {
+               int ret = connection_add_profile(NULL, NULL);
+               CHECK_RETURN("connection_add_profile", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+               ret = connection_add_profile(NULL, &profile);
+               CHECK_RETURN("connection_add_profile", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+               ret = connection_add_profile(connection, NULL);
+               CHECK_RETURN("connection_add_profile", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+       } else  {
+               int ret = connection_add_profile(NULL, NULL);
+               CHECK_RETURN("connection_add_profile", ret, CONNECTION_ERROR_NOT_SUPPORTED);
+       }
+       return 0;
 }
 
 /**
  * @testcase           utc_connection_close_profile_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Closes a connection of profile.
- * @scenario           Invoking connection_close_profile with valid parameter.
+ * @scenario           Invoking connection_close_profile with valid parameter.
  */
 int utc_connection_close_profile_p(void)
 {
@@ -2153,10 +2117,10 @@ int utc_connection_close_profile_p(void)
 
 /**
  * @testcase           utc_connection_close_profile_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_close_profile should fail with invalid parameter.
- * @scenario           Verify connection_close_profile by passing invalid parameter.
+ * @scenario           Verify connection_close_profile by passing invalid parameter.
  */
 int utc_connection_close_profile_n(void)
 {
@@ -2181,10 +2145,10 @@ int utc_connection_close_profile_n(void)
 
 /**
  * @testcase           utc_connection_remove_profile_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Removes an existing profile.
- * @scenario           Invoking connection_remove_profile with valid parameter.
+ * @scenario           Invoking connection_remove_profile with valid parameter.
  */
 int utc_connection_remove_profile_p(void)
 {
@@ -2204,10 +2168,10 @@ int utc_connection_remove_profile_p(void)
 
 /**
  * @testcase           utc_connection_remove_profile_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_remove_profile should fail with invalid parameter.
- * @scenario           Verify connection_remove_profile by passing invalid parameter.
+ * @scenario           Verify connection_remove_profile by passing invalid parameter.
  */
 int utc_connection_remove_profile_n(void)
 {
@@ -2232,10 +2196,10 @@ int utc_connection_remove_profile_n(void)
 
 /**
  * @testcase           utc_connection_update_profile_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Updates an existing profile.
- * @scenario           Invoking connection_update_profile with valid parameter.
+ * @scenario           Invoking connection_update_profile with valid parameter.
  */
 int utc_connection_update_profile_p(void)
 {
@@ -2259,10 +2223,10 @@ int utc_connection_update_profile_p(void)
 
 /**
  * @testcase           utc_connection_update_profile_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_update_profile should fail with invalid parameter.
- * @scenario           Verify connection_update_profile by passing invalid parameter.
+ * @scenario           Verify connection_update_profile by passing invalid parameter.
  */
 int utc_connection_update_profile_n(void)
 {
@@ -2287,10 +2251,10 @@ int utc_connection_update_profile_n(void)
 
 /**
  * @testcase           utc_connection_open_profile_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Opens a connection of profile, asynchronously.
- * @scenario           Invoking connection_open_profile with valid parameter.
+ * @scenario           Invoking connection_open_profile with valid parameter.
  */
 int utc_connection_open_profile_p(void)
 {
@@ -2315,10 +2279,10 @@ int utc_connection_open_profile_p(void)
 
 /**
  * @testcase           utc_connection_open_profile_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_open_profile should fail with invalid parameter.
- * @scenario           Verify connection_open_profile by passing invalid parameter.
+ * @scenario           Verify connection_open_profile by passing invalid parameter.
  */
 int utc_connection_open_profile_n(void)
 {
@@ -2343,10 +2307,10 @@ int utc_connection_open_profile_n(void)
 
 /**
  * @testcase           utc_connection_reset_profile_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Resets the cellular profile.
- * @scenario           Invoking connection_reset_profile with valid parameter.
+ * @scenario           Invoking connection_reset_profile with valid parameter.
  */
 int utc_connection_reset_profile_p(void)
 {
@@ -2367,10 +2331,10 @@ int utc_connection_reset_profile_p(void)
 
 /**
  * @testcase           utc_connection_reset_profile_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_reset_profile should fail with invalid parameter.
- * @scenario           Verify connection_reset_profile by passing invalid parameter.
+ * @scenario           Verify connection_reset_profile by passing invalid parameter.
  */
 int utc_connection_reset_profile_n(void)
 {
@@ -2383,16 +2347,15 @@ int utc_connection_reset_profile_n(void)
                                0, test_connection_reset_profile_callback, NULL);
                CHECK_RETURN("connection_reset_profile", ret, CONNECTION_ERROR_NOT_SUPPORTED);
        }
-
-    return 0;
+       return 0;
 }
 
 /**
- * @testcase        utc_connection_foreach_ipv6_address_p
- * @since_tizen     4.0
- * @type            Positive
- * @description     Gets IPv6 addresses
- * @scenario        Invoking connection_foreach_ipv6_address with valid parameter.
+ * @testcase           utc_connection_foreach_ipv6_address_p
+ * @since_tizen                4.0
+ * @type               Positive
+ * @description                Gets IPv6 addresses
+ * @scenario           Invoking connection_foreach_ipv6_address with valid parameter.
  */
 int utc_connection_foreach_ipv6_address_p(void)
 {
@@ -2416,15 +2379,15 @@ int utc_connection_foreach_ipv6_address_p(void)
                CHECK_RETURN("connection_foreach_ipv6_address", ret, CONNECTION_ERROR_NOT_SUPPORTED);
        }
 
-    return 0;
+       return 0;
 }
 
 /**
- * @testcase        utc_connection_foreach_ipv6_address_n
- * @since_tizen     4.0
- * @type            Negative
- * @description     connection_foreach_ipv6_address should fail with invalid parameter.
- * @scenario        Verify connection_foreach_ipv6_address by passing invalid parameter.
+ * @testcase           utc_connection_foreach_ipv6_address_n
+ * @since_tizen                4.0
+ * @type               Negative
+ * @description                connection_foreach_ipv6_address should fail with invalid parameter.
+ * @scenario           Verify connection_foreach_ipv6_address by passing invalid parameter.
  */
 int utc_connection_foreach_ipv6_address_n(void)
 {
@@ -2452,11 +2415,11 @@ int utc_connection_foreach_ipv6_address_n(void)
 }
 
 /**
- * @testcase       utc_connection_set_ethernet_cable_state_changed_cb_n
- * @since_tizen    4.0
- * @type           Negative
- * @description    connection_set_ethernet_cable_state_changed_cb should fail with invalid parameter.
- * @scenario       Verify connection_set_ethernet_cable_state_changed_cb by passing invalid parameter.
+ * @testcase           utc_connection_set_ethernet_cable_state_changed_cb_n
+ * @since_tizen                4.0
+ * @type               Negative
+ * @description                connection_set_ethernet_cable_state_changed_cb should fail with invalid parameter.
+ * @scenario           Verify connection_set_ethernet_cable_state_changed_cb by passing invalid parameter.
  */
 int utc_connection_set_ethernet_cable_state_changed_cb_n(void)
 {
@@ -2492,23 +2455,21 @@ int utc_connection_set_ethernet_cable_state_changed_cb_p(void)
 }
 
 /**
- * @testcase        utc_connection_unset_ethernet_cable_state_changed_cb_n
- * @since_tizen     4.0
- * @type            Negative
- * @description     connection_unset_ethernet_cable_state_changed_cb should fail with invalid parameter.
- * @scenario        Verify connection_unset_ethernet_cable_state_changed_cb by passing invalid parameter.
+ * @testcase           utc_connection_unset_ethernet_cable_state_changed_cb_n
+ * @since_tizen                4.0
+ * @type               Negative
+ * @description                connection_unset_ethernet_cable_state_changed_cb should fail with invalid parameter.
+ * @scenario           Verify connection_unset_ethernet_cable_state_changed_cb by passing invalid parameter.
  */
 int utc_connection_unset_ethernet_cable_state_changed_cb_n(void)
 {
        int ret;
        ret = connection_unset_ethernet_cable_state_changed_cb(NULL);
 
-       if (ethernet_supported == false) {
+       if (ethernet_supported == false)
                CHECK_RETURN("connection_unset_ethernet_cable_state_changed_cb", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       } else {
+       else
                CHECK_RETURN("connection_unset_ethernet_cable_state_changed_cb", ret, CONNECTION_ERROR_INVALID_PARAMETER);
-       }
-
        return 0;
 }
 
@@ -2517,21 +2478,19 @@ int utc_connection_unset_ethernet_cable_state_changed_cb_p(void)
        int ret;
        ret = connection_unset_ethernet_cable_state_changed_cb(connection);
 
-       if (ethernet_supported == false) {
+       if (ethernet_supported == false)
                CHECK_RETURN("connection_unset_ethernet_cable_state_changed_cb", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       } else {
+       else
                CHECK_RETURN("connection_unset_ethernet_cable_state_changed_cb", ret, CONNECTION_ERROR_NONE);
-       }
-
        return 0;
 }
 
 /**
- * @testcase       utc_connection_set_internet_state_changed_cb_p
- * @since_tizen    5.5
- * @type           Positive
- * @description    Set internet state changed callback.
- * @scenario       Verify connection_set_internet_state_changed_cb by passing valid parameter.
+ * @testcase           utc_connection_set_internet_state_changed_cb_p
+ * @since_tizen                5.5
+ * @type               Positive
+ * @description                Set internet state changed callback.
+ * @scenario           Verify connection_set_internet_state_changed_cb by passing valid parameter.
  */
 int utc_connection_set_internet_state_changed_cb_p(void)
 {
@@ -2545,11 +2504,11 @@ int utc_connection_set_internet_state_changed_cb_p(void)
 }
 
 /**
- * @testcase        utc_connection_set_internet_state_changed_cb_n1
- * @since_tizen     5.5
- * @type            Negative
- * @description     connection_set_internet_state_changed_cb should fail when connection is NULL.
- * @scenario        Verify connection_set_internet_state_changed_cb by passing connection as NULL.
+ * @testcase           utc_connection_set_internet_state_changed_cb_n1
+ * @since_tizen                5.5
+ * @type               Negative
+ * @description                connection_set_internet_state_changed_cb should fail when connection is NULL.
+ * @scenario           Verify connection_set_internet_state_changed_cb by passing connection as NULL.
  */
 int utc_connection_set_internet_state_changed_cb_n1(void)
 {
@@ -2563,11 +2522,11 @@ int utc_connection_set_internet_state_changed_cb_n1(void)
 }
 
 /**
- * @testcase       utc_connection_set_internet_state_changed_cb_n2
- * @since_tizen    5.5
- * @type           Negative
- * @description    connection_set_internet_state_changed_cb should fail when callback is NULL.
- * @scenario       Verify connection_set_internet_state_changed_cb by passing callback as NULL.
+ * @testcase           utc_connection_set_internet_state_changed_cb_n2
+ * @since_tizen                5.5
+ * @type               Negative
+ * @description                connection_set_internet_state_changed_cb should fail when callback is NULL.
+ * @scenario           Verify connection_set_internet_state_changed_cb by passing callback as NULL.
  */
 int utc_connection_set_internet_state_changed_cb_n2(void)
 {
@@ -2580,11 +2539,11 @@ int utc_connection_set_internet_state_changed_cb_n2(void)
 }
 
 /**
- * @testcase        utc_connection_unset_internet_state_changed_cb_p
- * @since_tizen     5.5
- * @type            Positive
- * @description     Unset internet state changed callback.
- * @scenario        Verify connection_unset_internet_state_changed_cb by passing valid parameter.
+ * @testcase           utc_connection_unset_internet_state_changed_cb_p
+ * @since_tizen                5.5
+ * @type               Positive
+ * @description                Unset internet state changed callback.
+ * @scenario           Verify connection_unset_internet_state_changed_cb by passing valid parameter.
  */
 int utc_connection_unset_internet_state_changed_cb_p(void)
 {
@@ -2597,11 +2556,11 @@ int utc_connection_unset_internet_state_changed_cb_p(void)
 }
 
 /**
- * @testcase        utc_connection_unset_internet_state_changed_cb_n
- * @since_tizen     5.5
- * @type            Negative
- * @description     connection_unset_internet_state_changed_cb should fail when connection is NULL.
- * @scenario        Verify connection_unset_internet_state_changed_cb by passing connection as NULL.
+ * @testcase           utc_connection_unset_internet_state_changed_cb_n
+ * @since_tizen                5.5
+ * @type               Negative
+ * @description                connection_unset_internet_state_changed_cb should fail when connection is NULL.
+ * @scenario           Verify connection_unset_internet_state_changed_cb by passing connection as NULL.
  */
 int utc_connection_unset_internet_state_changed_cb_n(void)
 {
@@ -2615,40 +2574,36 @@ int utc_connection_unset_internet_state_changed_cb_n(void)
 
 /**
  * @testcase           utc_connection_destroy_p
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Positive
  * @description                Destroys the connection handle.
- * @scenario           Invoking connection_destroy with valid parameter.
+ * @scenario           Invoking connection_destroy with valid parameter.
  */
 int utc_connection_destroy_p(void)
 {
        int ret = connection_destroy(connection);
 
-       if (all_features_not_supported) {
+       if (all_features_not_supported)
                CHECK_RETURN("connection_destroy", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       } else {
+       else
                CHECK_RETURN("connection_destroy", ret, CONNECTION_ERROR_NONE);
-       }
-
        return 0;
 }
 
 /**
  * @testcase           utc_connection_destroy_n
- * @since_tizen        2.3
+ * @since_tizen                2.3
  * @type               Negative
  * @description                connection_destroy should fail with invalid parameter.
- * @scenario           Verify connection_destroy by passing invalid parameter.
+ * @scenario           Verify connection_destroy by passing invalid parameter.
  */
 int utc_connection_destroy_n(void)
 {
        int ret = connection_destroy(NULL);
 
-       if (all_features_not_supported) {
+       if (all_features_not_supported)
                CHECK_RETURN("connection_destroy", ret, CONNECTION_ERROR_NOT_SUPPORTED);
-       } else {
+       else
                CHECK_RETURN("connection_destroy", ret, CONNECTION_ERROR_INVALID_PARAMETER);
-       }
-
        return 0;
 }