summaryrefslogtreecommitdiffhomepage
path: root/wireless.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-12-01 10:22:40 +0100
committerFelix Fietkau <nbd@openwrt.org>2013-12-01 10:22:44 +0100
commit5a195e18041067536566e1a4083c91b88fde63e8 (patch)
treef735dd11809582f1e1e88455a1abe48a99439216 /wireless.c
parent0f4d91e3a3c53c3e40a2ad53d95a1fd00f06d210 (diff)
wireless: fix config state handling
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'wireless.c')
-rw-r--r--wireless.c5
1 files changed, 4 insertions, 1 deletions
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: