hostap/tests/hwsim/stop-wifi.sh
Jouni Malinen 79c3cbaf12 tests: Capture hwsim0 packet dump during test run
Signed-hostap: Jouni Malinen <j@w1.fi>
2013-04-26 12:36:56 +03:00

12 lines
267 B
Bash
Executable file

#!/bin/sh
sudo killall -q hostapd
sudo killall -q wpa_supplicant
sudo killall -q wlantest
sudo killall -q tcpdump
if grep -q hwsim0 /proc/net/dev; then
sudo ifconfig hwsim0 down
fi
if grep -q mac80211_hwsim /proc/modules ; then
sudo rmmod mac80211_hwsim
fi