netifd: track when wdev setup fails
authorEduardo Abinader <eduardo.abinader@riverbed.com>
Fri, 12 Aug 2016 06:51:58 +0000 (08:51 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 23 Aug 2016 07:54:24 +0000 (09:54 +0200)
commit2d01488e83f2488c6f1f56309e792d7bc495677f
tree40bb364ce1290e9953b3e6fa4b35d9212041524d
parentc8a5f1ae361ab61192be6085c29d977eb73a05f5
netifd: track when wdev setup fails

When netifd failed to load a valid configuration, after an invalid one,
it was not possible to setup the wireless device. This patch
aims to track this situation and behave acordingly, by keeping
track of failed setup without affecting autostart behavior. Also
block the restart of the wdev, when not applied.

Signed-off-by: Eduardo Abinader <eduardoabinader@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
wireless.c
wireless.h