mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
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>
This commit is contained in:
parent
5a8d165cd8
commit
1e3c7e82b5
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user