Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68c17211 authored by Chris Manton's avatar Chris Manton
Browse files

Add APIs to stack/acl/btm_acl

acl_accept_connection_request
acl_reject_connection_request

Towards proper interfaces

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I550d96d1dc04b5576996db919def6580c9a947d1
parent 4c77d65f
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2953,3 +2953,11 @@ void btm_acl_connection_request(const RawAddress& bda, uint8_t* dc) {
  btm_sec_conn_req(bda, dc);
  l2c_link_hci_conn_req(bda);
}

void acl_accept_connection_request(const RawAddress& bd_addr, uint8_t role) {
  btsnd_hcic_accept_conn(bd_addr, role);
}

void acl_reject_connection_request(const RawAddress& bd_addr, uint8_t reason) {
  btsnd_hcic_reject_conn(bd_addr, reason);
}
+7 −1
Original line number Diff line number Diff line
@@ -20,7 +20,13 @@
#include "bt_common.h"
#include "types/raw_address.h"

// This header contains functions for HCI-ACL to invoke
// This header contains functions for L2cap-ACL to invoke

void acl_accept_connection_request(const RawAddress& bd_addr, uint8_t role);
void acl_create_classic_connection(const RawAddress& bd_addr,
                                   bool there_are_high_priority_channels,
                                   bool is_bonding);
void acl_reject_connection_request(const RawAddress& bd_addr, uint8_t reason);

// ACL data received from HCI-ACL
extern void l2c_rcv_acl_data(BT_HDR* p_msg);