mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 06:29:23 +01:00
test-runner: Kill hwsim after failed hostapd setup
Without this subsequent tests may be affected by hwsim not being restarted. Additionally in 4.13 the kernel will not use the registered hwsim wmedium for wiphys created after the HWSIM_CMD_REGISTER call and there's no way to re-register it without disconnecting from netlink which is a bit of work. It's a one line fix in 4.13, I've not yet checked if this has changed in current git.
This commit is contained in:
parent
4a7e228da8
commit
90366ba0c4
@ -1794,8 +1794,6 @@ static void create_network_and_run_tests(const void *key, void *value,
|
||||
if (iwd_pid > 0)
|
||||
terminate_iwd(iwd_pid);
|
||||
|
||||
terminate_medium(medium_pid);
|
||||
|
||||
if (ofono_req) {
|
||||
loopback_started = false;
|
||||
stop_ofono(ofono_pid);
|
||||
@ -1805,6 +1803,8 @@ static void create_network_and_run_tests(const void *key, void *value,
|
||||
exit_hostapd:
|
||||
destroy_hostapd_instances(hostapd_pids);
|
||||
|
||||
terminate_medium(medium_pid);
|
||||
|
||||
exit_hwsim:
|
||||
l_queue_destroy(wiphy_list, wiphy_free);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user