From: Daniel Gabay <daniel.gabay@xxxxxxxxx> The expected result is that the truncated frame is discarded, but since the bss termination subelement is optional, the frame is going to be discarded only if the BSS Termination Included (bit 3) is set. So by changing req_mode from 0x01 to 0x09, bit 3 is set and the frame is discarded. Signed-off-by: Daniel Gabay <daniel.gabay@xxxxxxxxx> --- tests/hwsim/test_wnm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hwsim/test_wnm.py b/tests/hwsim/test_wnm.py index d1ad0a8fd9..2fcdb3476b 100644 --- a/tests/hwsim/test_wnm.py +++ b/tests/hwsim/test_wnm.py @@ -754,7 +754,7 @@ def test_wnm_bss_tm_req(dev, apdev): # Preferred Candidate List with truncated BSS Termination Duration # WNM: Too short BSS termination duration req = bss_tm_req(addr, apdev[0]['bssid'], - req_mode=0x01, dialog_token=8) + req_mode=0x09, dialog_token=8) # BSS Termination Duration (truncated) subelems = struct.pack("<BBQB", 4, 9, 0, 10) req['payload'] += struct.pack("<BB6BLBBB", 52, 13 + len(subelems), -- 2.38.1 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap