From: Johan Hedberg Date: Sat, 12 May 2012 19:11:50 +0000 (-0300) Subject: Bluetooth: mgmt: Fix device_connected sending order X-Git-Tag: v3.4~26^2~2^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=671267bf3aac3dae0555730b07ef29c042e325b2;p=pandora-kernel.git Bluetooth: mgmt: Fix device_connected sending order The mgmt_ev_device_connected signal must be sent before any event indications happen for sockets associated with the connection. Otherwise e.g. device authorization for the sockets will fail with ENOTCONN as user space things that there is no baseband link. This patch fixes the issue by ensuring that the device_connected event if sent (if it hasn't been so already) as soon as the first ACL data packet arrives from the remote device. Signed-off-by: Johan Hedberg Acked-by: Marcel Holtmann Signed-off-by: John W. Linville --- Reading git-diff-tree failed