summaryrefslogtreecommitdiff
path: root/android/hal-bluetooth.c
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2014-09-24 10:57:10 +0200
committerSzymon Janc <szymon.janc@tieto.com>2014-10-02 15:48:51 +0200
commit095ecf52fa9dd378ca718ff86529cae1e7b7a4da (patch)
tree0dc2cbfbac0f7b47056b1f69c2381e9d88274ca2 /android/hal-bluetooth.c
parent9038f2562e5a61b93cd2645507ab6a1da65b30e7 (diff)
downloadbluez-095ecf52fa9dd378ca718ff86529cae1e7b7a4da.tar.gz
android: Add support for more configuration options
This adds support for system ID, serial number and PnP ID options.
Diffstat (limited to 'android/hal-bluetooth.c')
-rw-r--r--android/hal-bluetooth.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/android/hal-bluetooth.c b/android/hal-bluetooth.c
index 07e86b09a..f7db416ca 100644
--- a/android/hal-bluetooth.c
+++ b/android/hal-bluetooth.c
@@ -438,6 +438,21 @@ static int send_configuration(void)
cmd->num++;
}
+ if (get_config("serialno", prop, "ro.serialno") > 0) {
+ len += add_prop(prop, HAL_CONFIG_SERIAL_NUMBER, buf + len);
+ cmd->num++;
+ }
+
+ if (get_config("systemid", prop, NULL) > 0) {
+ len += add_prop(prop, HAL_CONFIG_SYSTEM_ID, buf + len);
+ cmd->num++;
+ }
+
+ if (get_config("pnpid", prop, NULL) > 0) {
+ len += add_prop(prop, HAL_CONFIG_PNP_ID, buf + len);
+ cmd->num++;
+ }
+
return hal_ipc_cmd(HAL_SERVICE_ID_CORE, HAL_OP_CONFIGURATION, len, cmd,
NULL, NULL, NULL);
}