From: Szymon Janc Date: Fri, 20 Dec 2013 12:50:41 +0000 (+0100) Subject: android/bluetooth-hal: Fix using wrong struct for buffer size X-Git-Tag: android-x86-4.4-r3~6358 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=b6b3ff89c92c782af8b7aa5778f88805524f2aff;p=android-x86%2Fexternal-bluetooth-bluez.git android/bluetooth-hal: Fix using wrong struct for buffer size Buffer is for hal_cmd_le_test_mode command. --- 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);