aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2014-10-20 10:00:07 (GMT)
committerJouni Malinen <j@w1.fi>2014-10-22 07:53:52 (GMT)
commit1e3c7e82b50f9985da06e7516c56411d047edfd5 (patch)
tree7d05cf10ec7be55b81258ebc0cfb8cd6a70f8b80 /tests
parent5a8d165cd8afa8d27422a2c642caf7a7a2724643 (diff)
downloadhostap-1e3c7e82b50f9985da06e7516c56411d047edfd5.zip
hostap-1e3c7e82b50f9985da06e7516c56411d047edfd5.tar.gz
hostap-1e3c7e82b50f9985da06e7516c56411d047edfd5.tar.bz2
tests: Disable support_p2p_device by default
When loading the hwsim module, disable support_p2p_device by default. This will also become the default in the kernel, but until then it makes sure it's not turned on by default. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/hwsim/start.sh2
-rwxr-xr-xtests/hwsim/vm/vm-run.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/hwsim/start.sh b/tests/hwsim/start.sh
index 30a7b01..3c18ef3 100755
--- a/tests/hwsim/start.sh
+++ b/tests/hwsim/start.sh
@@ -77,7 +77,7 @@ else
NUM_CH=1
fi
-test -f /proc/modules && sudo modprobe mac80211_hwsim radios=6 channels=$NUM_CH
+test -f /proc/modules && sudo modprobe mac80211_hwsim radios=6 channels=$NUM_CH support_p2p_device=0
sudo ifconfig hwsim0 up
sudo $WLANTEST -i hwsim0 -n $LOGDIR/hwsim0.pcapng -c -dt -L $LOGDIR/hwsim0 &
for i in 0 1 2; do
diff --git a/tests/hwsim/vm/vm-run.sh b/tests/hwsim/vm/vm-run.sh
index 5e903d8..a6ec511 100755
--- a/tests/hwsim/vm/vm-run.sh
+++ b/tests/hwsim/vm/vm-run.sh
@@ -127,7 +127,7 @@ kvm \
-fsdev local,security_model=none,id=fsdev-logs,path="$LOGDIR",writeout=immediate \
-device virtio-9p-pci,id=fs-logs,fsdev=fsdev-logs,mount_tag=logshare \
-monitor null -serial stdio -serial file:$LOGDIR/console \
- -append "mac80211_hwsim.channels=$CHANNELS mac80211_hwsim.radios=6 init=$CMD testdir=$TESTDIR timewarp=$TIMEWARP console=$KVMOUT root=/dev/root rootflags=trans=virtio,version=9p2000.u ro rootfstype=9p EPATH=$EPATH ARGS=$*"
+ -append "mac80211_hwsim.support_p2p_device=0 mac80211_hwsim.channels=$CHANNELS mac80211_hwsim.radios=6 init=$CMD testdir=$TESTDIR timewarp=$TIMEWARP console=$KVMOUT root=/dev/root rootflags=trans=virtio,version=9p2000.u ro rootfstype=9p EPATH=$EPATH ARGS=$*"
if [ $CODECOV = "yes" ]; then
mv $LOGDIR/alt-wpa_supplicant /tmp/logs