/* Checks if the controller can change the whitelist. If advertising is enabled and is using the whitelist the controller is not allowed to change the whitelist. */
int ble_ll_adv_can_chg_whitelist(void)
/* Checks if the controller can change the whitelist. If advertising is enabled and is using the whitelist the controller is not allowed to change the whitelist. */
int ble_ll_adv_can_chg_whitelist(void)
{
    struct ble_ll_adv_sm *advsm;
    int rc;
    int i;
    rc = 1;
    for (i = 0; i < BLE_ADV_INSTANCES; ++i) {
        advsm = &g_ble_ll_adv_sm[i];
        if (advsm->adv_enabled &&
            (advsm->adv_filter_policy != BLE_HCI_ADV_FILT_NONE)) {
            rc = 0;
            break;
        }
    }
    return rc;
}