[PATCH 2/2] android/handsfree-client: Fix missing connected state notification

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There is additional state 'connected' that should be entered when
RFCOMM is connected but before SLC is completed.
---
 android/handsfree-client.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/android/handsfree-client.c b/android/handsfree-client.c
index e1f2c16..0e2bd40 100644
--- a/android/handsfree-client.c
+++ b/android/handsfree-client.c
@@ -1748,6 +1748,8 @@ static void connect_cb(GIOChannel *chan, GError *err, gpointer user_data)
 		goto failed;
 	}
 
+	device_set_state(dev, HAL_HF_CLIENT_CONN_STATE_CONNECTED);
+
 	return;
 
 failed:
-- 
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




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux