Esempio n. 1
0
def hdl_wid_255(_: WIDParams):
    stack = get_stack()
    l2cap = stack.l2cap

    btp.l2cap_conn(None, None, l2cap.psm, l2cap.initial_mtu,
                   l2cap.num_channels, 1, l2cap.hold_credits)
    return True
Esempio n. 2
0
def hdl_wid_227(desc):

    try:
        btp.l2cap_conn(None, None, 128)
    except types.BTPError:
        pass
    return True
Esempio n. 3
0
def hdl_wid_267(_: WIDParams):
    # PTS want us to use specific Source CID, but we can just ignore it as it
    # should not require that
    stack = get_stack()
    l2cap = stack.l2cap

    btp.l2cap_conn(None, None, l2cap.psm, l2cap.initial_mtu)
    return True
Esempio n. 4
0
def hdl_wid_227(desc):
    stack = get_stack()

    try:
        btp.l2cap_conn(None, None, 128)
    except pybtp.types.BTPError:
        pass
    return True
Esempio n. 5
0
def hdl_wid_41(desc):
    """
    Implements: TSC_MMI_iut_send_le_credit_based_connection_request
    :param desc: Using the Implementation Under Test (IUT), send a LE Credit based connection request to PTS.
    :return:
    """
    stack = get_stack()

    btp.l2cap_conn(None, None, stack.l2cap.psm, 256)

    return True
Esempio n. 6
0
def hdl_wid_41(_: WIDParams):
    """
    Implements: TSC_MMI_iut_send_le_credit_based_connection_request
    description: Using the Implementation Under Test (IUT), send a LE Credit based connection request to PTS.
    """
    stack = get_stack()
    l2cap = stack.l2cap

    btp.l2cap_conn(None, None, stack.l2cap.psm, l2cap.initial_mtu)

    return True
Esempio n. 7
0
def hdl_wid_255(desc):
    stack = get_stack()
    l2cap = stack.l2cap

    btp.l2cap_conn(None, None, l2cap.psm, l2cap.initial_mtu, 2)
    return True
Esempio n. 8
0
def hdl_wid_255(desc):
    stack = get_stack()
    l2cap = stack.l2cap

    btp.l2cap_conn(None, None, l2cap.psm, num=2)
    return True