Commit f59f59db authored by Vladimír Beneš's avatar Vladimír Beneš
Browse files

wifi: make only wlan1 unamanged via device section to not interfere with orig devices

parent e6d6e53a
......@@ -1014,7 +1014,7 @@ def simwifi_p2p_bs(ctx, scen):
# This is workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1752780
ctx.run(
"echo -e '[keyfile]\nunmanaged-devices=wlan1\n' > /etc/NetworkManager/conf.d/99-wifi.conf")
"echo -e '[device]\nmatch-device=interface-name:wlan1\nmanaged=0' > /etc/NetworkManager/conf.d/99-wifi.conf")
nmci.lib.restart_NM_service(ctx)
ctx.run('modprobe mac80211_hwsim')
......
......@@ -394,7 +394,7 @@ function prepare_test_bed ()
# Disable mac randomization to avoid rhbz1490885
echo -e "[device-wifi]\nwifi.scan-rand-mac-address=no" > /etc/NetworkManager/conf.d/99-wifi.conf
echo -e "[connection-wifi]\nwifi.cloned-mac-address=preserve" >> /etc/NetworkManager/conf.d/99-wifi.conf
echo -e "[keyfile]\nunmanaged-devices=interface-name:wlan1*" >> /etc/NetworkManager/conf.d/99-wifi.conf
echo -e "[device]\nmatch-device=interface-name:wlan1\nmanaged=0" >> /etc/NetworkManager/conf.d/99-wifi.conf
if ! lsmod | grep -q -w mac80211_hwsim; then
modprobe mac80211_hwsim
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment