From 5a195e18041067536566e1a4083c91b88fde63e8 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 1 Dec 2013 10:22:40 +0100 Subject: [PATCH] wireless: fix config state handling Signed-off-by: Felix Fietkau --- wireless.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wireless.c b/wireless.c index 7a03ce8..7cc832d 100644 --- a/wireless.c +++ b/wireless.c @@ -352,7 +352,10 @@ wireless_device_free(struct wireless_device *wdev) static void wdev_handle_config_change(struct wireless_device *wdev) { - switch(wdev->config_state) { + enum interface_config_state state = wdev->config_state; + + wdev->config_state = IFC_NORMAL; + switch(state) { case IFC_NORMAL: break; case IFC_RELOAD: -- 2.25.1