From: Felix Fietkau Date: Sun, 1 Dec 2013 09:22:40 +0000 (+0100) Subject: wireless: fix config state handling X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=5a195e18041067536566e1a4083c91b88fde63e8;p=project%2Fnetifd.git wireless: fix config state handling Signed-off-by: Felix Fietkau --- 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: