3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-23 22:42:37 +01:00

auto-t: make hwsim registration off by default

With the addition of connect_bssid/roam very few tests actually
require hwsim. Since hwsim can lead to problems with scan results
its best to have it off by default and have each test that needs
it explicitly turn it on.

Tests which previously turned it off have had that option removed.

Tests that do require hwsim still are vulnerable to scan result
problems, so for these tests beacon_int was added to the hostapd
config which seems to help with reliability somewhat.
This commit is contained in:
James Prestwood 2021-08-12 13:38:10 -07:00 committed by Denis Kenzior
parent 5519faecba
commit 89c1ec3d79
32 changed files with 29 additions and 6 deletions

View File

@ -1,7 +1,6 @@
[SETUP]
num_radios=6
start_iwd=0
hwsim_medium=no
[HOSTAPD]
rad0=psk-ccmp.conf

View File

@ -1,6 +1,7 @@
[SETUP]
num_radios=5
start_iwd=0
hwsim_medium=yes
[HOSTAPD]
rad0=ssid1.conf

View File

@ -9,3 +9,4 @@ wpa_passphrase=secret123
ctrl_interface=/var/run/hostapd
rrm_neighbor_report=1
beacon_int=10

View File

@ -9,3 +9,4 @@ wpa_passphrase=secret123
ctrl_interface=/var/run/hostapd
rrm_neighbor_report=1
beacon_int=10

View File

@ -9,4 +9,5 @@ wpa_passphrase=secret123
ctrl_interface=/var/run/hostapd
rrm_neighbor_report=1
max_num_sta=1
max_num_sta=1
beacon_int=10

View File

@ -1,6 +1,7 @@
[SETUP]
num_radios=3
start_iwd=0
hwsim_medium=yes
[HOSTAPD]
rad0=ft-eap-ccmp-1.conf

View File

@ -9,3 +9,4 @@ wpa_passphrase=secret123
ieee80211n=1
channel=36
beacon_int=10

View File

@ -1,6 +1,7 @@
[SETUP]
num_radios=4
reg_domain=US
hwsim_medium=yes
[HOSTAPD]
rad0=non-ht-vht.conf

View File

@ -6,3 +6,4 @@ ssid=testSSID
wpa=2
wpa_pairwise=CCMP
wpa_passphrase=secret123
beacon_int=10

View File

@ -12,3 +12,4 @@ ieee80211n=1
ieee80211ac=1
channel=36
beacon_int=10

View File

@ -1,7 +1,6 @@
[SETUP]
num_radios=7
start_iwd=0
hwsim_medium=no
[HOSTAPD]
rad0=ssidHiddenOpen.conf

View File

@ -1,6 +1,7 @@
[SETUP]
num_radios=6
start_iwd=0
hwsim_medium=yes
[HOSTAPD]
rad0=ssidHotspot.conf

View File

@ -44,3 +44,4 @@ eap_user_file=/tmp/eap_users.text
ca_cert=/tmp/certs/cert-ca.pem
server_cert=/tmp/certs/cert-server.pem
private_key=/tmp/certs/cert-server-key.pem
beacon_int=10

View File

@ -44,3 +44,4 @@ eap_user_file=/tmp/eap_users.text
ca_cert=/tmp/certs/cert-ca.pem
server_cert=/tmp/certs/cert-server.pem
private_key=/tmp/certs/cert-server-key.pem
beacon_int=10

View File

@ -6,3 +6,4 @@ ssid=ssidWPA2-1
wpa=2
wpa_pairwise=CCMP
wpa_passphrase=secret123
beacon_int=10

View File

@ -6,3 +6,4 @@ ssid=ssidWPA2-2
wpa=2
wpa_pairwise=CCMP
wpa_passphrase=secret123
beacon_int=10

View File

@ -6,3 +6,4 @@ ssid=ssidWPA2-3
wpa=2
wpa_pairwise=CCMP
wpa_passphrase=secret123
beacon_int=10

View File

@ -5,3 +5,4 @@ ssid=ssidCCMP
wpa=2
wpa_pairwise=CCMP
wpa_passphrase=secret123
beacon_int=10

View File

@ -6,3 +6,4 @@ country_code=US
wpa=2
wpa_pairwise=CCMP
wpa_passphrase=secret123
beacon_int=10

View File

@ -44,3 +44,4 @@ eap_user_file=/tmp/eap_users.text
ca_cert=/tmp/certs/cert-ca.pem
server_cert=/tmp/certs/cert-server.pem
private_key=/tmp/certs/cert-server-key.pem
beacon_int=10

View File

@ -1,7 +1,6 @@
[SETUP]
num_radios=3
start_iwd=0
hwsim_medium=no
[HOSTAPD]
rad0=ssidTKIP.conf

View File

@ -1,5 +1,6 @@
[SETUP]
num_radios=4
hwsim_medium=yes
[HOSTAPD]
rad0=ssidOWE-1.conf

View File

@ -1,6 +1,5 @@
[SETUP]
num_radios=2
hwsim_medium=no
[WPA_SUPPLICANT]
rad1=rad1-p2p.conf

View File

@ -1,6 +1,7 @@
[SETUP]
num_radios=3
start_iwd=0
hwsim_medium=yes
[HOSTAPD]
rad0=ft-psk-ccmp-1.conf

View File

@ -1,5 +1,6 @@
[SETUP]
num_radios=2
hwsim_medium=yes
[HOSTAPD]
rad0=open.conf

View File

@ -1,5 +1,6 @@
[SETUP]
num_radios=3
hwsim_medium=yes
[HOSTAPD]
rad0=ssid1.conf

View File

@ -9,3 +9,4 @@ wpa_passphrase=secret123
ctrl_interface=/var/run/hostapd
rrm_neighbor_report=1
beacon_int=10

View File

@ -9,3 +9,4 @@ wpa_passphrase=secret123
ctrl_interface=/var/run/hostapd
rrm_neighbor_report=1
beacon_int=10

View File

@ -1,6 +1,7 @@
[SETUP]
num_radios=2
start_iwd=0
hwsim_medium=yes
[HOSTAPD]
rad0=ssidSAE.conf

View File

@ -1,5 +1,6 @@
[SETUP]
num_radios=2
hwsim_medium=yes
[HOSTAPD]
rad0=ssidCCMP.conf

View File

@ -8,3 +8,4 @@ wpa_passphrase=secret123
ieee80211w=2
wpa_key_mgmt=WPA-PSK-SHA256
beacon_int=10

View File

@ -755,7 +755,7 @@ class TestContext(Namespace):
nradios = int(setup['num_radios'])
args = ['hwsim']
if not self.hw_config['SETUP'].get('hwsim_medium', 'yes') in ['yes', '1', 'true']:
if self.hw_config['SETUP'].get('hwsim_medium', 'no') in ['no', '0', 'false']:
# register hwsim as medium
args.extend(['--no-register'])