hci.c (79b7ea2d2daea0f05459e29bb64cf1d40f7e1cb9) hci.c (22d445d87e539bf8e35142794a2ff9d005275890)
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

--- 6019 unchanged lines hidden (view full) ---

6028// if set, BTstack will confirm a numberic comparion and enter '000000' if requested
6029void gap_ssp_set_auto_accept(int auto_accept){
6030 hci_stack->ssp_auto_accept = auto_accept;
6031}
6032
6033void gap_secure_connections_enable(bool enable){
6034 hci_stack->secure_connections_enable = enable;
6035}
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

--- 6019 unchanged lines hidden (view full) ---

6028// if set, BTstack will confirm a numberic comparion and enter '000000' if requested
6029void gap_ssp_set_auto_accept(int auto_accept){
6030 hci_stack->ssp_auto_accept = auto_accept;
6031}
6032
6033void gap_secure_connections_enable(bool enable){
6034 hci_stack->secure_connections_enable = enable;
6035}
6036bool gap_secure_connections_active(void){
6037 hci_stack->secure_connections_active;
6038}
6036
6037#endif
6038
6039// va_list part of hci_send_cmd
6040uint8_t hci_send_cmd_va_arg(const hci_cmd_t * cmd, va_list argptr){
6041 if (!hci_can_send_command_packet_now()){
6042 log_error("hci_send_cmd called but cannot send packet now");
6043 return ERROR_CODE_COMMAND_DISALLOWED;

--- 1872 unchanged lines hidden ---
6039
6040#endif
6041
6042// va_list part of hci_send_cmd
6043uint8_t hci_send_cmd_va_arg(const hci_cmd_t * cmd, va_list argptr){
6044 if (!hci_can_send_command_packet_now()){
6045 log_error("hci_send_cmd called but cannot send packet now");
6046 return ERROR_CODE_COMMAND_DISALLOWED;

--- 1872 unchanged lines hidden ---