tests: Drop use of ifconfig, use ip instead

Signed-off-by: Jaap Keuter <jaap.keuter@xs4all.nl>
This commit is contained in:
Jaap Keuter 2023-12-04 22:34:39 +01:00 committed by Jouni Malinen
parent 5a47bbc36b
commit e8121c52f4
2 changed files with 2 additions and 2 deletions

View file

@ -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 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 & sudo $WLANTEST -i hwsim0 -n $LOGDIR/hwsim0.pcapng -c -dtN -L $LOGDIR/hwsim0 &
for i in 0 1 2; do for i in 0 1 2; do
DBUSARG="" DBUSARG=""

View file

@ -15,7 +15,7 @@ for i in `pidof valgrind.bin`; do
done done
sudo killall -q wlantest sudo killall -q wlantest
if grep -q hwsim0 /proc/net/dev; then if grep -q hwsim0 /proc/net/dev; then
sudo ifconfig hwsim0 down sudo ip link set hwsim0 down
fi fi
sudo killall -q hlr_auc_gw sudo killall -q hlr_auc_gw