station: transition to disconnected on station_free
PATCH v2 1/1 station: transition to disconnected on station_free
This allows station to gracefully clean up things like the diagnostic interface which is directly tied to stations CONNECTED/DISCONNECTED states.
--- src/station.c | 2 ++ 1 file changed, 2 insertions(+)
v2:
* Move out of the netdev watch and into station_free
src/station.c +2 -0
@@ -3486,6 +3486,8 @@ static void station_free(struct station *station)if (station->connected_bss)netdev_disconnect (station->netdev,NULL ,NULL ); +station_enter_state (station,STATION_STATE_DISCONNECTED ); +if (station->netconfig) {netconfig_destroy (station->netconfig); station->netconfig =NULL ;
Signature · 1 line
2.26.2