feat(bt): support Set_Min_Key_Size HCI for esp32s31

This commit is contained in:
yangfeng
2026-09-17 14:32:05 +08:00
parent a848cb6534
commit a7e113d0f6
26 changed files with 116 additions and 208 deletions
@@ -21,6 +21,19 @@ extern "C" {
// Application developers **should not** call the init functions in their applications.
//
/**
* @brief Set Classic Bluetooth minimum encryption key size (OCF: 0x0182)
*
* @note The init function is `bt_stack_enableSecCtrlVsCmd(true)`
*/
#define ESP_BT_VS_SET_MIN_ENC_KEY_SIZE_OCF (0x0182)
/**
* @brief Set bt minimum encryption key size cmd parameters
*/
struct bt_hci_vs_set_min_enc_key_size {
uint8_t size; /*!< the minimum encryption key size */
};
/**
* @brief This event indicates legacy authentication is completed by remote device (EVTCODE: 0xFF, SUBCODE: 0x03)
*