Hi Andrei, On Fri, Nov 01, 2013, Andrei Emeltchenko wrote: > Send HAL_EV_ACL_STATE_CHANGED event to HAL through IPC. > --- > android/adapter.c | 26 ++++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) This doesn't compile: CC android/adapter.o android/adapter.c: In function ‘mgmt_device_connected_event’: android/adapter.c:641:17: error: ‘HAL_ACL_STATE_CONNECTED’ undeclared (first use in this function) hal_ev.state = HAL_ACL_STATE_CONNECTED; ^ android/adapter.c:641:17: note: each undeclared identifier is reported only once for each function it appears in make[1]: *** [android/adapter.o] Error 1 > + if (length < sizeof(*ev)) { > + error("Too short %s (%u bytes)", __func__, length); > + return; > + } This looks a bit weird. The function is not too short but the message is, not to mention that having to use __func__ for error logs is a bit counterintuitive. Just put "device connected event" into the string. Same goes for your device disconnected event patch. Johan -- 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