]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Disable support_p2p_device by default
authorJohannes Berg <johannes.berg@intel.com>
Mon, 20 Oct 2014 10:00:07 +0000 (12:00 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 22 Oct 2014 07:53:52 +0000 (10:53 +0300)
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>
tests/hwsim/start.sh
tests/hwsim/vm/vm-run.sh

index 30a7b017b631a5a2abbcf77b4dffd5ec084f70e9..3c18ef391b20c7d346172d91970ef7292eab711d 100755 (executable)
@@ -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
index 5e903d81b1d262fdc1ba0c1f934558239dc65ec5..a6ec5117afeb9294544dd5471b40bbfbde51460d 100755 (executable)
@@ -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