diff --git a/src/netdev.c b/src/netdev.c index ced6b809..ce7c7a24 100644 --- a/src/netdev.c +++ b/src/netdev.c @@ -24,6 +24,7 @@ #include #endif +#include #include #include #include @@ -146,7 +147,8 @@ bool netdev_init(void) return false; } - l_netlink_set_debug(rtnl, do_debug, "[RTNL] ", NULL); + if (getenv("IWD_RTNL_DEBUG")) + l_netlink_set_debug(rtnl, do_debug, "[RTNL] ", NULL); netdev_list = l_hashmap_new();