From d8d6c4f74e1d69c0c36e83dd33a46a3a5ae44739 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Fri, 9 Sep 2022 09:04:42 -0700 Subject: [PATCH] auto-t: remove rekey and RRM neighbor report from testPSK-roam When timed very badly the hostapd rekey timer could kick off during the roam scan which ultimately results in the AP disconnecting since IWD cannot reply to any EAPoL frames during a scan. In addition rrm_neighbor_report was set which results in hostapd requesting IWD do a RRM scan immediately after connecting. Since these tests roam right after connection it was causing issues with the roam. --- autotests/testPSK-roam/connection_test.py | 5 +++-- autotests/testPSK-roam/ft-psk-ccmp-1.conf | 2 -- autotests/testPSK-roam/ft-psk-ccmp-2.conf | 2 -- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/autotests/testPSK-roam/connection_test.py b/autotests/testPSK-roam/connection_test.py index 7a135e952..0e035d71c 100644 --- a/autotests/testPSK-roam/connection_test.py +++ b/autotests/testPSK-roam/connection_test.py @@ -44,8 +44,6 @@ def validate_connection(self, wd, over_ds=False, pkt_loss=False): if pkt_loss: # Drop all data frames self.rule1.enabled = True - # Set the current BSS signal lower so we have roam candidates - self.rule2.enabled = True # Send 100 packets (to be dropped), should trigger beacon loss testutil.tx_packets(device.name, self.bss_hostapd[0].ifname, 100) device.wait_for_event('packet-loss-roam', timeout=30) @@ -142,6 +140,9 @@ def test_reassociate_psk(self): def test_roam_packet_loss(self): wd = IWD(True) + # Set the current BSS signal lower so we have roam candidates + self.rule2.enabled = True + self.bss_hostapd[0].set_value('wpa_key_mgmt', 'FT-PSK') self.bss_hostapd[0].set_value('ft_over_ds', '0') self.bss_hostapd[0].set_value('ocv', '1') diff --git a/autotests/testPSK-roam/ft-psk-ccmp-1.conf b/autotests/testPSK-roam/ft-psk-ccmp-1.conf index c012b4efc..4a2ceba54 100644 --- a/autotests/testPSK-roam/ft-psk-ccmp-1.conf +++ b/autotests/testPSK-roam/ft-psk-ccmp-1.conf @@ -13,8 +13,6 @@ wpa=2 wpa_key_mgmt=FT-PSK wpa_pairwise=CCMP wpa_passphrase=EasilyGuessedPassword -wpa_ptk_rekey=30 -wpa_group_rekey=80 ieee80211w=1 rsn_preauth=1 rsn_preauth_interfaces=lo diff --git a/autotests/testPSK-roam/ft-psk-ccmp-2.conf b/autotests/testPSK-roam/ft-psk-ccmp-2.conf index 84875fdc4..a42e175d7 100644 --- a/autotests/testPSK-roam/ft-psk-ccmp-2.conf +++ b/autotests/testPSK-roam/ft-psk-ccmp-2.conf @@ -13,8 +13,6 @@ wpa=2 wpa_key_mgmt=FT-PSK wpa_pairwise=CCMP wpa_passphrase=EasilyGuessedPassword -wpa_ptk_rekey=30 -wpa_group_rekey=80 ieee80211w=1 rsn_preauth=1 rsn_preauth_interfaces=lo