diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-11-17 11:23:44 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-11-17 11:23:44 +0200 |
commit | d21b8db341ccd407556f44460e12947d9b31c2ed (patch) | |
tree | 260aaa57f42cbb7d6f7aab6adba3e6a36d172d02 /android/hal-gatt.c | |
parent | b936623b0f36b84f2bf2cafc33201375c4416a6d (diff) | |
download | bluez-d21b8db341ccd407556f44460e12947d9b31c2ed.tar.gz |
android: Fix not setting max_clients
If max_clients is not set the ipc send uninitialized bytes.
Diffstat (limited to 'android/hal-gatt.c')
-rw-r--r-- | android/hal-gatt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/android/hal-gatt.c b/android/hal-gatt.c index 7bcdee7f5..6df59f5a6 100644 --- a/android/hal-gatt.c +++ b/android/hal-gatt.c @@ -1565,6 +1565,7 @@ static bt_status_t init(const btgatt_callbacks_t *callbacks) cmd.service_id = HAL_SERVICE_ID_GATT; cmd.mode = HAL_MODE_DEFAULT; + cmd.max_clients = 1; ret = hal_ipc_cmd(HAL_SERVICE_ID_CORE, HAL_OP_REGISTER_MODULE, sizeof(cmd), &cmd, NULL, NULL, NULL); |