From 0a503e0de2e930cbb70bf875b50a6bce37d32f35 Mon Sep 17 00:00:00 2001 From: Michael Braun Date: Thu, 23 Mar 2017 12:57:17 +0100 Subject: [PATCH] tests: Document rfkill workaround for systemd for hwsim tests Signed-off-by: Michael Braun --- tests/hwsim/example-setup.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/hwsim/example-setup.txt b/tests/hwsim/example-setup.txt index a30f8f816..cf5cf3ba6 100644 --- a/tests/hwsim/example-setup.txt +++ b/tests/hwsim/example-setup.txt @@ -178,3 +178,14 @@ http://buildbot.w1.fi/backports-wireless-testing/backports-wireless-testing-2015 With that version, ibss_rsn is failing due to a known cfg80211 regression in the specific snapshot build. All other test cases passed at least on retry or were skipped due to missing testing capability. + +With systemd based distros, e.g., Ubuntu 16.04, systemd-rfkill.service might +block the mac80211_hwsim network devices. +The tests will fail with + Exception: Failed to enable hostapd interface wlan3 +In the *.hostapd log, would will read + nl80211: Could not yet enable interface 'wlan3' due to rfkill +Your syslog will read + systemd[1]: Starting Load/Save RF Kill Switch Status... +This can be fixed by + systemctl mask systemd-rfkill.service