I am trying some scanning with a parameter setting, code below. The scan start, I am guessing by the call to nrf_ble_scan_start, generates the error sd_ble_gap_scan_start returned 0x9, which is "invalid length" (not sure)? What length should be changed?
static ble_gap_scan_params_t m_scan_param = {
.extended = 1,
.report_incomplete_evts = 1,
.active = 1,
.filter_policy = BLE_GAP_SCAN_FP_ACCEPT_ALL,
.scan_phys = BLE_GAP_PHY_1MBPS, // or .scan_phys = BLE_GAP_PHY_1MBPS, 2MBPS
.interval = SCAN_INTERVAL, // 180
.window = SCAN_WINDOW, // 90
.timeout = SCAN_TIMEOUT // 0
};