diff --git a/android/hal-gatt.c b/android/hal-gatt.c
index 6fde143..0229fc8 100644
--- a/android/hal-gatt.c
+++ b/android/hal-gatt.c
if (filter_uuid) {
memcpy(cmd->filter_uuid, filter_uuid, sizeof(*filter_uuid));
len += sizeof(*filter_uuid);
- cmd->number = 1;
+ cmd->filtered = 1;
}
return hal_ipc_cmd(HAL_SERVICE_ID_GATT,
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index a56474c..67da4ec 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
Opcode 0x08 - Search Service command/response
Command parameters: Connection ID (4 octets)
- Number of UUID Filters (1 octet)
- UUID Filter # (16 octets)
- ...
+ Filtered (1 octet)
+ Filter UUID (16 octets)
Response parameters: <none>
- Valid Number of UUID Filters: 0x00
- 0x01
+ Filter UUID shall only be present when Filtered is non-zero.
In case of an error, the error response will be returned.
diff --git a/android/hal-msg.h b/android/hal-msg.h
index ca36b59..caf6ad9 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
#define HAL_OP_GATT_CLIENT_SEARCH_SERVICE 0x08
struct hal_cmd_gatt_client_search_service {
int32_t conn_id;
- uint8_t number;
+ uint8_t filtered;
uint8_t filter_uuid[0];
} __attribute__((packed));