mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-23 06:02:37 +01:00
core: Only enable netlink debugging when IWD_GENL_DEBUG is set
This commit is contained in:
parent
34f5c56199
commit
d04ecde554
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user