From: Daniel Gabay Date: Tue, 26 Dec 2023 09:45:25 +0000 (+0200) Subject: tests: Extend MSCS testing X-Git-Tag: hostap_2_11~498 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75ac1f1ac0640b773bd3874d0dab522b32697d87;p=thirdparty%2Fhostap.git tests: Extend MSCS testing Add tests for new response handling logic: 1. Verify MSCS change response handling in association / action frame. 2. Verify MSCS unsolicited response handling. Signed-off-by: Daniel Gabay --- diff --git a/tests/hwsim/test_mscs.py b/tests/hwsim/test_mscs.py index ed04e211f..e917c700b 100644 --- a/tests/hwsim/test_mscs.py +++ b/tests/hwsim/test_mscs.py @@ -16,7 +16,14 @@ def register_mcsc_req(hapd): if "OK" not in hapd.request("REGISTER_FRAME %04x %s" % (type, match)): raise Exception("Could not register frame reception for Robust AV Streaming") -def handle_mscs_req(hapd, wrong_dialog=False, status_code=0): +def fill_change_params(dialog_token, status_code, params): + req_type = params['req_type'] if 'req_type' in params else 2 + return struct.pack('