3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-18 18:29:29 +01:00

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

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)