diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-12-01 10:22:40 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-12-01 10:22:44 +0100 |
commit | 5a195e18041067536566e1a4083c91b88fde63e8 (patch) | |
tree | f735dd11809582f1e1e88455a1abe48a99439216 | |
parent | 0f4d91e3a3c53c3e40a2ad53d95a1fd00f06d210 (diff) |
wireless: fix config state handling
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r-- | wireless.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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: |