fix device claim on interface reload
authorFelix Fietkau <nbd@openwrt.org>
Fri, 21 Oct 2011 00:43:28 +0000 (02:43 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 21 Oct 2011 00:43:28 +0000 (02:43 +0200)
interface.c

index 04834ec022c78d71f4a15c846029cfdc588dd35d..d0eec4a7b70d45c89bd9347e5aaf4af21059a0e1 100644 (file)
@@ -218,9 +218,8 @@ static void
 interface_do_reload(struct interface *iface)
 {
        interface_cleanup(iface);
-
-       interface_claim_device(iface);
        proto_init_interface(iface, iface->config);
+       interface_claim_device(iface);
 }
 
 static void