This fix wrong notification length passing to ipc. --- android/gatt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/gatt.c b/android/gatt.c index 8bd7028..5069f98 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -604,7 +604,7 @@ static void le_device_found_handler(const bdaddr_t *addr, uint8_t addr_type, ipc_send_notif(hal_ipc, HAL_SERVICE_ID_GATT, HAL_EV_GATT_CLIENT_SCAN_RESULT, - sizeof(ev) + ev->len, ev); + sizeof(*ev) + ev->len, ev); connect: if (!is_device_wating_for_connect(addr, addr_type)) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html