mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 14:49:24 +01:00
station: add debug events for internal states
This gives the tests a lot more fine-tune control to wait for specific state transitions rather than only what is exposed over DBus. The additional events for "ft-roam" and "reassoc-roam" were removed since these are now covered by the more generic state change events ("ft-roaming" and "roaming" respectively).
This commit is contained in:
parent
593fad5260
commit
77e5c94dc6
@ -1554,6 +1554,8 @@ static void station_enter_state(struct station *station,
|
|||||||
station_state_to_string(station->state),
|
station_state_to_string(station->state),
|
||||||
station_state_to_string(state));
|
station_state_to_string(state));
|
||||||
|
|
||||||
|
station_debug_event(station, station_state_to_string(state));
|
||||||
|
|
||||||
disconnected = !station_is_busy(station);
|
disconnected = !station_is_busy(station);
|
||||||
|
|
||||||
if ((disconnected && state > STATION_STATE_AUTOCONNECT_FULL) ||
|
if ((disconnected && state > STATION_STATE_AUTOCONNECT_FULL) ||
|
||||||
@ -2212,8 +2214,6 @@ static int station_transition_reassociate(struct station *station,
|
|||||||
station->preparing_roam = false;
|
station->preparing_roam = false;
|
||||||
station_enter_state(station, STATION_STATE_ROAMING);
|
station_enter_state(station, STATION_STATE_ROAMING);
|
||||||
|
|
||||||
station_debug_event(station, "reassoc-roam");
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2356,8 +2356,6 @@ try_next:
|
|||||||
station->preparing_roam = false;
|
station->preparing_roam = false;
|
||||||
station_enter_state(station, STATION_STATE_FT_ROAMING);
|
station_enter_state(station, STATION_STATE_FT_ROAMING);
|
||||||
|
|
||||||
station_debug_event(station, "ft-roam");
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case -EINVAL:
|
case -EINVAL:
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user