Hi James,
On 4/28/21 2:27 PM, James Prestwood wrote:
This allows station to gracefully clean up things like the
diagnostic
interface which is directly tied to stations CONNECTED/DISCONNECTING
states.
---
src/station.c | 2 ++
1 file changed, 2 insertions(+)
v4:
* Changed to DISCONNECTING due to new patch.
diff --git a/src/station.c b/src/station.c
index 0cee3525..c81c9a45 100644
--- a/src/station.c
+++ b/src/station.c
@@ -3487,6 +3487,8 @@ static void station_free(struct station *station)
if (station->connected_bss)
netdev_disconnect(station->netdev, NULL, NULL);
+ station_enter_state(station, STATION_STATE_DISCONNECTING);
+
I keep going back and forth on this, but I think it would be safer if we invoked
unregister_interface directly.
if (station->netconfig) {
netconfig_destroy(station->netconfig);
station->netconfig = NULL;
Regards,
-Denis