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-29 12:37:03 -04:00
|
|
|
sudo modprobe mac80211_hwsim radios=4
|
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 &
|
|
|
|
sudo $WPAS -Dnl80211 -iwlan0 -c $DIR/p2p0.conf -ddKt > $DIR/logs/$DATE-log0 &
|
|
|
|
sudo $WPAS -Dnl80211 -iwlan1 -c $DIR/p2p1.conf -ddKt > $DIR/logs/$DATE-log1 &
|
2013-03-29 12:37:03 -04:00
|
|
|
sudo $HAPD -ddKt -g $DIR/hostapd-global -G admin -ddKt > $DIR/logs/$DATE-hostapd &
|
2013-03-27 08:40:10 -04:00
|
|
|
sleep 1
|