diff options
author | James Prestwood <prestwoj@gmail.com> | 2024-01-03 10:46:34 -0800 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2024-01-04 11:57:28 -0600 |
commit | 77e5c94dc6104c1792ad62e6f0c81f007950e607 (patch) | |
tree | 709637b63e21dfc92daf997cebf006ac3162471f | |
parent | 593fad52601648fa85d1733d8470997815ba8f1a (diff) |
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).
-rw-r--r-- | src/station.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/station.c b/src/station.c index 5c9ede8b9..ac53bf2a9 100644 --- a/src/station.c +++ b/src/station.c @@ -1554,6 +1554,8 @@ static void station_enter_state(struct station *station, station_state_to_string(station->state), station_state_to_string(state)); + station_debug_event(station, station_state_to_string(state)); + disconnected = !station_is_busy(station); if ((disconnected && state > STATION_STATE_AUTOCONNECT_FULL) || @@ -2212,8 +2214,6 @@ static int station_transition_reassociate(struct station *station, station->preparing_roam = false; station_enter_state(station, STATION_STATE_ROAMING); - station_debug_event(station, "reassoc-roam"); - return 0; } @@ -2356,8 +2356,6 @@ try_next: station->preparing_roam = false; station_enter_state(station, STATION_STATE_FT_ROAMING); - station_debug_event(station, "ft-roam"); - break; case -EINVAL: /* |