tests: Add channels argument to run-all.sh and start.sh
Add an option to run-all.sh and start.sh to get as an argument the number of concurrent channels that mac80211_hwsim will be loaded with. To start mac80211_hwsim with more than one channel, the following parameter should be added to command line: channels=<num_channels> The default is one channel (no concurrent channels). The driver should be loaded with multi channel support in order to run some tests. Signed-off-by: Haim Dreyfuss <haim.dreyfuss@intel.com>
This commit is contained in:
parent
e6270129f6
commit
57d909eeff
3 changed files with 27 additions and 2 deletions
|
@ -68,7 +68,16 @@ else
|
|||
fi
|
||||
|
||||
$DIR/stop.sh
|
||||
test -f /proc/modules && sudo modprobe mac80211_hwsim radios=6
|
||||
|
||||
TMP=$1
|
||||
if [ x${TMP%=[0-9]*} = "xchannels" ]; then
|
||||
NUM_CH=${TMP#channels=}
|
||||
shift
|
||||
else
|
||||
NUM_CH=1
|
||||
fi
|
||||
|
||||
test -f /proc/modules && sudo modprobe mac80211_hwsim radios=6 channels=$NUM_CH
|
||||
sudo ifconfig hwsim0 up
|
||||
sudo $WLANTEST -i hwsim0 -n $LOGDIR/hwsim0.pcapng -c -dt -L $LOGDIR/hwsim0 &
|
||||
for i in 0 1 2; do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue