3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-04 02:18:49 +02: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>
#endif
#include <stdlib.h>
#include <ell/ell.h>
#include "linux/nl80211.h"
@ -66,7 +67,8 @@ bool wiphy_init(void)
return false;
}
l_genl_set_debug(genl, do_debug, "[GENL] ", NULL);
if (getenv("IWD_GENL_DEBUG"))
l_genl_set_debug(genl, do_debug, "[GENL] ", NULL);
l_debug("Opening nl80211 interface");