3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-23 14:22:36 +01:00

core: Only enable netlink debugging when IWD_GENL_DEBUG is set

This commit is contained in:
Marcel Holtmann 2014-08-07 01:06:51 +02:00
parent 34f5c56199
commit d04ecde554

View File

@ -24,6 +24,7 @@
#include <config.h> #include <config.h>
#endif #endif
#include <stdlib.h>
#include <ell/ell.h> #include <ell/ell.h>
#include "linux/nl80211.h" #include "linux/nl80211.h"
@ -66,6 +67,7 @@ bool wiphy_init(void)
return false; return false;
} }
if (getenv("IWD_GENL_DEBUG"))
l_genl_set_debug(genl, do_debug, "[GENL] ", NULL); l_genl_set_debug(genl, do_debug, "[GENL] ", NULL);
l_debug("Opening nl80211 interface"); l_debug("Opening nl80211 interface");