mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 17:59:25 +01:00
auto-t: update tests to enable hwsim rules
This commit is contained in:
parent
db9f001865
commit
07da17ec5f
@ -66,16 +66,19 @@ class Test(unittest.TestCase):
|
||||
rule0.source = vht_radio.addresses[0]
|
||||
rule0.bidirectional = True
|
||||
rule0.signal = -5100
|
||||
rule0.enabled = True
|
||||
|
||||
rule1 = hwsim.rules.create()
|
||||
rule1.source = ht_radio.addresses[0]
|
||||
rule1.bidirectional = True
|
||||
rule1.signal = -5200
|
||||
rule1.enabled = True
|
||||
|
||||
rule2 = hwsim.rules.create()
|
||||
rule2.source = non_ht_radio.addresses[0]
|
||||
rule2.bidirectional = True
|
||||
rule2.signal = -5300
|
||||
rule2.enabled = True
|
||||
|
||||
wd = IWD()
|
||||
|
||||
|
@ -39,12 +39,14 @@ class Test(unittest.TestCase):
|
||||
rule0.bidirectional = True
|
||||
rule0.drop = True
|
||||
rule0.prefix = 'b0'
|
||||
rule0.enabled = True
|
||||
|
||||
rule1 = hwsim.rules.create()
|
||||
rule1.source = bss_radio1.addresses[0]
|
||||
rule1.bidirectional = True
|
||||
rule1.drop = True
|
||||
rule1.prefix = 'b0'
|
||||
rule1.enabled = True
|
||||
|
||||
# Test Authenticate (b0) and Association (00) timeouts
|
||||
|
||||
|
@ -20,6 +20,7 @@ class Test(unittest.TestCase):
|
||||
def test_rssi_agent(self):
|
||||
rule = Hwsim().rules.create()
|
||||
rule.signal = -4000
|
||||
rule.enabled = True
|
||||
|
||||
wd = IWD()
|
||||
|
||||
|
@ -29,10 +29,12 @@ class Test(unittest.TestCase):
|
||||
rule0 = hwsim.rules.create()
|
||||
rule0.source = bss_radio[0].addresses[0]
|
||||
rule0.bidirectional = True
|
||||
rule0.enabled = True
|
||||
|
||||
rule1 = hwsim.rules.create()
|
||||
rule1.source = bss_radio[1].addresses[0]
|
||||
rule1.bidirectional = True
|
||||
rule1.enabled = True
|
||||
|
||||
# Fill in the neighbor AP tables in both BSSes. By default each
|
||||
# instance knows only about current BSS, even inside one hostapd
|
||||
|
@ -28,10 +28,12 @@ class Test(unittest.TestCase):
|
||||
rule0 = hwsim.rules.create()
|
||||
rule0.source = bss_radio[0].addresses[0]
|
||||
rule0.bidirectional = True
|
||||
rule0.enabled = True
|
||||
|
||||
rule1 = hwsim.rules.create()
|
||||
rule1.source = bss_radio[1].addresses[0]
|
||||
rule1.bidirectional = True
|
||||
rule1.enabled = True
|
||||
|
||||
# Fill in the neighbor AP tables in both BSSes. By default each
|
||||
# instance knows only about current BSS, even inside one hostapd
|
||||
|
@ -35,6 +35,7 @@ class Test(unittest.TestCase):
|
||||
rule0.bidirectional = True
|
||||
rule0.drop = True
|
||||
rule0.prefix = 'b0'
|
||||
rule0.enabled = True
|
||||
|
||||
wd.wait(1)
|
||||
print(rule0)
|
||||
|
Loading…
Reference in New Issue
Block a user