[PATCH 1/3] android: Add support for handling get properties commands

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

 



When this commands is received all properties shall be reported to HAL.
---
 android/adapter.c | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/android/adapter.c b/android/adapter.c
index 81b61c1..78c301c 100644
--- a/android/adapter.c
+++ b/android/adapter.c
@@ -1118,6 +1118,19 @@ static bool get_property(void *buf, uint16_t len)
 	}
 }
 
+static void get_properties(void)
+{
+	send_adapter_address();
+	get_name();
+	get_uuids();
+	get_class();
+	get_type();
+	get_service();
+	get_scan_mode();
+	get_devices();
+	get_disc_timeout();
+}
+
 static bool start_discovery(void)
 {
 	struct mgmt_cp_start_discovery cp;
@@ -1502,6 +1515,10 @@ void bt_adapter_handle_cmd(GIOChannel *io, uint8_t opcode, void *buf,
 			goto error;
 
 		break;
+	case HAL_OP_GET_ADAPTER_PROPS:
+		get_properties();
+
+		break;
 	case HAL_OP_GET_ADAPTER_PROP:
 		if (!get_property(buf, len))
 			goto error;
-- 
1.8.4.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