hci.c (cabf004e5f27c865585886a185245bf14210f1c5) | hci.c (c33e56d3e01b1b1e94606efef5e1a616eb44f207) |
---|---|
1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 1336 unchanged lines hidden (view full) --- 1345 case HCI_INIT_WRITE_SIMPLE_PAIRING_MODE: 1346 hci_stack->substate = HCI_INIT_W4_WRITE_SIMPLE_PAIRING_MODE; 1347 hci_send_cmd(&hci_write_simple_pairing_mode, hci_stack->ssp_enable); 1348 break; 1349 case HCI_INIT_WRITE_PAGE_TIMEOUT: 1350 hci_stack->substate = HCI_INIT_W4_WRITE_PAGE_TIMEOUT; 1351 hci_send_cmd(&hci_write_page_timeout, 0x6000); // ca. 15 sec 1352 break; | 1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 1336 unchanged lines hidden (view full) --- 1345 case HCI_INIT_WRITE_SIMPLE_PAIRING_MODE: 1346 hci_stack->substate = HCI_INIT_W4_WRITE_SIMPLE_PAIRING_MODE; 1347 hci_send_cmd(&hci_write_simple_pairing_mode, hci_stack->ssp_enable); 1348 break; 1349 case HCI_INIT_WRITE_PAGE_TIMEOUT: 1350 hci_stack->substate = HCI_INIT_W4_WRITE_PAGE_TIMEOUT; 1351 hci_send_cmd(&hci_write_page_timeout, 0x6000); // ca. 15 sec 1352 break; |
1353 case HCI_INIT_WRITE_DEFAULT_LINK_POLICY_SETTING: 1354 hci_stack->substate = HCI_INIT_W4_WRITE_DEFAULT_LINK_POLICY_SETTING; 1355 hci_send_cmd(&hci_write_default_link_policy_setting, hci_stack->default_link_policy_settings); 1356 break; |
|
1353 case HCI_INIT_WRITE_CLASS_OF_DEVICE: 1354 hci_stack->substate = HCI_INIT_W4_WRITE_CLASS_OF_DEVICE; 1355 hci_send_cmd(&hci_write_class_of_device, hci_stack->class_of_device); 1356 break; 1357 case HCI_INIT_WRITE_LOCAL_NAME: { 1358 hci_stack->substate = HCI_INIT_W4_WRITE_LOCAL_NAME; 1359 hci_reserve_packet_buffer(); 1360 uint8_t * packet = hci_stack->hci_packet_buffer; --- 1341 unchanged lines hidden (view full) --- 2702 hci_stack = NULL; 2703} 2704 2705#ifdef ENABLE_CLASSIC 2706void gap_set_class_of_device(uint32_t class_of_device){ 2707 hci_stack->class_of_device = class_of_device; 2708} 2709 | 1357 case HCI_INIT_WRITE_CLASS_OF_DEVICE: 1358 hci_stack->substate = HCI_INIT_W4_WRITE_CLASS_OF_DEVICE; 1359 hci_send_cmd(&hci_write_class_of_device, hci_stack->class_of_device); 1360 break; 1361 case HCI_INIT_WRITE_LOCAL_NAME: { 1362 hci_stack->substate = HCI_INIT_W4_WRITE_LOCAL_NAME; 1363 hci_reserve_packet_buffer(); 1364 uint8_t * packet = hci_stack->hci_packet_buffer; --- 1341 unchanged lines hidden (view full) --- 2706 hci_stack = NULL; 2707} 2708 2709#ifdef ENABLE_CLASSIC 2710void gap_set_class_of_device(uint32_t class_of_device){ 2711 hci_stack->class_of_device = class_of_device; 2712} 2713 |
2714void gap_set_default_link_policy_settings(uint16_t default_link_policy_settings){ 2715 hci_stack->default_link_policy_settings = default_link_policy_settings; 2716} 2717 |
|
2710void hci_disable_l2cap_timeout_check(void){ 2711 disable_l2cap_timeouts = 1; 2712} 2713#endif 2714 2715#if !defined(HAVE_PLATFORM_IPHONE_OS) && !defined (HAVE_HOST_CONTROLLER_API) 2716// Set Public BD ADDR - passed on to Bluetooth chipset if supported in bt_control_h 2717void hci_set_bd_addr(bd_addr_t addr){ --- 2106 unchanged lines hidden --- | 2718void hci_disable_l2cap_timeout_check(void){ 2719 disable_l2cap_timeouts = 1; 2720} 2721#endif 2722 2723#if !defined(HAVE_PLATFORM_IPHONE_OS) && !defined (HAVE_HOST_CONTROLLER_API) 2724// Set Public BD ADDR - passed on to Bluetooth chipset if supported in bt_control_h 2725void hci_set_bd_addr(bd_addr_t addr){ --- 2106 unchanged lines hidden --- |