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.
This commit is contained in:
Jouni Malinen 2008-08-28 18:53:47 +03:00 committed by Jouni Malinen
parent 271d2830ff
commit b3f240bc0e
7 changed files with 58 additions and 0 deletions

View file

@ -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

View file

@ -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

View file

@ -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
}

View file

@ -0,0 +1,2 @@
02:00:00:00:01:00 1
02:00:00:00:02:00 2

View file

@ -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

View file

@ -0,0 +1 @@
* vlan#

View file

@ -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