mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 22:20:37 +00:00
gap: allow to set page timeout before power up
This commit is contained in:
parent
478f65a47f
commit
c874aa4683
@ -4800,7 +4800,6 @@ static void hci_state_reset(void){
|
|||||||
|
|
||||||
#ifdef ENABLE_CLASSIC
|
#ifdef ENABLE_CLASSIC
|
||||||
hci_stack->inquiry_lap = GAP_IAC_GENERAL_INQUIRY;
|
hci_stack->inquiry_lap = GAP_IAC_GENERAL_INQUIRY;
|
||||||
hci_stack->page_timeout = 0x6000; // ca. 15 sec
|
|
||||||
|
|
||||||
hci_stack->gap_tasks_classic =
|
hci_stack->gap_tasks_classic =
|
||||||
GAP_TASK_SET_DEFAULT_LINK_POLICY |
|
GAP_TASK_SET_DEFAULT_LINK_POLICY |
|
||||||
@ -4922,6 +4921,9 @@ void hci_init(const hci_transport_t *transport, const void *config){
|
|||||||
// Link Supervision Timeout
|
// Link Supervision Timeout
|
||||||
hci_stack->link_supervision_timeout = HCI_LINK_SUPERVISION_TIMEOUT_DEFAULT;
|
hci_stack->link_supervision_timeout = HCI_LINK_SUPERVISION_TIMEOUT_DEFAULT;
|
||||||
|
|
||||||
|
// Page Timeout
|
||||||
|
hci_stack->page_timeout = 0x6000; // ca. 15 sec
|
||||||
|
|
||||||
// All ACL packet types are enabledh
|
// All ACL packet types are enabledh
|
||||||
hci_stack->enabled_packet_types_acl = ACL_PACKET_TYPES_ALL;
|
hci_stack->enabled_packet_types_acl = ACL_PACKET_TYPES_ALL;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user