[PATCH] tests: hwsim: hack test scripts to verify P2P functionality
Arend van Spriel
arend
Wed May 29 03:01:06 PDT 2013
This is just a quick hack that should not be applied. Just to
show what was done to execute the tests with P2P_DEVICE support.
Signed-hostap: Arend van Spriel <arend at broadcom.com>
---
tests/hwsim/run-tests.py | 8 ++++----
tests/hwsim/start.sh | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py
index 7bdd414..a525e42 100755
--- a/tests/hwsim/run-tests.py
+++ b/tests/hwsim/run-tests.py
@@ -49,9 +49,9 @@ def main():
else:
test_filter = None
- dev0 = WpaSupplicant('wlan0')
- dev1 = WpaSupplicant('wlan1')
- dev2 = WpaSupplicant('wlan2')
+ dev0 = WpaSupplicant('p2p-dev-wlan0')
+ dev1 = WpaSupplicant('p2p-dev-wlan1')
+ dev2 = WpaSupplicant('p2p-dev-wlan2')
dev = [ dev0, dev1, dev2 ]
apdev = [ ]
apdev.append({"ifname": 'wlan3', "bssid": "02:00:00:00:03:00"})
@@ -67,7 +67,7 @@ def main():
tests = []
for t in os.listdir("."):
- m = re.match(r'(test_.*)\.py$', t)
+ m = re.match(r'(test_p2p.*)\.py$', t)
if m:
if test_file and test_file not in t:
continue
diff --git a/tests/hwsim/start.sh b/tests/hwsim/start.sh
index 9a76ecb..f9789c8 100755
--- a/tests/hwsim/start.sh
+++ b/tests/hwsim/start.sh
@@ -6,7 +6,7 @@ HAPD=$DIR/../../hostapd/hostapd
WLANTEST=$DIR/../../wlantest/wlantest
$DIR/stop-wifi.sh
-sudo modprobe mac80211_hwsim radios=5
+sudo modprobe mac80211_hwsim radios=5 channels=2
mkdir -p $DIR/logs
DATE=`date +%s`
sudo ifconfig hwsim0 up
--
1.7.10.4
--------------040302030801000509060702--
More information about the Hostap
mailing list