3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

auto-t: remove unneeded hidden networks

testScan was creating 10 separate hidden networks which
sometimes bogged down hostapd to the point that it would
not start up in time before test-runner's timeouts fired.
This appeared to be due to hostapd needing to create 10
separate interfaces which would sometimes fail with -ENFILE.

The test itself only needed two separate networks, so instead
the additional 8 can be completely removed.
This commit is contained in:
James Prestwood 2021-07-29 15:21:52 -07:00 committed by Denis Kenzior
parent 52189d99f6
commit 1d9f2d69e0
14 changed files with 16 additions and 88 deletions

View File

@ -1,9 +1,10 @@
[SETUP]
num_radios=5
num_radios=6
start_iwd=0
[HOSTAPD]
rad0=ssid_hidden.conf
rad1=ssid_open.conf
rad2=ssid_8021x.conf
rad3=ssid_psk.conf
rad0=ssid_hidden_0.conf
rad1=ssid_hidden_1.conf
rad2=ssid_open.conf
rad3=ssid_8021x.conf
rad4=ssid_psk.conf

View File

@ -12,11 +12,7 @@ class Test(unittest.TestCase):
'ssid_open': False,
'ssid_psk': False,
'ssid_8021x': False,
'ssid_hidden_5': False,
'ssid_hidden_6': False,
'ssid_hidden_7': False,
'ssid_hidden_8': False,
'ssid_hidden_9': False,
'ssid_hidden_1': False,
}
def set_network(self, ssid):
@ -61,11 +57,7 @@ class Test(unittest.TestCase):
@classmethod
def setUpClass(cls):
IWD.copy_to_storage('ssid_hidden_5.open')
IWD.copy_to_storage('ssid_hidden_6.open')
IWD.copy_to_storage('ssid_hidden_7.open')
IWD.copy_to_storage('ssid_hidden_8.open')
IWD.copy_to_storage('ssid_hidden_9.open')
IWD.copy_to_storage('ssid_hidden_1.open')
@classmethod
def tearDownClass(cls):

View File

@ -15,10 +15,6 @@ class Test(unittest.TestCase):
'ssid_psk': False,
'ssid_8021x': False,
'ssid_hidden_0': False,
'ssid_hidden_1': False,
'ssid_hidden_2': False,
'ssid_hidden_3': False,
'ssid_hidden_4': False,
}
def set_network(self, ssid):
@ -63,10 +59,6 @@ class Test(unittest.TestCase):
@classmethod
def setUpClass(cls):
IWD.copy_to_storage('ssid_hidden_0.open')
IWD.copy_to_storage('ssid_hidden_1.open')
IWD.copy_to_storage('ssid_hidden_2.open')
IWD.copy_to_storage('ssid_hidden_3.open')
IWD.copy_to_storage('ssid_hidden_4.open')
@classmethod
def tearDownClass(cls):

View File

@ -1,41 +0,0 @@
ssid=ssid_hidden_0
interface=wln0
hw_mode=g
channel=1
ignore_broadcast_ssid=1
bss=wln0_1
ssid=ssid_hidden_1
ignore_broadcast_ssid=1
bss=wln0_2
ssid=ssid_hidden_2
ignore_broadcast_ssid=1
bss=wln0_3
ssid=ssid_hidden_3
ignore_broadcast_ssid=1
bss=wln0_4
ssid=ssid_hidden_4
ignore_broadcast_ssid=1
bss=wln0_5
ssid=ssid_hidden_5
ignore_broadcast_ssid=1
bss=wln0_6
ssid=ssid_hidden_6
ignore_broadcast_ssid=1
bss=wln0_7
ssid=ssid_hidden_7
ignore_broadcast_ssid=1
bss=wln0_8
ssid=ssid_hidden_8
ignore_broadcast_ssid=1
bss=wln0_9
ssid=ssid_hidden_9
ignore_broadcast_ssid=1

View File

@ -0,0 +1,4 @@
ssid=ssid_hidden_0
hw_mode=g
channel=1
ignore_broadcast_ssid=1

View File

@ -0,0 +1,4 @@
ssid=ssid_hidden_1
hw_mode=g
channel=1
ignore_broadcast_ssid=1

View File

@ -1,3 +0,0 @@
[Settings]
AutoConnect=false
Hidden=true

View File

@ -1,3 +0,0 @@
[Settings]
AutoConnect=false
Hidden=true

View File

@ -1,3 +0,0 @@
[Settings]
AutoConnect=false
Hidden=true

View File

@ -1,3 +0,0 @@
[Settings]
AutoConnect=false
Hidden=true

View File

@ -1,3 +0,0 @@
[Settings]
AutoConnect=false
Hidden=true

View File

@ -1,3 +0,0 @@
[Settings]
AutoConnect=false
Hidden=true

View File

@ -1,3 +0,0 @@
[Settings]
AutoConnect=false
Hidden=true

View File

@ -1,3 +0,0 @@
[Settings]
AutoConnect=false
Hidden=true