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 "bta_dm_co.h"
19
20 #include <stdio.h>
21 #include <stdlib.h>
22
23 #include "bta_api.h"
24 #include "bta_dm_ci.h"
25 #include "bta_sys.h"
26 #include "bte_appl.h"
27 #include "btif_dm.h"
28 #include "osi/include/osi.h"
29
30 tBTE_APPL_CFG bte_appl_cfg = {
31 BTA_LE_AUTH_REQ_SC_MITM_BOND, // Authentication requirements
32 BTM_IO_CAP_KBDISP, BTM_BLE_INITIATOR_KEY_SIZE, BTM_BLE_RESPONDER_KEY_SIZE,
33 BTM_BLE_MAX_KEY_SIZE};
34
35 /*******************************************************************************
36 *
37 * Function bta_dm_co_get_compress_memory
38 *
39 * Description This callout function is executed by DM to get memory for
40 compression
41
42 * Parameters id - BTA SYS ID
43 * memory_p - memory return by callout
44 * memory_size - memory size
45 *
46 * Returns true for success, false for fail.
47 *
48 ******************************************************************************/
bta_dm_co_get_compress_memory(UNUSED_ATTR tBTA_SYS_ID id,UNUSED_ATTR uint8_t ** memory_p,UNUSED_ATTR uint32_t * memory_size)49 bool bta_dm_co_get_compress_memory(UNUSED_ATTR tBTA_SYS_ID id,
50 UNUSED_ATTR uint8_t** memory_p,
51 UNUSED_ATTR uint32_t* memory_size) {
52 return true;
53 }
54
55