Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -4394,6 +4394,9 @@ int netdev_reassociate(struct netdev *netdev, const struct scan_bss *target_bss,
struct handshake_state *old_hs;
struct eapol_sm *old_sm;

if (netdev->connect_cmd_id || netdev->work.id)
return -EBUSY;

old_sm = netdev->sm;
old_hs = netdev->handshake;

Expand Down
7 changes: 5 additions & 2 deletions src/station.c
Original file line number Diff line number Diff line change
Expand Up @@ -2598,6 +2598,7 @@ static void station_preauthenticate_cb(struct netdev *netdev,
if (station_transition_reassociate(station, bss, new_hs) < 0) {
handshake_state_unref(new_hs);
station_roam_failed(station);
return;
}

handshake_state_unref(station->hs);
Expand Down Expand Up @@ -3272,8 +3273,7 @@ static void station_ap_directed_roam(struct station *station,
uint16_t dtimer;
uint8_t valid_interval;
bool can_roam = !station_cannot_roam(station);
bool ignore_candidates =
station->connected_bss->vendor_quirks.ignore_bss_tm_candidates;
bool ignore_candidates;

l_debug("ifindex: %u", netdev_get_ifindex(station->netdev));

Expand All @@ -3282,6 +3282,9 @@ static void station_ap_directed_roam(struct station *station,
return;
}

ignore_candidates =
station->connected_bss->vendor_quirks.ignore_bss_tm_candidates;

/*
* Sanitize the frame to check that it is from our current AP.
*
Expand Down
Loading