wireless: fix config state handling
authorFelix Fietkau <nbd@openwrt.org>
Sun, 1 Dec 2013 09:22:40 +0000 (10:22 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 1 Dec 2013 09:22:44 +0000 (10:22 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
wireless.c

index 7a03ce85cc337ab04ec2e9674eb451cdd9521533..7cc832dfbff0909fe1676a8090c2ac9ea506a332 100644 (file)
@@ -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: