Skip to content

Commit

Permalink
Zephyr: Support BR/EDR GAP cases
Browse files Browse the repository at this point in the history
Support BR/EDR GAP cases,
GAP/SEC/SEM/BI-28-C,
GAP/SEC/SEM/BI-29-C,
GAP/SEC/SEM/BI-30-C,
and GAP/SEC/SEM/BI-33-C.

Signed-off-by: Lyle Zhu <[email protected]>
  • Loading branch information
lylezhu2012 committed Sep 6, 2024
1 parent 6842ecb commit f13d544
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion autopts/ptsprojects/zephyr/gap_wid.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,13 @@ def hdl_wid_220(_: WIDParams):
def hdl_wid_255(_: WIDParams):
return True

def hdl_wid_266(_: WIDParams):
def hdl_wid_266(params: WIDParams):
if (params.test_case_name.startswith("GAP/SEC/SEM/BI-28-C")
or params.test_case_name.startswith("GAP/SEC/SEM/BI-29-C")
or params.test_case_name.startswith("GAP/SEC/SEM/BI-30-C")):
return btp.gap_wait_for_encryption_fail()
if params.test_case_name.startswith("GAP/SEC/SEM/BI-33-C"):
return btp.gap_wait_for_sec_lvl_change(defs.GAP_PAIR_LEVEL_4)
btp.gap_wait_for_disconnection()
return not get_stack().gap.is_connected()

Expand Down Expand Up @@ -393,3 +399,6 @@ def hdl_wid_208(params: WIDParams):
return True
btp.gap_pair()
return True

def hdl_wid_274(_: WIDParams):
return True

0 comments on commit f13d544

Please sign in to comment.