diff options
author | Jouni Malinen <jouni.malinen@atheros.com> | 2008-08-28 18:53:47 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2008-08-28 18:53:47 +0300 |
commit | b3f240bc0e3fbab466cd819f024451189af4fe9c (patch) | |
tree | 00820e05d9270a47221a1d056cb1b12c5e3a3c5d /mac80211_hwsim | |
parent | 271d2830ff1f74156b3fe296b9e851e7cbb52e69 (diff) | |
download | external_wpa_supplicant_8_ti-b3f240bc0e3fbab466cd819f024451189af4fe9c.zip external_wpa_supplicant_8_ti-b3f240bc0e3fbab466cd819f024451189af4fe9c.tar.gz external_wpa_supplicant_8_ti-b3f240bc0e3fbab466cd819f024451189af4fe9c.tar.bz2 |
Added a place for example mac80211_hwsim test cases
The tests directory and its subdirectories contain a set of configuration
files that can be used to exercise various mac80211, hostapd, and
wpa_supplicant features. The test.txt file in each test directory describes
the particular test and includes the commands needed to run the test.
Diffstat (limited to 'mac80211_hwsim')
-rw-r--r-- | mac80211_hwsim/tests/0001-wpa2-psk/hostapd.conf | 11 | ||||
-rw-r--r-- | mac80211_hwsim/tests/0001-wpa2-psk/test.txt | 7 | ||||
-rw-r--r-- | mac80211_hwsim/tests/0001-wpa2-psk/wpa_supplicant.conf | 10 | ||||
-rw-r--r-- | mac80211_hwsim/tests/0002-vlan/hostapd.accept | 2 | ||||
-rw-r--r-- | mac80211_hwsim/tests/0002-vlan/hostapd.conf | 12 | ||||
-rw-r--r-- | mac80211_hwsim/tests/0002-vlan/hostapd.vlan | 1 | ||||
-rw-r--r-- | mac80211_hwsim/tests/0002-vlan/test.txt | 15 |
7 files changed, 58 insertions, 0 deletions
diff --git a/mac80211_hwsim/tests/0001-wpa2-psk/hostapd.conf b/mac80211_hwsim/tests/0001-wpa2-psk/hostapd.conf new file mode 100644 index 0000000..08cde7e --- /dev/null +++ b/mac80211_hwsim/tests/0001-wpa2-psk/hostapd.conf @@ -0,0 +1,11 @@ +interface=wlan0 +driver=nl80211 + +hw_mode=g +channel=1 +ssid=mac80211 test + +wpa=2 +wpa_key_mgmt=WPA-PSK +wpa_pairwise=CCMP +wpa_passphrase=12345678 diff --git a/mac80211_hwsim/tests/0001-wpa2-psk/test.txt b/mac80211_hwsim/tests/0001-wpa2-psk/test.txt new file mode 100644 index 0000000..05d85a0 --- /dev/null +++ b/mac80211_hwsim/tests/0001-wpa2-psk/test.txt @@ -0,0 +1,7 @@ +# WPA2-Personal (PSK) with CCMP, AP and single client + +modprobe mac80211_hwsim + +hostapd hostapd.conf + +wpa_supplicant -Dwext -iwlan1 -c wpa_supplicant.conf diff --git a/mac80211_hwsim/tests/0001-wpa2-psk/wpa_supplicant.conf b/mac80211_hwsim/tests/0001-wpa2-psk/wpa_supplicant.conf new file mode 100644 index 0000000..299128c --- /dev/null +++ b/mac80211_hwsim/tests/0001-wpa2-psk/wpa_supplicant.conf @@ -0,0 +1,10 @@ +ctrl_interface=/var/run/wpa_supplicant + +network={ + ssid="mac80211 test" + psk="12345678" + key_mgmt=WPA-PSK + proto=WPA2 + pairwise=CCMP + group=CCMP +} diff --git a/mac80211_hwsim/tests/0002-vlan/hostapd.accept b/mac80211_hwsim/tests/0002-vlan/hostapd.accept new file mode 100644 index 0000000..e97a175 --- /dev/null +++ b/mac80211_hwsim/tests/0002-vlan/hostapd.accept @@ -0,0 +1,2 @@ +02:00:00:00:01:00 1 +02:00:00:00:02:00 2 diff --git a/mac80211_hwsim/tests/0002-vlan/hostapd.conf b/mac80211_hwsim/tests/0002-vlan/hostapd.conf new file mode 100644 index 0000000..8698f0e --- /dev/null +++ b/mac80211_hwsim/tests/0002-vlan/hostapd.conf @@ -0,0 +1,12 @@ +interface=wlan0 +driver=nl80211 + +hw_mode=g +channel=1 +ssid=mac80211 test + +dynamic_vlan=2 +vlan_file=hostapd.vlan + +macaddr_acl=0 +accept_mac_file=hostapd.accept diff --git a/mac80211_hwsim/tests/0002-vlan/hostapd.vlan b/mac80211_hwsim/tests/0002-vlan/hostapd.vlan new file mode 100644 index 0000000..b3750b2 --- /dev/null +++ b/mac80211_hwsim/tests/0002-vlan/hostapd.vlan @@ -0,0 +1 @@ +* vlan# diff --git a/mac80211_hwsim/tests/0002-vlan/test.txt b/mac80211_hwsim/tests/0002-vlan/test.txt new file mode 100644 index 0000000..8c92f1c --- /dev/null +++ b/mac80211_hwsim/tests/0002-vlan/test.txt @@ -0,0 +1,15 @@ +# Plaintext connection, two clients, different VLANs + +modprobe mac80211_hwsim radios=3 + +hostapd hostapd.conf + +ifconfig wlan1 up +iwconfig wlan1 essid "mac80211 test" + +ifconfig wlan2 up +iwconfig wlan2 essid "mac80211 test" + +# Expected results: +# STA1(wlan1) is bound to vlan1 +# STA2(wlan2) is bound to vlan2 |