mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-29 05:39:24 +01:00
auto-t: fix blacklist test ranking
The scan ranking logic was previously changed to be based off a theoretical calculated data rate rather than signal strength. For HT/VHT networks there are many data points that can be used for this calculation, but non HT/VHT networks are estimated based on a simple table mapping signal strengths to data rates. This table starts at a signal strength of -65 dBm and decreases from there, meaning any signal strengths greater than -65 dBm will end up getting the same ranking. This poses a problem for 3/4 blacklisting tests as they set signal strengths ranging from -20 to -40 dBm. IWD will then autoconnect to whatever network popped up first, which may not be the expected network. To fix this the signal strengths were changed to much lower values which ensures IWD picks the expected network.
This commit is contained in:
parent
8d40c37469
commit
f902c7019d
@ -32,12 +32,12 @@ class Test(unittest.TestCase):
|
||||
rule1 = hwsim.rules.create()
|
||||
rule1.source = bss_radio[1].addresses[0]
|
||||
rule1.bidirectional = True
|
||||
rule1.signal = -3000
|
||||
rule1.signal = -7000
|
||||
|
||||
rule2 = hwsim.rules.create()
|
||||
rule2.source = bss_radio[2].addresses[0]
|
||||
rule2.bidirectional = True
|
||||
rule2.signal = -4000
|
||||
rule2.signal = -8000
|
||||
|
||||
wd = IWD(True)
|
||||
|
||||
|
@ -34,12 +34,12 @@ class Test(unittest.TestCase):
|
||||
rule1 = hwsim.rules.create()
|
||||
rule1.source = bss_radio[1].addresses[0]
|
||||
rule1.bidirectional = True
|
||||
rule1.signal = -3000
|
||||
rule1.signal = -7000
|
||||
|
||||
rule2 = hwsim.rules.create()
|
||||
rule2.source = bss_radio[2].addresses[0]
|
||||
rule2.bidirectional = True
|
||||
rule2.signal = -4000
|
||||
rule2.signal = -8000
|
||||
|
||||
wd = IWD(True)
|
||||
|
||||
|
@ -32,7 +32,7 @@ class Test(unittest.TestCase):
|
||||
rule1 = hwsim.rules.create()
|
||||
rule1.source = bss_radio[1].addresses[0]
|
||||
rule1.bidirectional = True
|
||||
rule1.signal = -2500
|
||||
rule1.signal = -7000
|
||||
|
||||
rule2 = hwsim.rules.create()
|
||||
rule2.source = bss_radio[2].addresses[0]
|
||||
|
Loading…
Reference in New Issue
Block a user