summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/AP+STA.zipbin4534 -> 0 bytes
-rw-r--r--test/AP+STA/README.txt36
-rw-r--r--test/AP+STA/hostapd.conf.1.open14
-rw-r--r--test/AP+STA/hostapd.conf.1.wpa2pskaes18
-rw-r--r--test/AP+STA/hostapd.conf.36.open17
-rw-r--r--test/AP+STA/hostapd.conf.36.open.40mhz17
-rw-r--r--test/AP+STA/hostapd.conf.36.open.80mhz19
-rw-r--r--test/AP+STA/hostapd.conf.36.wpa2pskaes21
-rw-r--r--test/AP+STA/hostapd.conf.36.wpa2pskaes.40mhz22
-rw-r--r--test/AP+STA/hostapd.conf.36.wpa2pskaes.80mhz24
-rw-r--r--test/AP+STA/wpa_supplicant.conf.open8
-rw-r--r--test/AP+STA/wpa_supplicant.conf.psk9
-rw-r--r--test/hostapd.conf.36.multi_bssid2
-rw-r--r--test/hostapd.conf.36.open2
-rw-r--r--test/hostapd.conf.36.open.80mhz2
-rw-r--r--test/hostapd.conf.36.wpa2pskaes2
-rw-r--r--test/hostapd.conf.36.wpa2pskaes.80mhz2
-rw-r--r--[-rwxr-xr-x]test/hostapd.conf.dfs2
18 files changed, 211 insertions, 6 deletions
diff --git a/test/AP+STA.zip b/test/AP+STA.zip
deleted file mode 100755
index 8223745..0000000
--- a/test/AP+STA.zip
+++ /dev/null
Binary files differ
diff --git a/test/AP+STA/README.txt b/test/AP+STA/README.txt
new file mode 100644
index 0000000..6981b94
--- /dev/null
+++ b/test/AP+STA/README.txt
@@ -0,0 +1,36 @@
+<<How to set up AP+STA>>
+
+1. Bring up driver:
+
+ a. iw reg set US
+ --> set regulatory domain.
+ b. insmod mwlwifi.ko
+ --> After module is inserted, physical interfaces phy0 and phy1 and network
+ device wlan0 and wlan1 will be created. You can issue "iw dev" to check them.
+
+2. Use interface wlan0/wlan1 as client mode to connect to remote AP:
+
+ wpa_supplicant -B -D nl80211 -i wlan0 -c wpa_supplicant.conf
+ wpa_supplicant -B -D nl80211 -i wlan1 -c wpa_supplicant.conf
+
+3. Create local AP:
+
+ a. Create anther interface on phy0/phy1:
+
+ iw phy0 interface add wlan0-1 type managed
+ iw phy1 interface add wlan1-1 type managed
+
+ b. Use iw dev to check channel setting for client mode and modify related channel
+ setting of hostapd.conf to be complied with currecnt channel setting.
+
+ c. Check MAC address of client interface and add "bssid=02:XX:XX:XX:XX:XX" to hostapd.conf.
+
+ d. Create local AP:
+
+ hostapd -B ./hostapd.conf
+ --> Channel setting of hostapd.conf should be complied with current channel setting.
+ Please make sure interface of hostapd.conf is complied with the interface you just created.
+
+4. Bridge local AP and STA:
+
+ You need to use relayd to bridge them. Same as LAN and STA.
diff --git a/test/AP+STA/hostapd.conf.1.open b/test/AP+STA/hostapd.conf.1.open
new file mode 100644
index 0000000..7add81b
--- /dev/null
+++ b/test/AP+STA/hostapd.conf.1.open
@@ -0,0 +1,14 @@
+interface=wlan0
+driver=nl80211
+ctrl_interface=/var/run/hostapd
+ssid=mwlwifi_ap_test
+ignore_broadcast_ssid=0
+hw_mode=g
+channel=1
+auth_algs=1
+wmm_enabled=1
+ieee80211n=1
+ht_capab=[LDPC][SHORT-GI-20][SHORT-GI-40]
+ieee80211d=1
+country_code=US
+
diff --git a/test/AP+STA/hostapd.conf.1.wpa2pskaes b/test/AP+STA/hostapd.conf.1.wpa2pskaes
new file mode 100644
index 0000000..8acb88a
--- /dev/null
+++ b/test/AP+STA/hostapd.conf.1.wpa2pskaes
@@ -0,0 +1,18 @@
+interface=wlan0
+driver=nl80211
+ctrl_interface=/var/run/hostapd
+ssid=mwlwifi_ap_test
+ignore_broadcast_ssid=0
+hw_mode=g
+channel=1
+auth_algs=1
+wpa=2
+wpa_passphrase=12345678
+wpa_key_mgmt=WPA-PSK
+wpa_pairwise=CCMP
+wmm_enabled=1
+ieee80211n=1
+ht_capab=[LDPC][SHORT-GI-20][SHORT-GI-40]
+ieee80211d=1
+country_code=US
+
diff --git a/test/AP+STA/hostapd.conf.36.open b/test/AP+STA/hostapd.conf.36.open
new file mode 100644
index 0000000..6e5e776
--- /dev/null
+++ b/test/AP+STA/hostapd.conf.36.open
@@ -0,0 +1,17 @@
+interface=wlan1
+driver=nl80211
+ctrl_interface=/var/run/hostapd
+ssid=mwlwifi_ap_test
+ignore_broadcast_ssid=0
+hw_mode=a
+channel=36
+auth_algs=1
+wmm_enabled=1
+ieee80211n=1
+ht_capab=[LDPC][SHORT-GI-20][SHORT-GI-40]
+ieee80211ac=1
+vht_capab=[RXLDPC][SHORT-GI-80][RX-STBC-1][SU-BEAMFORMER][SU-BEAMFORMEE][MAX-A-MPDU-LEN-EXP7][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]
+ieee80211d=1
+country_code=US
+ieee80211h=1
+
diff --git a/test/AP+STA/hostapd.conf.36.open.40mhz b/test/AP+STA/hostapd.conf.36.open.40mhz
new file mode 100644
index 0000000..a931774
--- /dev/null
+++ b/test/AP+STA/hostapd.conf.36.open.40mhz
@@ -0,0 +1,17 @@
+interface=wlan1
+driver=nl80211
+ctrl_interface=/var/run/hostapd
+ssid=mwlwifi_ap_test
+ignore_broadcast_ssid=0
+hw_mode=a
+channel=36
+auth_algs=1
+wmm_enabled=1
+ieee80211n=1
+ht_capab=[LDPC][HT40+][SHORT-GI-20][SHORT-GI-40]
+ieee80211ac=1
+vht_capab=[RXLDPC][SHORT-GI-80][RX-STBC-1][SU-BEAMFORMER][SU-BEAMFORMEE][MAX-A-MPDU-LEN-EXP7][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]
+ieee80211d=1
+country_code=US
+ieee80211h=1
+
diff --git a/test/AP+STA/hostapd.conf.36.open.80mhz b/test/AP+STA/hostapd.conf.36.open.80mhz
new file mode 100644
index 0000000..ee7ab7f
--- /dev/null
+++ b/test/AP+STA/hostapd.conf.36.open.80mhz
@@ -0,0 +1,19 @@
+interface=wlan1
+driver=nl80211
+ctrl_interface=/var/run/hostapd
+ssid=mwlwifi_ap_test
+ignore_broadcast_ssid=0
+hw_mode=a
+channel=36
+auth_algs=1
+wmm_enabled=1
+ieee80211n=1
+ht_capab=[LDPC][HT40+][SHORT-GI-20][SHORT-GI-40]
+ieee80211ac=1
+vht_capab=[RXLDPC][SHORT-GI-80][RX-STBC-1][SU-BEAMFORMER][SU-BEAMFORMEE][MAX-A-MPDU-LEN-EXP7][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]
+vht_oper_chwidth=1
+vht_oper_centr_freq_seg0_idx=42
+ieee80211d=1
+country_code=US
+ieee80211h=1
+
diff --git a/test/AP+STA/hostapd.conf.36.wpa2pskaes b/test/AP+STA/hostapd.conf.36.wpa2pskaes
new file mode 100644
index 0000000..b388f03
--- /dev/null
+++ b/test/AP+STA/hostapd.conf.36.wpa2pskaes
@@ -0,0 +1,21 @@
+interface=wlan1
+driver=nl80211
+ctrl_interface=/var/run/hostapd
+ssid=mwlwifi_ap_test
+ignore_broadcast_ssid=0
+hw_mode=a
+channel=36
+auth_algs=1
+wpa=2
+wpa_passphrase=12345678
+wpa_key_mgmt=WPA-PSK
+wpa_pairwise=CCMP
+wmm_enabled=1
+ieee80211n=1
+ht_capab=[LDPC][SHORT-GI-20][SHORT-GI-40]
+ieee80211ac=1
+vht_capab=[RXLDPC][SHORT-GI-80][RX-STBC-1][SU-BEAMFORMER][SU-BEAMFORMEE][MAX-A-MPDU-LEN-EXP7][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]
+ieee80211d=1
+country_code=US
+ieee80211h=1
+
diff --git a/test/AP+STA/hostapd.conf.36.wpa2pskaes.40mhz b/test/AP+STA/hostapd.conf.36.wpa2pskaes.40mhz
new file mode 100644
index 0000000..124eb0c
--- /dev/null
+++ b/test/AP+STA/hostapd.conf.36.wpa2pskaes.40mhz
@@ -0,0 +1,22 @@
+interface=wlan1
+driver=nl80211
+ctrl_interface=/var/run/hostapd
+ssid=mwlwifi_ap_test
+ignore_broadcast_ssid=0
+hw_mode=a
+channel=36
+auth_algs=1
+wpa=2
+wpa_passphrase=12345678
+wpa_key_mgmt=WPA-PSK
+wpa_pairwise=CCMP
+wmm_enabled=1
+ieee80211n=1
+ht_capab=[LDPC][HT40+][SHORT-GI-20][SHORT-GI-40]
+ieee80211ac=1
+vht_capab=[RXLDPC][SHORT-GI-80][RX-STBC-1][SU-BEAMFORMER][SU-BEAMFORMEE][MAX-A-MPDU-LEN-EXP7][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]
+ieee80211d=1
+country_code=US
+ieee80211h=1
+
+
diff --git a/test/AP+STA/hostapd.conf.36.wpa2pskaes.80mhz b/test/AP+STA/hostapd.conf.36.wpa2pskaes.80mhz
new file mode 100644
index 0000000..5891e72
--- /dev/null
+++ b/test/AP+STA/hostapd.conf.36.wpa2pskaes.80mhz
@@ -0,0 +1,24 @@
+interface=wlan1
+driver=nl80211
+ctrl_interface=/var/run/hostapd
+ssid=mwlwifi_ap_test
+ignore_broadcast_ssid=0
+hw_mode=a
+channel=36
+auth_algs=1
+wpa=2
+wpa_passphrase=12345678
+wpa_key_mgmt=WPA-PSK
+wpa_pairwise=CCMP
+wmm_enabled=1
+ieee80211n=1
+ht_capab=[LDPC][HT40+][SHORT-GI-20][SHORT-GI-40]
+ieee80211ac=1
+vht_capab=[RXLDPC][SHORT-GI-80][RX-STBC-1][SU-BEAMFORMER][SU-BEAMFORMEE][MAX-A-MPDU-LEN-EXP7][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]
+vht_oper_chwidth=1
+vht_oper_centr_freq_seg0_idx=42
+ieee80211d=1
+country_code=US
+ieee80211h=1
+
+
diff --git a/test/AP+STA/wpa_supplicant.conf.open b/test/AP+STA/wpa_supplicant.conf.open
new file mode 100644
index 0000000..d7677b9
--- /dev/null
+++ b/test/AP+STA/wpa_supplicant.conf.open
@@ -0,0 +1,8 @@
+ctrl_interface=/var/run/wpa_supplicant
+
+network={
+
+ssid="mwlwifi_ap_test"
+key_mgmt=NONE
+
+}
diff --git a/test/AP+STA/wpa_supplicant.conf.psk b/test/AP+STA/wpa_supplicant.conf.psk
new file mode 100644
index 0000000..ce154a6
--- /dev/null
+++ b/test/AP+STA/wpa_supplicant.conf.psk
@@ -0,0 +1,9 @@
+ctrl_interface=/var/run/wpa_supplicant
+
+network={
+
+ssid="mwlwifi_ap_test"
+key_mgmt=WPA-PSK
+psk="12345678"
+
+}
diff --git a/test/hostapd.conf.36.multi_bssid b/test/hostapd.conf.36.multi_bssid
index 0e5492d..5ecebe9 100644
--- a/test/hostapd.conf.36.multi_bssid
+++ b/test/hostapd.conf.36.multi_bssid
@@ -10,7 +10,7 @@ wmm_enabled=1
ieee80211n=1
ht_capab=[LDPC][SHORT-GI-20][SHORT-GI-40]
ieee80211ac=1
-vht_capab=[MAX-MPDU-7991][RXLDPC][SHORT-GI-80][RX-STBC-1][SU-BEAMFORMER][SU-BEAMFORMEE][MAX-A-MPDU-LEN-EXP7][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]
+vht_capab=[RXLDPC][SHORT-GI-80][RX-STBC-1][SU-BEAMFORMER][SU-BEAMFORMEE][MAX-A-MPDU-LEN-EXP7][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]
bss=wlan1_0
ssid=mwlwifi_ap_tset2
wpa=2
diff --git a/test/hostapd.conf.36.open b/test/hostapd.conf.36.open
index 842a1cb..85fb4a0 100644
--- a/test/hostapd.conf.36.open
+++ b/test/hostapd.conf.36.open
@@ -10,5 +10,5 @@ wmm_enabled=1
ieee80211n=1
ht_capab=[LDPC][SHORT-GI-20][SHORT-GI-40]
ieee80211ac=1
-vht_capab=[MAX-MPDU-7991][RXLDPC][SHORT-GI-80][RX-STBC-1][SU-BEAMFORMER][SU-BEAMFORMEE][MAX-A-MPDU-LEN-EXP7][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]
+vht_capab=[RXLDPC][SHORT-GI-80][RX-STBC-1][SU-BEAMFORMER][SU-BEAMFORMEE][MAX-A-MPDU-LEN-EXP7][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]
diff --git a/test/hostapd.conf.36.open.80mhz b/test/hostapd.conf.36.open.80mhz
index 5d094f2..0a47a0f 100644
--- a/test/hostapd.conf.36.open.80mhz
+++ b/test/hostapd.conf.36.open.80mhz
@@ -10,7 +10,7 @@ wmm_enabled=1
ieee80211n=1
ht_capab=[LDPC][HT40+][SHORT-GI-20][SHORT-GI-40]
ieee80211ac=1
-vht_capab=[MAX-MPDU-7991][RXLDPC][SHORT-GI-80][RX-STBC-1][SU-BEAMFORMER][SU-BEAMFORMEE][MAX-A-MPDU-LEN-EXP7][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]
+vht_capab=[RXLDPC][SHORT-GI-80][RX-STBC-1][SU-BEAMFORMER][SU-BEAMFORMEE][MAX-A-MPDU-LEN-EXP7][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]
vht_oper_chwidth=1
vht_oper_centr_freq_seg0_idx=42
diff --git a/test/hostapd.conf.36.wpa2pskaes b/test/hostapd.conf.36.wpa2pskaes
index cf60121..51b2837 100644
--- a/test/hostapd.conf.36.wpa2pskaes
+++ b/test/hostapd.conf.36.wpa2pskaes
@@ -14,5 +14,5 @@ wmm_enabled=1
ieee80211n=1
ht_capab=[LDPC][SHORT-GI-20][SHORT-GI-40]
ieee80211ac=1
-vht_capab=[MAX-MPDU-7991][RXLDPC][SHORT-GI-80][RX-STBC-1][SU-BEAMFORMER][SU-BEAMFORMEE][MAX-A-MPDU-LEN-EXP7][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]
+vht_capab=[RXLDPC][SHORT-GI-80][RX-STBC-1][SU-BEAMFORMER][SU-BEAMFORMEE][MAX-A-MPDU-LEN-EXP7][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]
diff --git a/test/hostapd.conf.36.wpa2pskaes.80mhz b/test/hostapd.conf.36.wpa2pskaes.80mhz
index 492fc17..0419b7d 100644
--- a/test/hostapd.conf.36.wpa2pskaes.80mhz
+++ b/test/hostapd.conf.36.wpa2pskaes.80mhz
@@ -14,7 +14,7 @@ wmm_enabled=1
ieee80211n=1
ht_capab=[LDPC][HT40+][SHORT-GI-20][SHORT-GI-40]
ieee80211ac=1
-vht_capab=[MAX-MPDU-7991][RXLDPC][SHORT-GI-80][RX-STBC-1][SU-BEAMFORMER][SU-BEAMFORMEE][MAX-A-MPDU-LEN-EXP7][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]
+vht_capab=[RXLDPC][SHORT-GI-80][RX-STBC-1][SU-BEAMFORMER][SU-BEAMFORMEE][MAX-A-MPDU-LEN-EXP7][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]
vht_oper_chwidth=1
vht_oper_centr_freq_seg0_idx=42
diff --git a/test/hostapd.conf.dfs b/test/hostapd.conf.dfs
index dc81e47..c770b8d 100755..100644
--- a/test/hostapd.conf.dfs
+++ b/test/hostapd.conf.dfs
@@ -10,7 +10,7 @@ wmm_enabled=1
ieee80211n=1
ht_capab=[LDPC][HT40+][SHORT-GI-20][SHORT-GI-40]
ieee80211ac=1
-vht_capab=[MAX-MPDU-7991][RXLDPC][SHORT-GI-80][RX-STBC-1][SU-BEAMFORMER][SU-BEAMFORMEE][MAX-A-MPDU-LEN-EXP7][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]
+vht_capab=[RXLDPC][SHORT-GI-80][RX-STBC-1][SU-BEAMFORMER][SU-BEAMFORMEE][MAX-A-MPDU-LEN-EXP7][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]
vht_oper_chwidth=1
vht_oper_centr_freq_seg0_idx=106
ieee80211d=1