summaryrefslogtreecommitdiffstats
path: root/hci/src/hci_packet_parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'hci/src/hci_packet_parser.c')
-rwxr-xr-xhci/src/hci_packet_parser.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/hci/src/hci_packet_parser.c b/hci/src/hci_packet_parser.c
index 58633d12e..252652853 100755
--- a/hci/src/hci_packet_parser.c
+++ b/hci/src/hci_packet_parser.c
@@ -87,6 +87,21 @@ static void parse_read_local_supported_codecs_response(
buffer_allocator->free(response);
}
+
+static void parse_ble_read_offload_features_response(
+ BT_HDR *response,
+ bool *ble_offload_features_supported) {
+
+ uint8_t *stream = read_command_complete_header(response, NO_OPCODE_CHECKING, 0 /* bytes after */);
+ if(stream) {
+ *ble_offload_features_supported = true;
+ } else {
+ *ble_offload_features_supported = false;
+ }
+
+ buffer_allocator->free(response);
+}
+
static void parse_read_bd_addr_response(
BT_HDR *response,
bt_bdaddr_t *address_ptr) {
@@ -253,7 +268,8 @@ static const hci_packet_parser_t interface = {
parse_ble_read_local_supported_features_response,
parse_ble_read_resolving_list_size_response,
parse_ble_read_suggested_default_data_length_response,
- parse_read_local_supported_codecs_response
+ parse_read_local_supported_codecs_response,
+ parse_ble_read_offload_features_response
};
const hci_packet_parser_t *hci_packet_parser_get_interface() {