main: Move manager initialization

The order of wiphy / netdev dumps matters.  So to preserve the old
behavior, move manager initialization up.
This commit is contained in:
Denis Kenzior 2019-04-11 12:03:52 -05:00
parent 65109ec46d
commit 72158e66da
1 changed files with 2 additions and 1 deletions

View File

@ -151,6 +151,8 @@ static void nl80211_appeared(void *user_data)
l_debug("Found nl80211 interface");
manager_init(nl80211);
if (!wiphy_init(nl80211, phys, nophys))
l_error("Unable to init wiphy functionality");
@ -161,7 +163,6 @@ static void nl80211_appeared(void *user_data)
ap_init(nl80211);
adhoc_init(nl80211);
manager_init(nl80211);
}
static void nl80211_vanished(void *user_data)