mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/ble_set_scan_param_error_v3.3' into 'release/v3.3'
Fix the bug when ble setting scan param See merge request espressif/esp-idf!13980
This commit is contained in:
commit
26d8690525
@ -855,6 +855,8 @@ BOOLEAN BTM_BleConfigPrivacy(BOOLEAN privacy_mode, tBTM_SET_LOCAL_PRIVACY_CBACK
|
||||
(*random_cb->set_local_privacy_cback)(BTM_SET_PRIVACY_SUCCESS);
|
||||
random_cb->set_local_privacy_cback = NULL;
|
||||
}
|
||||
//Disable RPA function
|
||||
btsnd_hcic_ble_set_addr_resolution_enable(FALSE);
|
||||
} else { /* privacy is turned on*/
|
||||
/* always set host random address, used when privacy 1.1 or priavcy 1.2 is disabled */
|
||||
btm_gen_resolvable_private_addr((void *)btm_gen_resolve_paddr_low);
|
||||
@ -873,6 +875,7 @@ BOOLEAN BTM_BleConfigPrivacy(BOOLEAN privacy_mode, tBTM_SET_LOCAL_PRIVACY_CBACK
|
||||
} else { /* 4.1/4.0 controller */
|
||||
p_cb->privacy_mode = BTM_PRIVACY_1_1;
|
||||
}
|
||||
btsnd_hcic_ble_set_addr_resolution_enable(TRUE);
|
||||
}
|
||||
|
||||
#if (defined(GAP_INCLUDED) && GAP_INCLUDED == TRUE && GATTS_INCLUDED == TRUE)
|
||||
|
Loading…
Reference in New Issue
Block a user