tests: Add start/stop scripts and configuration files
[mech_eap.git] / tests / hwsim / start-p2p.sh
1 #!/bin/sh
2
3 DIR="$( cd "$( dirname "$0" )" && pwd )"
4 WPAS=$DIR/../../wpa_supplicant/wpa_supplicant
5
6 $DIR/stop-wifi.sh
7 sudo modprobe mac80211_hwsim radios=3
8 mkdir -p $DIR/logs
9 DATE=`date +%s`
10 sudo $WPAS -Dnl80211 -iwlan0 -c $DIR/p2p0.conf -ddKt > $DIR/logs/$DATE-log0 &
11 sudo $WPAS -Dnl80211 -iwlan1 -c $DIR/p2p1.conf -ddKt > $DIR/logs/$DATE-log1 &
12 sudo $WPAS -Dnl80211 -iwlan2 -c $DIR/p2p2.conf -ddKt > $DIR/logs/$DATE-log2 &
13 sleep 1