# Test cases for MSCS # Copyright (c) 2021, Jouni Malinen # # This software may be distributed under the terms of the BSD license. # See README for more details. import struct import time import hostapd from utils import * def register_mcsc_req(hapd): type = 0x00d0 match = "1304" if "OK" not in hapd.request("REGISTER_FRAME %04x %s" % (type, match)): raise Exception("Could not register frame reception for Robust AV Streaming") def fill_change_params(dialog_token, status_code, params): req_type = params['req_type'] if 'req_type' in params else 2 return struct.pack('