From b6b3ff89c92c782af8b7aa5778f88805524f2aff Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Fri, 20 Dec 2013 13:50:41 +0100 Subject: [PATCH] android/bluetooth-hal: Fix using wrong struct for buffer size Buffer is for hal_cmd_le_test_mode command. --- android/hal-bluetooth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/hal-bluetooth.c b/android/hal-bluetooth.c index 2232ebe4a..3dbc4356b 100644 --- a/android/hal-bluetooth.c +++ b/android/hal-bluetooth.c @@ -812,7 +812,7 @@ static int dut_mode_send(uint16_t opcode, uint8_t *buf, uint8_t len) #if PLATFORM_SDK_VERSION > 17 static int le_test_mode(uint16_t opcode, uint8_t *buf, uint8_t len) { - uint8_t cmd_buf[sizeof(struct hal_cmd_dut_mode_send) + len]; + uint8_t cmd_buf[sizeof(struct hal_cmd_le_test_mode) + len]; struct hal_cmd_le_test_mode *cmd = (void *) cmd_buf; DBG("opcode %u len %u", opcode, len); -- 2.47.3