diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-12-02 16:42:45 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-12-02 16:46:07 +0100 |
commit | 501a088692cdf95feb237e030698f365c4465fdc (patch) | |
tree | b67f4ac503707cfe37ec3927c63a5443cadd05c3 | |
parent | 57bf943634acbdeaa41a0a67443e41627cc9c747 (diff) |
wireless: only process setup retries in setup/up state
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r-- | wireless.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -338,6 +338,9 @@ __wireless_device_set_down(struct wireless_device *wdev) static void wireless_device_retry_setup(struct wireless_device *wdev) { + if (wdev->state == IFS_TEARDOWN || wdev->state == IFS_DOWN || wdev->cancel) + return; + if (--wdev->retry < 0) wdev->autostart = false; |