2013-03-27 08:40:10 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
DIR="$( cd "$( dirname "$0" )" && pwd )"
|
|
|
|
WPAS=$DIR/../../wpa_supplicant/wpa_supplicant
|
|
|
|
HAPD=$DIR/../../hostapd/hostapd
|
|
|
|
WLANTEST=$DIR/../../wlantest/wlantest
|
|
|
|
|
|
|
|
$DIR/stop-wifi.sh
|
2013-03-31 09:19:12 -04:00
|
|
|
sudo modprobe mac80211_hwsim radios=5
|
2013-03-27 08:40:10 -04:00
|
|
|
mkdir -p $DIR/logs
|
|
|
|
DATE=`date +%s`
|
|
|
|
sudo ifconfig hwsim0 up
|
|
|
|
sudo $WLANTEST -i hwsim0 -c -d > $DIR/logs/$DATE-hwsim0 &
|
2013-04-26 05:36:56 -04:00
|
|
|
sudo tcpdump -ni hwsim0 -s 2500 -w $DIR/logs/$DATE-hwsim0.dump &
|
2013-06-30 17:13:11 -04:00
|
|
|
sudo $WPAS -g /tmp/wpas-wlan0 -Gadmin -Dnl80211 -iwlan0 -c $DIR/p2p0.conf -ddKt > $DIR/logs/$DATE-log0 &
|
|
|
|
sudo $WPAS -g /tmp/wpas-wlan1 -Gadmin -Dnl80211 -iwlan1 -c $DIR/p2p1.conf -ddKt > $DIR/logs/$DATE-log1 &
|
|
|
|
sudo $WPAS -g /tmp/wpas-wlan2 -Gadmin -Dnl80211 -iwlan2 -c $DIR/p2p2.conf -ddKt > $DIR/logs/$DATE-log2 &
|
2013-05-10 10:09:55 -04:00
|
|
|
sudo $HAPD -ddKt -g /var/run/hostapd-global -G admin -ddKt > $DIR/logs/$DATE-hostapd &
|
2013-03-27 08:40:10 -04:00
|
|
|
sleep 1
|
2013-04-26 05:36:56 -04:00
|
|
|
sudo chown $USER $DIR/logs/$DATE-hwsim0.dump
|