fix SPP open with wrong remote bd_addr

This commit is contained in:
liqigan
2021-12-22 17:04:58 +08:00
parent 66e88fbdbe
commit cccd22a080
6 changed files with 54 additions and 26 deletions
@@ -107,6 +107,14 @@ typedef void (tPORT_CALLBACK) (UINT32 code, UINT16 port_handle);
typedef void (tPORT_MGMT_CALLBACK) (UINT32 code, UINT16 port_handle, void* data);
/**
* Define the server port manage callback function argument
*/
typedef struct {
BOOLEAN accept; /* If upper layer accepts the incoming connection */
BOOLEAN ignore_rfc_state; /* If need to ignore rfc state for PORT_CheckConnection */
} tPORT_MGMT_SR_CALLBACK_ARG;
/*
** Define events that registered application can receive in the callback
*/
@@ -312,11 +320,12 @@ extern int PORT_SetEventMask (UINT16 port_handle, UINT32 mask);
** by handle is up and running
**
** Parameters: handle - Handle of the port returned in the Open
** ignore_rfc_state - If need to ignore rfc state
** bd_addr - OUT bd_addr of the peer
** p_lcid - OUT L2CAP's LCID
**
*******************************************************************************/
extern int PORT_CheckConnection (UINT16 handle, BD_ADDR bd_addr,
extern int PORT_CheckConnection (UINT16 handle, BOOLEAN ignore_rfc_state, BD_ADDR bd_addr,
UINT16 *p_lcid);
/*******************************************************************************