Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Fernando Fernández Mancera
NetworkManager-ci
Commits
f59f59db
Commit
f59f59db
authored
Nov 16, 2021
by
Vladimír Beneš
☮
Browse files
wifi: make only wlan1 unamanged via device section to not interfere with orig devices
parent
e6d6e53a
Changes
2
Hide whitespace changes
Inline
Side-by-side
nmci/tags.py
View file @
f59f59db
...
...
@@ -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 '[
keyfil
e]
\
n
u
nma
naged
-device
s=wlan1
\n
' > /etc/NetworkManager/conf.d/99-wifi.conf"
)
"echo -e '[
devic
e]
\n
ma
tch
-device
=interface-name:wlan1
\n
managed=0
' > /etc/NetworkManager/conf.d/99-wifi.conf"
)
nmci
.
lib
.
restart_NM_service
(
ctx
)
ctx
.
run
(
'modprobe mac80211_hwsim'
)
...
...
prepare/hostapd_wireless.sh
View file @
f59f59db
...
...
@@ -394,7 +394,7 @@ function prepare_test_bed ()
# Disable mac randomization to avoid rhbz1490885
echo
-e
"[device-wifi]
\n
wifi.scan-rand-mac-address=no"
>
/etc/NetworkManager/conf.d/99-wifi.conf
echo
-e
"[connection-wifi]
\n
wifi.cloned-mac-address=preserve"
>>
/etc/NetworkManager/conf.d/99-wifi.conf
echo
-e
"[
keyfile]
\n
unmanaged
-device
s
=interface-name:wlan1
*
"
>>
/etc/NetworkManager/conf.d/99-wifi.conf
echo
-e
"[
device]
\n
match
-device=interface-name:wlan1
\n
managed=0
"
>>
/etc/NetworkManager/conf.d/99-wifi.conf
if
!
lsmod |
grep
-q
-w
mac80211_hwsim
;
then
modprobe mac80211_hwsim
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment