// Done telling the controller about what page 0 features we support
// Request the remaining feature pages
+#ifdef BLUETOOTH_RTK
+ if(HCI_LMP_EXTENDED_SUPPORTED(features_classic[0].as_array)) {
+#endif
while (page_number <= last_features_classic_page_index &&
page_number < MAX_FEATURES_CLASSIC_PAGE_COUNT) {
response = AWAIT_COMMAND(packet_factory->make_read_local_extended_features(page_number));
page_number++;
}
-
+#ifdef BLUETOOTH_RTK
+ }
+#endif
#if (SC_MODE_INCLUDED == TRUE)
secure_connections_supported = HCI_SC_CTRLR_SUPPORTED(features_classic[2].as_array);
if (secure_connections_supported) {
static const bt_device_features_t *get_features_ble(void) {
assert(readable);
+ if (!ble_supported)
+ return NULL;
assert(ble_supported);
return &features_ble;
}
static const uint8_t *get_ble_supported_states(void) {
assert(readable);
+ if (!ble_supported)
+ return NULL;
assert(ble_supported);
return ble_supported_states;
}
static bool supports_ble_privacy(void) {
assert(readable);
+ if (!ble_supported)
+ return false;
assert(ble_supported);
return HCI_LE_ENHANCED_PRIVACY_SUPPORTED(features_ble.as_array);
}
static bool supports_ble_packet_extension(void) {
assert(readable);
+ if (!ble_supported)
+ return false;
assert(ble_supported);
return HCI_LE_DATA_LEN_EXT_SUPPORTED(features_ble.as_array);
}
static bool supports_ble_connection_parameters_request(void) {
assert(readable);
+ if (!ble_supported)
+ return false;
assert(ble_supported);
return HCI_LE_CONN_PARAM_REQ_SUPPORTED(features_ble.as_array);
}
static uint16_t get_acl_data_size_ble(void) {
assert(readable);
+ if (!ble_supported)
+ return 0;
assert(ble_supported);
return acl_data_size_ble;
}
static uint16_t get_ble_suggested_default_data_length(void) {
assert(readable);
+ if (!ble_supported)
+ return 0;
assert(ble_supported);
return ble_suggested_default_data_length;
}
static uint8_t get_acl_buffer_count_ble(void) {
assert(readable);
+ if (!ble_supported)
+ return 0;
assert(ble_supported);
return acl_buffer_count_ble;
}
static uint8_t get_ble_white_list_size(void) {
assert(readable);
+ if (!ble_supported)
+ return 0;
assert(ble_supported);
return ble_white_list_size;
}
static uint8_t get_ble_resolving_list_max_size(void) {
assert(readable);
+ if (!ble_supported)
+ return 0;
assert(ble_supported);
return ble_resolving_list_max_size;
}
if (resolving_list_max_size != 0) {
assert(readable);
}
+ if (!ble_supported)
+ return;
assert(ble_supported);
ble_resolving_list_max_size = resolving_list_max_size;
}
$(LOCAL_PATH)/system/etc/bluetooth/rtkbt.conf:system/etc/bluetooth/rtkbt.conf \
$(LOCAL_PATH)/system/etc/firmware/rtl8723b_config:system/etc/firmware/rtl8723b_config \
$(LOCAL_PATH)/system/etc/firmware/rtl8723b_fw:system/etc/firmware/rtl8723b_fw \
+ $(LOCAL_PATH)/system/etc/firmware/rtl8703bs_config:system/etc/firmware/rtl8703bs_config \
+ $(LOCAL_PATH)/system/etc/firmware/rtl8703bs_fw:system/etc/firmware/rtl8703bs_fw \
+ $(LOCAL_PATH)/system/etc/firmware/rtl8723cs_xx_config:system/etc/firmware/rtl8723cs_xx_config \
+ $(LOCAL_PATH)/system/etc/firmware/rtl8723cs_xx_fw:system/etc/firmware/rtl8723cs_xx_fw \
$(LOCAL_PATH)/system/etc/firmware/rtl8723bs_config:system/etc/firmware/rtl8723bs_config \
$(LOCAL_PATH)/system/etc/firmware/rtl8723bs_fw:system/etc/firmware/rtl8723bs_fw \
$(LOCAL_PATH)/system/etc/firmware/rtl8723bs_VQ0_config:system/etc/firmware/rtl8723bs_VQ0_config \