mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
auto-t: change testSAE timeout_test to use match/offset
This makes things more clear on what frames are being blocked since it passes over header information to get to the actual SAE payload.
This commit is contained in:
parent
9049ed2f25
commit
1574909535
@ -42,6 +42,8 @@ class Test(unittest.TestCase):
|
|||||||
#
|
#
|
||||||
hostapd = HostapdCLI(config='ssidSAE.conf')
|
hostapd = HostapdCLI(config='ssidSAE.conf')
|
||||||
hostapd.set_value('vendor_elements', 'dd0cf4f5e8050500000000000000')
|
hostapd.set_value('vendor_elements', 'dd0cf4f5e8050500000000000000')
|
||||||
|
hostapd.set_value('sae_groups', '19')
|
||||||
|
hostapd.reload()
|
||||||
|
|
||||||
hwsim = Hwsim()
|
hwsim = Hwsim()
|
||||||
bss_radio = hwsim.get_radio('rad0')
|
bss_radio = hwsim.get_radio('rad0')
|
||||||
@ -50,6 +52,8 @@ class Test(unittest.TestCase):
|
|||||||
rule0.source = bss_radio.addresses[0]
|
rule0.source = bss_radio.addresses[0]
|
||||||
rule0.drop = True
|
rule0.drop = True
|
||||||
rule0.prefix = 'b0'
|
rule0.prefix = 'b0'
|
||||||
|
rule0.match = '01 00 00 00 13 00'
|
||||||
|
rule0.match_offset = 26
|
||||||
rule0.match_times = 1
|
rule0.match_times = 1
|
||||||
rule0.drop_ack = True
|
rule0.drop_ack = True
|
||||||
rule0.enabled = True
|
rule0.enabled = True
|
||||||
@ -57,6 +61,8 @@ class Test(unittest.TestCase):
|
|||||||
wd = IWD(True)
|
wd = IWD(True)
|
||||||
self.validate_connection(wd)
|
self.validate_connection(wd)
|
||||||
|
|
||||||
|
rule0.remove()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user