Skip to content

Commit 28bbace

Browse files
AyturkDuzenFrodevan
authored andcommitted
zephyr: boards: fix nrf53 downstream
Pass '-DSNIPPET=bt-ll-sw-split' for building zll downstream. Signed-off-by: Aytürk Düzen <ayturk.duzen@nordicsemi.no>
1 parent eee80c6 commit 28bbace

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

autopts/ptsprojects/boards/nrf53.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ def build_and_flash(zephyr_wd, board, debugger_snr, conf_file=None, *args):
4545
check_call(['west', 'flash', '--skip-rebuild', '--recover', '-i', debugger_snr], cwd=tester_dir)
4646

4747
cmd = ['west', 'build', '--no-sysbuild', '-b', 'nrf5340dk/nrf5340/cpunet', '--',
48-
f'-DEXTRA_CONF_FILE=\'nrf5340_cpunet_iso-bt_ll_sw_split.conf;'
49-
f'../../../tests/bluetooth/tester/hci_ipc_cpunet.conf\'']
48+
f'-DEXTRA_CONF_FILE=\'nrf5340_cpunet_iso-bt_ll_sw_split.conf;',
49+
f'../../../tests/bluetooth/tester/hci_ipc_cpunet.conf\'',
50+
'-DSNIPPET=bt-ll-sw-split']
5051
check_call(cmd, cwd=controller_dir)
5152
check_call(['west', 'flash', '--skip-rebuild', '-i', debugger_snr], cwd=controller_dir)

autopts/wid/csip.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,10 @@ def hdl_wid_20100(params: WIDParams):
177177

178178
btp.gap_conn(addr, addr_type)
179179
stack.gap.wait_for_connection(timeout=10, addr=addr)
180-
stack.gap.gap_wait_for_sec_lvl_change(level=2, timeout=30, addr=addr)
180+
sec_lvl = stack.gap.gap_wait_for_sec_lvl_change(level=2, timeout=10, addr=addr)
181+
if sec_lvl != 2:
182+
btp.gap_pair(addr, addr_type)
183+
sec_lvl = stack.gap.gap_wait_for_sec_lvl_change(level=2, timeout=30, addr=addr)
181184

182185
#CSIP/CL/SP/BV-07-C will receive the WID 20101. Hence, no need to perform discovery here.
183186

0 commit comments

Comments
 (0)