Fix svace issues 06/299006/1
authorWootak Jung <wootak.jung@samsung.com>
Mon, 18 Sep 2023 06:50:50 +0000 (15:50 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Mon, 18 Sep 2023 06:50:50 +0000 (15:50 +0900)
Change-Id: Ice542283c92665482bcc3db18b9f3866b0dbea7e
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
bt-service/services/gatt/bt-service-gatt.c

index 250eb08623a80ca31c6ec069e3d9f77e2856c5c9..65e26050df6ed925958adc0bbf5666083b9448e9 100644 (file)
@@ -3272,14 +3272,13 @@ int _bt_gatt_server_set_phy(bluetooth_device_address_t *device_address,
                return BLUETOOTH_ERROR_NOT_CONNECTED;
        }
 
-       // TODO: This code is commented as currently this API is not supported in OAL
-       //ret = gatts_set_preferred_phy(conn_info->connection_id, tx_phy, rx_phy, phy_options);
-
+       /* TODO: This code is commented as currently this API is not supported in OAL
+       ret = gatts_set_preferred_phy(conn_info->connection_id, tx_phy, rx_phy, phy_options);
        if (ret != OAL_STATUS_SUCCESS) {
                BT_ERR("ret: %d", ret);
                g_free(addr);
                return BLUETOOTH_ERROR_INTERNAL;
-       }
+       }*/
 
        g_free(addr);
        return BLUETOOTH_ERROR_NONE;
@@ -3306,14 +3305,13 @@ int _bt_gatt_server_read_phy(bluetooth_device_address_t *address)
                return BLUETOOTH_ERROR_NOT_CONNECTED;
        }
 
-       // TODO: This code is commented as currently this API is not supported in OAL
-       //ret = gatts_read_phy(conn_info->connection_id);
-
+       /* TODO: This code is commented as currently this API is not supported in OAL
+       ret = gatts_read_phy(conn_info->connection_id);
        if (ret != OAL_STATUS_SUCCESS) {
                BT_ERR("ret: %d", ret);
                g_free(addr);
                return BLUETOOTH_ERROR_INTERNAL;
-       }
+       }*/
 
        g_free(addr);
        return BLUETOOTH_ERROR_NONE;
@@ -3338,14 +3336,13 @@ int _bt_gatt_client_set_phy(bluetooth_device_address_t *device_address,
                return BLUETOOTH_ERROR_NOT_CONNECTED;
        }
 
-       // TODO: This code is commented as currently this API is not supported in OAL
-       //ret = gattc_set_preferred_phy(conn_info->connection_id, tx_phy, rx_phy, phy_options);
-
+       /* TODO: This code is commented as currently this API is not supported in OAL
+       ret = gattc_set_preferred_phy(conn_info->connection_id, tx_phy, rx_phy, phy_options);
        if (ret != OAL_STATUS_SUCCESS) {
                BT_ERR("ret: %d", ret);
                g_free(addr);
                return BLUETOOTH_ERROR_INTERNAL;
-       }
+       }*/
 
        g_free(addr);
        return BLUETOOTH_ERROR_NONE;
@@ -3372,14 +3369,13 @@ int _bt_gatt_client_read_phy(bluetooth_device_address_t *address)
                return BLUETOOTH_ERROR_NOT_CONNECTED;
        }
 
-       // TODO: This code is commented as currently this API is not supported in OAL
-       //ret = gattc_read_phy(conn_info->connection_id);
-
+       /* TODO: This code is commented as currently this API is not supported in OAL
+       ret = gattc_read_phy(conn_info->connection_id);
        if (ret != OAL_STATUS_SUCCESS) {
                BT_ERR("ret: %d", ret);
                g_free(addr);
                return BLUETOOTH_ERROR_INTERNAL;
-       }
+       }*/
 
        g_free(addr);
        return BLUETOOTH_ERROR_NONE;