mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
auto-t: Use more realistic RSSIs for HT-VHT test
This commit is contained in:
parent
c3b1425edd
commit
6ff152669a
@ -61,17 +61,17 @@ class Test(unittest.TestCase):
|
|||||||
rule0 = hwsim.rules.create()
|
rule0 = hwsim.rules.create()
|
||||||
rule0.source = vht_radio.addresses[0]
|
rule0.source = vht_radio.addresses[0]
|
||||||
rule0.bidirectional = True
|
rule0.bidirectional = True
|
||||||
rule0.signal = -2000
|
rule0.signal = -5100
|
||||||
|
|
||||||
rule1 = hwsim.rules.create()
|
rule1 = hwsim.rules.create()
|
||||||
rule1.source = ht_radio.addresses[0]
|
rule1.source = ht_radio.addresses[0]
|
||||||
rule1.bidirectional = True
|
rule1.bidirectional = True
|
||||||
rule1.signal = -2000
|
rule1.signal = -5200
|
||||||
|
|
||||||
rule2 = hwsim.rules.create()
|
rule2 = hwsim.rules.create()
|
||||||
rule2.source = non_ht_radio.addresses[0]
|
rule2.source = non_ht_radio.addresses[0]
|
||||||
rule2.bidirectional = True
|
rule2.bidirectional = True
|
||||||
rule2.signal = -2000
|
rule2.signal = -5300
|
||||||
|
|
||||||
wd = IWD()
|
wd = IWD()
|
||||||
|
|
||||||
@ -83,12 +83,12 @@ class Test(unittest.TestCase):
|
|||||||
self.do_connect(wd, device, vht_hostapd)
|
self.do_connect(wd, device, vht_hostapd)
|
||||||
|
|
||||||
# lower VHT BSS signal, HT should now be preferred
|
# lower VHT BSS signal, HT should now be preferred
|
||||||
rule0.signal = -6000
|
rule0.signal = -7900
|
||||||
|
|
||||||
self.do_connect(wd, device, ht_hostapd)
|
self.do_connect(wd, device, ht_hostapd)
|
||||||
|
|
||||||
# lower HT BSS signal, basic rate BSS should now be preferred
|
# lower HT BSS signal, basic rate BSS should now be preferred
|
||||||
rule1.signal = -6000
|
rule1.signal = -7400
|
||||||
|
|
||||||
self.do_connect(wd, device, non_ht_hostapd)
|
self.do_connect(wd, device, non_ht_hostapd)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user