Diff between b4dac305700daebcad47a14e555b73affdfb15ef and 86905a896889b7f681aeda7bc80e74b5378c82f2

Changed Files

File Additions Deletions Status
android/bluetooth.c +14 -14 modified

Full Patch

diff --git a/android/bluetooth.c b/android/bluetooth.c
index e3f68a7..2a75a22 100644
--- a/android/bluetooth.c
+++ b/android/bluetooth.c
@@ -2693,16 +2693,16 @@ static void handle_enable_cmd(const void *buf, uint16_t len)
 
 	if (adapter.current_settings & MGMT_SETTING_POWERED) {
 		status = HAL_STATUS_SUCCESS;
-		goto failed;
+		goto reply;
 	}
 
 	if (!set_mode(MGMT_OP_SET_POWERED, 0x01)) {
 		status = HAL_STATUS_FAILED;
-		goto failed;
+		goto reply;
 	}
 
 	status = HAL_STATUS_SUCCESS;
-failed:
+reply:
 	ipc_send_rsp(HAL_SERVICE_ID_BLUETOOTH, HAL_OP_ENABLE, status);
 }
 
@@ -2712,16 +2712,16 @@ static void handle_disable_cmd(const void *buf, uint16_t len)
 
 	if (!(adapter.current_settings & MGMT_SETTING_POWERED)) {
 		status = HAL_STATUS_SUCCESS;
-		goto failed;
+		goto reply;
 	}
 
 	if (!set_mode(MGMT_OP_SET_POWERED, 0x00)) {
 		status = HAL_STATUS_FAILED;
-		goto failed;
+		goto reply;
 	}
 
 	status = HAL_STATUS_SUCCESS;
-failed:
+reply:
 	ipc_send_rsp(HAL_SERVICE_ID_BLUETOOTH, HAL_OP_DISABLE, status);
 }
 
@@ -2898,21 +2898,21 @@ static void handle_start_discovery_cmd(const void *buf, uint16_t len)
 
 	if (adapter.discovering) {
 		status = HAL_STATUS_SUCCESS;
-		goto failed;
+		goto reply;
 	}
 
 	if (!(adapter.current_settings & MGMT_SETTING_POWERED)) {
 		status = HAL_STATUS_NOT_READY;
-		goto failed;
+		goto reply;
 	}
 
 	if (!start_discovery()) {
 		status = HAL_STATUS_FAILED;
-		goto failed;
+		goto reply;
 	}
 
 	status = HAL_STATUS_SUCCESS;
-failed:
+reply:
 	ipc_send_rsp(HAL_SERVICE_ID_BLUETOOTH, HAL_OP_START_DISCOVERY, status);
 }
 
@@ -2922,22 +2922,22 @@ static void handle_cancel_discovery_cmd(const void *buf, uint16_t len)
 
 	if (!adapter.discovering) {
 		status = HAL_STATUS_SUCCESS;
-		goto failed;
+		goto reply;
 	}
 
 	if (!(adapter.current_settings & MGMT_SETTING_POWERED)) {
 		status = HAL_STATUS_NOT_READY;
-		goto failed;
+		goto reply;
 	}
 
 	if (!stop_discovery()) {
 		status = HAL_STATUS_FAILED;
-		goto failed;
+		goto reply;
 	}
 
 	status = HAL_STATUS_SUCCESS;
 
-failed:
+reply:
 	ipc_send_rsp(HAL_SERVICE_ID_BLUETOOTH, HAL_OP_CANCEL_DISCOVERY, status);
 }