1 /******************************************************************************
2 *
3 * Copyright 2009-2012 Broadcom Corporation
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at:
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 ******************************************************************************/
18 #include <stdio.h>
19 #include <stdlib.h>
20
21 #include "bt_utils.h"
22 #include "bta_api.h"
23 #include "bta_dm_ci.h"
24 #include "bta_dm_co.h"
25 #include "bta_sys.h"
26 #include "bte_appl.h"
27 #include "btif_dm.h"
28 #include "btif_storage.h"
29 #include "osi/include/osi.h"
30
31 // tBTE_APPL_CFG.ble_io_cap is set to BTM_IO_CAP_UNKNOWN at structure
32 // initialization since btif_storage isn't ready yet for data to be fetched.
33 // This value is initialized properly during first use by fetching properly
34 // from btif_storage.
35 tBTE_APPL_CFG bte_appl_cfg = {
36 BTA_LE_AUTH_REQ_SC_MITM_BOND, // Authentication requirements
37 BTM_IO_CAP_UNKNOWN, BTM_BLE_INITIATOR_KEY_SIZE, BTM_BLE_RESPONDER_KEY_SIZE,
38 BTM_BLE_MAX_KEY_SIZE};
39
40 /*******************************************************************************
41 *
42 * Function bta_dm_co_get_compress_memory
43 *
44 * Description This callout function is executed by DM to get memory for
45 compression
46
47 * Parameters id - BTA SYS ID
48 * memory_p - memory return by callout
49 * memory_size - memory size
50 *
51 * Returns true for success, false for fail.
52 *
53 ******************************************************************************/
bta_dm_co_get_compress_memory(UNUSED_ATTR tBTA_SYS_ID id,UNUSED_ATTR uint8_t ** memory_p,UNUSED_ATTR uint32_t * memory_size)54 bool bta_dm_co_get_compress_memory(UNUSED_ATTR tBTA_SYS_ID id,
55 UNUSED_ATTR uint8_t** memory_p,
56 UNUSED_ATTR uint32_t* memory_size) {
57 return true;
58 }
59
60