diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2014-11-17 21:12:53 +0100 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-11-19 12:44:34 +0100 |
commit | d8abfd74ec241e2a71ace422a39cab1d4da3090e (patch) | |
tree | f313aefdf649d473b9004e841cb84c4ad50eeb7d /android/hal-gatt.c | |
parent | 2f776361e2f60f9580c721dd71ca30a45762eb80 (diff) | |
download | bluez-d8abfd74ec241e2a71ace422a39cab1d4da3090e.tar.gz |
android/hal-gatt: Implement client handle_client_update_multi_adv
This adds required IPC message, HAL implementation and daemon stub
handler.
Diffstat (limited to 'android/hal-gatt.c')
-rw-r--r-- | android/hal-gatt.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/android/hal-gatt.c b/android/hal-gatt.c index 2692e9c09..0a1d823c1 100644 --- a/android/hal-gatt.c +++ b/android/hal-gatt.c @@ -1493,11 +1493,22 @@ static bt_status_t multi_adv_update(int client_if, int min_interval, int chnl_map, int tx_power, int timeout_s) { - DBG(""); + struct hal_cmd_gatt_client_update_multi_adv cmd; - /* TODO */ + if (!interface_ready()) + return BT_STATUS_NOT_READY; - return BT_STATUS_UNSUPPORTED; + cmd.client_if = client_if; + cmd.min_interval = min_interval; + cmd.max_interval = max_interval; + cmd.type = adv_type; + cmd.channel_map = chnl_map; + cmd.tx_power = tx_power; + cmd.timeout = timeout_s; + + return hal_ipc_cmd(HAL_SERVICE_ID_GATT, + HAL_OP_GATT_CLIENT_UPDATE_MULTI_ADV, + sizeof(cmd), &cmd, NULL, NULL, NULL); } static bt_status_t multi_adv_set_inst_data(int client_if, bool set_scan_rsp, |