Skip to content

Commit

Permalink
auto-t: remove rekey and RRM neighbor report from testPSK-roam
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jprestwo committed Sep 28, 2022
1 parent 23ffb96 commit d8d6c4f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 3 additions & 2 deletions autotests/testPSK-roam/connection_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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')
Expand Down
2 changes: 0 additions & 2 deletions autotests/testPSK-roam/ft-psk-ccmp-1.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions autotests/testPSK-roam/ft-psk-ccmp-2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8d6c4f

Please sign in to comment.