Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 845d3b4f authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge changes I381652d6,I314e8b7f

* changes:
  Re-format the dump le audio.py
  Only parse ATT_READ_BY_TYPE_RSP for the charactertistic type
parents ac8f44dd ae550d88
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -215,6 +215,10 @@ def parse_codec_information(connection_handle, ase_id, packet):

def parse_att_read_by_type_rsp(packet, connection_handle):
    length, packet = unpack_data(packet, 1, False)
    if length != 7:
        #ignore the packet, we're only interested in this packet for the characteristic type UUID
        return

    if length > len(packet):
        debug_print("Invalid att packet length")
        return
@@ -504,9 +508,7 @@ def main():
        "--header",
        help="Add the header for LC3 Conformance Interoperability Test Software V.1.0.3.",
        action="store_true")
    parser.add_argument(
        "--ase_handle", help="Set the ASE handle manually.",
        type=int)
    parser.add_argument("--ase_handle", help="Set the ASE handle manually.", type=int)

    argv = parser.parse_args()
    BTSNOOP_FILE_NAME = argv.btsnoop_file