]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Drop use of ifconfig, use ip instead
authorJaap Keuter <jaap.keuter@xs4all.nl>
Mon, 4 Dec 2023 21:34:39 +0000 (22:34 +0100)
committerJouni Malinen <j@w1.fi>
Wed, 6 Dec 2023 09:57:57 +0000 (11:57 +0200)
Signed-off-by: Jaap Keuter <jaap.keuter@xs4all.nl>
tests/hwsim/start.sh
tests/hwsim/stop.sh

index ac43d10afad865cc100930f89c78947791995519..79fc05f9bb678d5835f801af5cf02907b345f20b 100755 (executable)
@@ -112,7 +112,7 @@ fi
 
 test -d /sys/module/mac80211_hwsim || sudo modprobe mac80211_hwsim radios=7 channels=$NUM_CH support_p2p_device=0 dyndbg=+p
 
-sudo ifconfig hwsim0 up
+sudo ip link set hwsim0 up
 sudo $WLANTEST -i hwsim0 -n $LOGDIR/hwsim0.pcapng -c -dtN -L $LOGDIR/hwsim0 &
 for i in 0 1 2; do
     DBUSARG=""
index 5d23b5bd68bf9fc380e0656722a8e2b9a1efe9f1..22e24cd395418d4a151b7327819583ff1ad8a729 100755 (executable)
@@ -15,7 +15,7 @@ for i in `pidof valgrind.bin`; do
 done
 sudo killall -q wlantest
 if grep -q hwsim0 /proc/net/dev; then
-    sudo ifconfig hwsim0 down
+    sudo ip link set hwsim0 down
 fi
 
 sudo killall -q hlr_auc_gw