diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2014-09-25 13:41:05 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-10-02 15:48:52 +0200 |
commit | 1a98599fd258fcf57118c6353badb5db7e6905b3 (patch) | |
tree | eab893a4bf1413f649aaa956fe0137963b2f8926 /android/hal-bluetooth.c | |
parent | 40b0c04d624d18a8b8572e9a55b91abbcc724f2d (diff) | |
download | bluez-1a98599fd258fcf57118c6353badb5db7e6905b3.tar.gz |
android: Add support for FW and HW revision config options
Diffstat (limited to 'android/hal-bluetooth.c')
-rw-r--r-- | android/hal-bluetooth.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/android/hal-bluetooth.c b/android/hal-bluetooth.c index f7db416ca..675427901 100644 --- a/android/hal-bluetooth.c +++ b/android/hal-bluetooth.c @@ -453,6 +453,16 @@ static int send_configuration(void) cmd->num++; } + if (get_config("fwrev", prop, "ro.build.version.release") > 0) { + len += add_prop(prop, HAL_CONFIG_FW_REV, buf + len); + cmd->num++; + } + + if (get_config("hwrev", prop, "ro.board.platform") > 0) { + len += add_prop(prop, HAL_CONFIG_HW_REV, buf + len); + cmd->num++; + } + return hal_ipc_cmd(HAL_SERVICE_ID_CORE, HAL_OP_CONFIGURATION, len, cmd, NULL, NULL, NULL); } |