Skip to content

Commit

Permalink
zephyr: support BR/EDR SMP test cases
Browse files Browse the repository at this point in the history
Add specific windows handler for the
SMP cases.

Signed-off-by: Lyle Zhu <[email protected]>
  • Loading branch information
lylezhu2012 committed Jul 25, 2024
1 parent dc24d4e commit 3b5b3c0
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions autopts/ptsprojects/zephyr/sm_wid.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
from autopts.wid import generic_wid_hdl
from autopts.pybtp import btp
from autopts.ptsprojects.zephyr.iutctl import get_iut
from autopts.pybtp.types import WIDParams
from autopts.ptsprojects.stack import get_stack

log = logging.debug

Expand All @@ -36,3 +38,29 @@ def hdl_wid_143(desc):
btp.gap_read_ctrl_info()

return True

def hdl_wid_172(_: WIDParams):
btp.gap_conn_br()
btp.gap_wait_for_connection()
btp.gap_pair()
return True

def hdl_wid_20117(_: WIDParams):
return True

def hdl_wid_112(_: WIDParams):
return True

def hdl_wid_100(params: WIDParams):
btp.gap_conn()
get_stack().gap.wait_for_connection(30)

if (params.test_case_name.startswith("SM/CEN/SCCT/BV-03-C") or
params.test_case_name.startswith("SM/CEN/SCCT/BV-05-C")):
btp.gap_pair()
return True

def hdl_wid_171(_: WIDParams):
btp.gap_set_conn()
btp.gap_set_gendiscov()
return True

0 comments on commit 3b5b3c0

Please sign in to comment.