Component/bt: add only accept sepecified Authentication
This commit is contained in:
@@ -1642,6 +1642,7 @@ typedef struct {
|
||||
UINT8 sec_level;
|
||||
BOOLEAN is_pair_cancel;
|
||||
BOOLEAN smp_over_br;
|
||||
tSMP_AUTH_REQ auth_mode;
|
||||
} tBTM_LE_COMPLT;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1332,6 +1332,21 @@ void BTM_BlePasskeyReply (BD_ADDR bd_addr, UINT8 res, UINT32 passkey);
|
||||
*******************************************************************************/
|
||||
void BTM_BleSetStaticPasskey(BOOLEAN add, UINT32 passkey);
|
||||
|
||||
/*******************************************************************************
|
||||
**
|
||||
** Function BTM_BleSetAcceptAuthMode
|
||||
**
|
||||
** Description This function is called to set only accept specified Authentication
|
||||
**
|
||||
**
|
||||
** Parameters: enable - Whether to enable this function
|
||||
**
|
||||
** auth_mode - Authentication mode
|
||||
**
|
||||
**
|
||||
*******************************************************************************/
|
||||
void BTM_BleSetAcceptAuthMode(UINT8 enable, UINT8 auth_mode);
|
||||
|
||||
/*******************************************************************************
|
||||
**
|
||||
** Function BTM_BleConfirmReply
|
||||
|
||||
@@ -224,6 +224,7 @@ typedef struct {
|
||||
tSMP_SEC_LEVEL sec_level;
|
||||
BOOLEAN is_pair_cancel;
|
||||
BOOLEAN smp_over_br;
|
||||
tSMP_AUTH_REQ auth_mode;
|
||||
} tSMP_CMPL;
|
||||
|
||||
typedef struct {
|
||||
@@ -416,6 +417,8 @@ extern void SMP_PasskeyReply (BD_ADDR bd_addr, UINT8 res, UINT32 passkey);
|
||||
*******************************************************************************/
|
||||
extern void SMP_SetStaticPasskey (BOOLEAN add, UINT32 passkey);
|
||||
|
||||
extern void SMP_SetAcceptAuthMode (UINT8 enable, UINT8 auth_mode);
|
||||
|
||||
/*******************************************************************************
|
||||
**
|
||||
** Function SMP_ConfirmReply
|
||||
|
||||
Reference in New Issue
Block a user