whitelist not working: Unable to connect after aci_gap_set_undirected_connectable
I'm trying to allow re-connects only for whitelisted devices.
I have a phone which is bonded (pass key security) and connected with no problems.
On device disconnect i do the following:
aci_gap_configure_whitelist();
aci_gap_set_undirected_connectable(Advertising_Interval_Min, Advertising_Interval_Max, 0, WHITE_LIST_FOR_ALL);I'm trying to connect again with the same device, but it's not able to.
No one is able to connect at this point, even though device is discoverable.
I have verified with aci_gap_is_device_bonded before calling aci_gap_configure_whitelist and the device is bonded, so the call to aci_gap_configure_whitelist should have added the device to whitelist. I also tried adding the device to whitelist with hci_le_add_device_to_white_list but got same results.
Using BLE FW Stack: 1.8.0
