interface: clear iface->available before changing main_dev
authorFelix Fietkau <nbd@openwrt.org>
Fri, 2 May 2014 17:04:42 +0000 (19:04 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 2 May 2014 17:07:28 +0000 (19:07 +0200)
commit023db1ca8f352a646700f2d60c397fb89492f4c8
treee3f462424cb6885596530abc41e3348081ffcb17
parentc9dadceeba2faa311e4a086f1c6a5eb0d5577c9f
interface: clear iface->available before changing main_dev

Fixes bogus interface restart loop on interface_remove_link

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
interface.c