mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-30 15:32:41 +00:00
sm: use sm_run_irk_lookup() for device lookup with IRK
This commit is contained in:
parent
c2b94d32cc
commit
512589684b
@ -2220,11 +2220,11 @@ static bool sm_run_rau(void){
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// CSRK Lookup
|
// device lookup with IRK
|
||||||
static bool sm_run_csrk(void){
|
static bool sm_run_irk_lookup(void){
|
||||||
btstack_linked_list_iterator_t it;
|
btstack_linked_list_iterator_t it;
|
||||||
|
|
||||||
// -- if csrk lookup ready, find connection that require csrk lookup
|
// -- if IRK lookup ready, find connection that require csrk lookup
|
||||||
if (sm_address_resolution_idle()){
|
if (sm_address_resolution_idle()){
|
||||||
hci_connections_get_iterator(&it);
|
hci_connections_get_iterator(&it);
|
||||||
while(btstack_linked_list_iterator_has_next(&it)){
|
while(btstack_linked_list_iterator_has_next(&it)){
|
||||||
@ -2778,7 +2778,7 @@ static bool sm_run_non_connection_logic(void){
|
|||||||
done = sm_run_rau();
|
done = sm_run_rau();
|
||||||
if (done) return true;
|
if (done) return true;
|
||||||
|
|
||||||
done = sm_run_csrk();
|
done = sm_run_irk_lookup();
|
||||||
if (done) return true;
|
if (done) return true;
|
||||||
|
|
||||||
done = sm_run_oob();
|
done = sm_run_oob();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user