mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-16 08:42:28 +00:00
sm: GAP_RANDOM_ADDRESS_TYPE_STATIC does not need periodic updates
This commit is contained in:
parent
8a655b4bcc
commit
47ba4de1ce
10
src/ble/sm.c
10
src/ble/sm.c
@ -4027,9 +4027,13 @@ int sm_le_device_index(hci_con_handle_t con_handle ){
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int gap_random_address_type_requires_updates(void){
|
static int gap_random_address_type_requires_updates(void){
|
||||||
if (gap_random_adress_type == GAP_RANDOM_ADDRESS_TYPE_OFF) return 0;
|
switch (gap_random_adress_type){
|
||||||
if (gap_random_adress_type == GAP_RANDOM_ADDRESS_TYPE_OFF) return 0;
|
case GAP_RANDOM_ADDRESS_TYPE_OFF:
|
||||||
return 1;
|
case GAP_RANDOM_ADDRESS_TYPE_STATIC:
|
||||||
|
return 0;
|
||||||
|
default:
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint8_t own_address_type(void){
|
static uint8_t own_address_type(void){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user