/* Checks if controller can change the whitelist. If scanning is enabled and using the whitelist the controller is not allowed to change the whitelist. */
int ble_ll_scan_can_chg_whitelist(void)
/* Checks if controller can change the whitelist. If scanning is enabled and using the whitelist the controller is not allowed to change the whitelist. */
int ble_ll_scan_can_chg_whitelist(void)
{
    int rc;
    struct ble_ll_scan_sm *scansm;
    struct ble_ll_scan_params *scanp;
    scansm = &g_ble_ll_scan_sm;
    scanp = scansm->scanp;
    if (scansm->scan_enabled && (scanp->scan_filt_policy & 1)) {
        rc = 0;
    } else {
        rc = 1;
    }
    return rc;
}