mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
hwsim tests: Make channel configuration for VM tests easier
Add a CHANNELS configuration to the script running the VM that can be added to the vm-config file to allow running the tests with hwsim devices supporting more than a single channel. Eventually, with the (hopefully) upcoming dynamic work in mac80211_hwsim, this might go away entirely, but for now this allows testing more code paths. Signed-hostap: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
9ec876662b
commit
4ecf11c559
@ -25,6 +25,9 @@ KVMOUT=ttyS1
|
|||||||
# extra KVM arguments, e.g., -s for gdbserver
|
# extra KVM arguments, e.g., -s for gdbserver
|
||||||
#KVMARGS=-s
|
#KVMARGS=-s
|
||||||
|
|
||||||
|
# number of channels each hwsim device supports
|
||||||
|
CHANNELS=1
|
||||||
|
|
||||||
test -f vm-config && . vm-config
|
test -f vm-config && . vm-config
|
||||||
|
|
||||||
if [ -z "$KERNEL" ] && [ -z "$KERNELDIR" ] ; then
|
if [ -z "$KERNEL" ] && [ -z "$KERNELDIR" ] ; then
|
||||||
@ -48,4 +51,4 @@ exec kvm \
|
|||||||
-fsdev local,security_model=none,id=fsdev-logs,path="$LOGDIR",writeout=immediate \
|
-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 \
|
-device virtio-9p-pci,id=fs-logs,fsdev=fsdev-logs,mount_tag=logshare \
|
||||||
-monitor null -serial stdio -serial file:$LOGDIR/console \
|
-monitor null -serial stdio -serial file:$LOGDIR/console \
|
||||||
-append "mac80211_hwsim.radios=5 init=$CMD testdir=$TESTDIR console=$KVMOUT root=/dev/root rootflags=trans=virtio,version=9p2000.u ro rootfstype=9p EPATH=$EPATH ARGS=$*"
|
-append "mac80211_hwsim.channels=$CHANNELS mac80211_hwsim.radios=5 init=$CMD testdir=$TESTDIR console=$KVMOUT root=/dev/root rootflags=trans=virtio,version=9p2000.u ro rootfstype=9p EPATH=$EPATH ARGS=$*"
|
||||||
|
Loading…
Reference in New Issue
Block a user