mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 14:49:24 +01:00
auto-t: testSAE-roam: wait for ip link down
Before setting the address, wait for the interface to go down. This fixes somewhat rare cases where setting the address returns -EBUSY and ultimately breaks the neighbor reports.
This commit is contained in:
parent
1fca13f07a
commit
b1bc8fb7fb
@ -120,13 +120,13 @@ class Test(unittest.TestCase):
|
|||||||
HostapdCLI(config='ft-sae-2.conf'),
|
HostapdCLI(config='ft-sae-2.conf'),
|
||||||
HostapdCLI(config='ft-psk-3.conf') ]
|
HostapdCLI(config='ft-psk-3.conf') ]
|
||||||
|
|
||||||
ctx.start_process(['ip', 'link', 'set', 'dev', cls.bss_hostapd[0].ifname, 'down'])
|
ctx.start_process(['ip', 'link', 'set', 'dev', cls.bss_hostapd[0].ifname, 'down']).wait()
|
||||||
ctx.start_process(['ip', 'link', 'set', 'dev', cls.bss_hostapd[0].ifname, \
|
ctx.start_process(['ip', 'link', 'set', 'dev', cls.bss_hostapd[0].ifname, \
|
||||||
'addr', '12:00:00:00:00:01', 'up']).wait()
|
'addr', '12:00:00:00:00:01', 'up']).wait()
|
||||||
ctx.start_process(['ip', 'link', 'set', 'dev', cls.bss_hostapd[1].ifname, 'down'])
|
ctx.start_process(['ip', 'link', 'set', 'dev', cls.bss_hostapd[1].ifname, 'down']).wait()
|
||||||
ctx.start_process(['ip', 'link', 'set', 'dev', cls.bss_hostapd[1].ifname, \
|
ctx.start_process(['ip', 'link', 'set', 'dev', cls.bss_hostapd[1].ifname, \
|
||||||
'addr', '12:00:00:00:00:02', 'up']).wait()
|
'addr', '12:00:00:00:00:02', 'up']).wait()
|
||||||
ctx.start_process(['ip', 'link', 'set', 'dev', cls.bss_hostapd[2].ifname, 'down'])
|
ctx.start_process(['ip', 'link', 'set', 'dev', cls.bss_hostapd[2].ifname, 'down']).wait()
|
||||||
ctx.start_process(['ip', 'link', 'set', 'dev', cls.bss_hostapd[2].ifname, \
|
ctx.start_process(['ip', 'link', 'set', 'dev', cls.bss_hostapd[2].ifname, \
|
||||||
'addr', '12:00:00:00:00:03', 'up']).wait()
|
'addr', '12:00:00:00:00:03', 'up']).wait()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user