diff --git a/tests/hwsim/test_fst_module.py b/tests/hwsim/test_fst_module.py index e84368563..891b2ab50 100644 --- a/tests/hwsim/test_fst_module.py +++ b/tests/hwsim/test_fst_module.py @@ -1928,6 +1928,67 @@ def test_fst_proto(dev, apdev, test_params): except: pass +def test_fst_setup_response_proto(dev, apdev, test_params): + """FST protocol testing for Setup Response""" + ap1, ap2, sta1, sta2 = fst_module_aux.start_two_ap_sta_pairs(apdev) + try: + fst_module_aux.connect_two_ap_sta_pairs(ap1, ap2, sta1, sta2) + hapd = ap1.get_instance() + sta = sta1.get_instance() + dst = sta.own_addr() + src = apdev[0]['bssid'] + + sta1.add_peer(ap1, None, sta2.get_actual_peer_addr()) + sta1.set_fst_parameters(llt='0') + sid = sta1.add_session() + sta1.configure_session(sid, sta2.ifname()) + sta1.initiate_session(sid, "") + + msg = {} + msg['fc'] = MGMT_SUBTYPE_ACTION << 4 + msg['da'] = dst + msg['sa'] = src + msg['bssid'] = src + + # Too short FST Response dropped + msg['payload'] = struct.pack("