diff --git a/nimble/host/include/host/ble_gap.h b/nimble/host/include/host/ble_gap.h index fc04aa00c..7f261ed40 100644 --- a/nimble/host/include/host/ble_gap.h +++ b/nimble/host/include/host/ble_gap.h @@ -2037,6 +2037,13 @@ int ble_gap_wl_set(const ble_addr_t *addrs, uint8_t white_list_count); */ int ble_gap_wl_tx_rmv(const ble_addr_t *addrs); +/** + * Clears all addresses from controller's white list. + * + * @return 0 on success; nonzero on failure. + */ +int ble_gap_wl_tx_clear(void); + /** * Initiates a connection parameter update procedure. * diff --git a/nimble/host/src/ble_gap.c b/nimble/host/src/ble_gap.c index dfc5b9f28..5e53d09c4 100644 --- a/nimble/host/src/ble_gap.c +++ b/nimble/host/src/ble_gap.c @@ -2465,7 +2465,7 @@ ble_gap_wl_tx_add(const ble_addr_t *addr) &cmd, sizeof(cmd), NULL, 0); } -static int +int ble_gap_wl_tx_clear(void) { return ble_hs_hci_cmd_tx(BLE_HCI_OP(BLE_HCI_OGF_LE,