From: Felix Fietkau Date: Mon, 2 Dec 2013 15:42:45 +0000 (+0100) Subject: wireless: only process setup retries in setup/up state X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=501a088692cdf95feb237e030698f365c4465fdc;p=oweals%2Fnetifd.git wireless: only process setup retries in setup/up state Signed-off-by: Felix Fietkau --- diff --git a/wireless.c b/wireless.c index fb66e7f..6e71fc6 100644 --- a/wireless.c +++ b/wireless.c @@ -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;