components/bt: Some errors in comment
This commit is contained in:
parent
96252c493a
commit
b021bbdc80
8 changed files with 31 additions and 33 deletions
|
@ -962,8 +962,7 @@ esp_err_t esp_ble_gap_get_local_used_addr(esp_bd_addr_t local_used_addr, uint8_t
|
||||||
* @param[in] type - finding ADV data type
|
* @param[in] type - finding ADV data type
|
||||||
* @param[out] length - return the length of ADV data not including type
|
* @param[out] length - return the length of ADV data not including type
|
||||||
*
|
*
|
||||||
* @return - ESP_OK : success
|
* @return pointer of ADV data
|
||||||
* - other : failed
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
uint8_t *esp_ble_resolve_adv_data(uint8_t *adv_data, uint8_t type, uint8_t *length);
|
uint8_t *esp_ble_resolve_adv_data(uint8_t *adv_data, uint8_t type, uint8_t *length);
|
||||||
|
|
|
@ -326,7 +326,7 @@ esp_err_t esp_hf_client_deinit(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @brief Connect to remote bluetooth HFP audio gateway(AG) device, must after esp_a2d_hf_client_init()
|
* @brief Connect to remote bluetooth HFP audio gateway(AG) device, must after esp_hf_client_init()
|
||||||
*
|
*
|
||||||
* @param[in] remote_bda: remote bluetooth device address
|
* @param[in] remote_bda: remote bluetooth device address
|
||||||
*
|
*
|
||||||
|
|
|
@ -190,8 +190,7 @@ esp_err_t esp_spp_register_callback(esp_spp_cb_t callback);
|
||||||
/**
|
/**
|
||||||
* @brief This function is called to init SPP.
|
* @brief This function is called to init SPP.
|
||||||
*
|
*
|
||||||
* @param[in] mode: Choose the mode of SPP, ESP_SPP_MODE_CB or ESP_SPP_MODE_CB.
|
* @param[in] mode: Choose the mode of SPP, ESP_SPP_MODE_CB or ESP_SPP_MODE_VFS.
|
||||||
* Now only supports ESP_SPP_MODE_CB mode, we will continue to update.
|
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
* - ESP_OK: success
|
* - ESP_OK: success
|
||||||
|
|
|
@ -64,7 +64,7 @@ static void btc_init_bluetooth(void)
|
||||||
bte_main_boot_entry(btc_init_callback);
|
bte_main_boot_entry(btc_init_callback);
|
||||||
#if (SMP_INCLUDED)
|
#if (SMP_INCLUDED)
|
||||||
btc_config_init();
|
btc_config_init();
|
||||||
//load the ble local key whitch has been store in the flash
|
//load the ble local key which has been stored in the flash
|
||||||
btc_dm_load_ble_local_keys();
|
btc_dm_load_ble_local_keys();
|
||||||
#endif /* #if (SMP_INCLUDED) */
|
#endif /* #if (SMP_INCLUDED) */
|
||||||
}
|
}
|
||||||
|
|
|
@ -831,7 +831,7 @@ static void btc_ble_set_rand_addr (BD_ADDR rand_addr, tBTA_SET_RAND_ADDR_CBACK *
|
||||||
BTA_DmSetRandAddress(rand_addr, btc_set_rand_addr_callback);
|
BTA_DmSetRandAddress(rand_addr, btc_set_rand_addr_callback);
|
||||||
} else {
|
} else {
|
||||||
btc_set_rand_addr_callback(BTM_INVALID_STATIC_RAND_ADDR);
|
btc_set_rand_addr_callback(BTM_INVALID_STATIC_RAND_ADDR);
|
||||||
BTC_TRACE_ERROR("Invalid random address, the high bit should be 0b11, all bits of the random part shall not be to 1 or 0");
|
BTC_TRACE_ERROR("Invalid random address, the high bit should be 0b11, bits of the random part shall not be all 1 or 0");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
btc_set_rand_addr_callback(BTM_INVALID_STATIC_RAND_ADDR);
|
btc_set_rand_addr_callback(BTM_INVALID_STATIC_RAND_ADDR);
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
//#include "osi/include/log.h"
|
//#include "osi/include/log.h"
|
||||||
|
|
||||||
#if SMP_INCLUDED == TRUE
|
#if SMP_INCLUDED == TRUE
|
||||||
// The temp variable to pass parameter between functions when in the connected event comeback.
|
// The temp variable to pass parameter between functions when in the connected event callback.
|
||||||
static BOOLEAN temp_enhanced = FALSE;
|
static BOOLEAN temp_enhanced = FALSE;
|
||||||
extern BOOLEAN aes_cipher_msg_auth_code(BT_OCTET16 key, UINT8 *input, UINT16 length,
|
extern BOOLEAN aes_cipher_msg_auth_code(BT_OCTET16 key, UINT8 *input, UINT16 length,
|
||||||
UINT16 tlen, UINT8 *p_signature);
|
UINT16 tlen, UINT8 *p_signature);
|
||||||
|
@ -1946,8 +1946,8 @@ void btm_ble_conn_complete(UINT8 *p, UINT16 evt_len, BOOLEAN enhanced)
|
||||||
|
|
||||||
/* It will cause that scanner doesn't send scan request to advertiser
|
/* It will cause that scanner doesn't send scan request to advertiser
|
||||||
* which has sent IRK to us and we have stored the IRK in controller.
|
* which has sent IRK to us and we have stored the IRK in controller.
|
||||||
* It is a design problem of hardware. The temporal solution is not to
|
* It is a hardware limitation. The preliminary solution is not to
|
||||||
* send the key to the controller and then resolve the random address in host.
|
* send key to the controller, but to resolve the random address in host.
|
||||||
* so we need send the real address information to controller to connect.
|
* so we need send the real address information to controller to connect.
|
||||||
* Once the connection is successful, resolve device address whether it is
|
* Once the connection is successful, resolve device address whether it is
|
||||||
* slave or master*/
|
* slave or master*/
|
||||||
|
|
|
@ -771,8 +771,8 @@ BOOLEAN btm_ble_resolving_list_load_dev(tBTM_SEC_DEV_REC *p_dev_rec)
|
||||||
}
|
}
|
||||||
/* It will cause that scanner doesn't send scan request to advertiser
|
/* It will cause that scanner doesn't send scan request to advertiser
|
||||||
* which has sent IRK to us and we have stored the IRK in controller.
|
* which has sent IRK to us and we have stored the IRK in controller.
|
||||||
* It is a design problem of hardware. The temporal solution is not to
|
* It is a hardware limitation. The preliminary solution is not to
|
||||||
* send the key to the controller and then resolve the random address in host. */
|
* send key to the controller, but to resolve the random address in host. */
|
||||||
/*
|
/*
|
||||||
BTM_TRACE_DEBUG("%s:adding device to controller resolving list\n", __func__);
|
BTM_TRACE_DEBUG("%s:adding device to controller resolving list\n", __func__);
|
||||||
UINT8 *peer_irk = p_dev_rec->ble.keys.irk;
|
UINT8 *peer_irk = p_dev_rec->ble.keys.irk;
|
||||||
|
|
|
@ -813,7 +813,7 @@ BOOLEAN l2cble_init_direct_conn (tL2C_LCB *p_lcb)
|
||||||
memcpy(peer_addr, p_dev_rec->ble.current_addr, 6);
|
memcpy(peer_addr, p_dev_rec->ble.current_addr, 6);
|
||||||
} else {
|
} else {
|
||||||
/* find security device information but not find the real address information
|
/* find security device information but not find the real address information
|
||||||
* This state may be directly open whithout scanning. In this case, you must
|
* This state may be directly open without scanning. In this case, you must
|
||||||
* use the current adv address of the device to open*/
|
* use the current adv address of the device to open*/
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -822,8 +822,8 @@ BOOLEAN l2cble_init_direct_conn (tL2C_LCB *p_lcb)
|
||||||
|
|
||||||
/* It will cause that scanner doesn't send scan request to advertiser
|
/* It will cause that scanner doesn't send scan request to advertiser
|
||||||
* which has sent IRK to us and we have stored the IRK in controller.
|
* which has sent IRK to us and we have stored the IRK in controller.
|
||||||
* It is a design problem of hardware. The temporal solution is not to
|
* It is a hardware limitation. The preliminary solution is not to
|
||||||
* send the key to the controller and then resolve the random address in host.
|
* send key to the controller, but to resolve the random address in host.
|
||||||
* so we need send the real address information to controller. */
|
* so we need send the real address information to controller. */
|
||||||
/*
|
/*
|
||||||
if (p_dev_rec->ble.in_controller_list & BTM_RESOLVING_LIST_BIT) {
|
if (p_dev_rec->ble.in_controller_list & BTM_RESOLVING_LIST_BIT) {
|
||||||
|
|
Loading…
Reference in a new issue