Skip to content

Commit

Permalink
Fix GAP/SEC/AUT/BV-19-C
Browse files Browse the repository at this point in the history
WID108 appears twice in a row for this test with different descritpions.
The point is to call gap_pair command only once. This was also the case
for test GAP/BOND/BON/BV-02-C, which was explained by sjanc:
"On Zephyr second call is just a NOP (since encryption is already enabled),
but in NimBLE this results in re-encrypting link with existing LTK which
confuses PTS due to unexpected HCI event."
  • Loading branch information
piotrnarajowski committed Aug 9, 2024
1 parent f3ddaed commit f7591d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autopts/wid/gap.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ def hdl_wid_106(params: WIDParams):


def hdl_wid_108(params: WIDParams):
if params.test_case_name in ['GAP/BOND/BON/BV-02-C']:
if params.test_case_name in ['GAP/BOND/BON/BV-02-C', 'GAP/SEC/AUT/BV-19-C']:
if params.description.startswith('Please configure the IUT into LE Security and start pairing process.'):
return True

Expand Down

0 comments on commit f7591d2

Please sign in to comment.