3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-04 02:18:49 +02:00

main: add anqp_init/exit

This commit is contained in:
James Prestwood 2019-06-26 15:15:55 -07:00 committed by Denis Kenzior
parent 0bde59ca13
commit 3979785703

View File

@ -41,6 +41,7 @@
#include "src/rfkill.h"
#include "src/plugin.h"
#include "src/storage.h"
#include "src/anqp.h"
#include "src/backtrace.h"
@ -149,6 +150,7 @@ static void nl80211_appeared(const struct l_genl_family_info *info,
nl80211 = l_genl_family_new(genl, NL80211_GENL_NAME);
manager_init(nl80211, interfaces, nointerfaces);
anqp_init(nl80211);
if (!wiphy_init(nl80211, phys, nophys))
l_error("Unable to init wiphy functionality");
@ -534,6 +536,7 @@ fail_netdev:
if (nl80211) {
manager_exit();
anqp_exit();
wiphy_exit();
l_genl_family_free(nl80211);
}