mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 19:20:54 +00:00
sm_minimal: fix compile
This commit is contained in:
parent
7f4e0b55e0
commit
0af43532f7
@ -56,6 +56,7 @@ static btstack_packet_handler_t sm_client_packet_handler = NULL;
|
||||
static security_manager_state_t sm_state_responding = SM_GENERAL_IDLE;
|
||||
static uint16_t sm_response_handle = 0;
|
||||
static uint8_t sm_pairing_failed_reason = 0;
|
||||
static gap_random_address_type_t gap_random_adress_type = GAP_RANDOM_ADDRESS_TYPE_OFF;
|
||||
|
||||
void sm_set_er(sm_key_t er){}
|
||||
void sm_set_ir(sm_key_t ir){}
|
||||
@ -100,7 +101,7 @@ int sm_cmac_ready(void){
|
||||
return 0;
|
||||
}
|
||||
|
||||
void sm_cmac_start(sm_key_t k, uint16_t message_len, uint8_t * message, uint32_t sign_counter, void (*done_handler)(uint8_t hash[8])){}
|
||||
void sm_cmac_start(sm_key_t k, uint8_t opcode, uint16_t attribute_handle, uint16_t message_len, uint8_t * message, uint32_t sign_counter, void (*done_handler)(uint8_t hash[8])){};
|
||||
|
||||
/**
|
||||
* @brief Identify device in LE Device DB
|
||||
@ -230,3 +231,20 @@ void sm_init(void){
|
||||
// GAP LE
|
||||
void gap_random_address_set_mode(gap_random_address_type_t random_address_type){}
|
||||
void gap_random_address_set_update_period(int period_ms){}
|
||||
/*
|
||||
* @brief Set Advertisement Paramters
|
||||
* @param adv_int_min
|
||||
* @param adv_int_max
|
||||
* @param adv_type
|
||||
* @param direct_address_type
|
||||
* @param direct_address
|
||||
* @param channel_map
|
||||
* @param filter_policy
|
||||
*
|
||||
* @note own_address_type is used from gap_random_address_set_mode
|
||||
*/
|
||||
void gap_advertisements_set_params(uint16_t adv_int_min, uint16_t adv_int_max, uint8_t adv_type,
|
||||
uint8_t direct_address_typ, bd_addr_t direct_address, uint8_t channel_map, uint8_t filter_policy){
|
||||
hci_le_advertisements_set_params(adv_int_min, adv_int_max, adv_type, gap_random_adress_type,
|
||||
direct_address_typ, direct_address, channel_map, filter_policy);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user