nl80211: Print kernel version in debug output
This can be helpful in debugging some kernel specific issues. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
5ae010aae5
commit
197b440c49
1 changed files with 8 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
|||
|
||||
#include "includes.h"
|
||||
#include <sys/types.h>
|
||||
#include <sys/utsname.h>
|
||||
#include <fcntl.h>
|
||||
#include <net/if.h>
|
||||
#include <netlink/genl/genl.h>
|
||||
|
@ -9888,6 +9889,13 @@ static void * nl80211_global_init(void *ctx)
|
|||
{
|
||||
struct nl80211_global *global;
|
||||
struct netlink_config *cfg;
|
||||
struct utsname name;
|
||||
|
||||
if (uname(&name) == 0) {
|
||||
wpa_printf(MSG_DEBUG, "nl80211: Kernel version: %s %s (%s; %s)",
|
||||
name.sysname, name.release,
|
||||
name.version, name.machine);
|
||||
}
|
||||
|
||||
global = os_zalloc(sizeof(*global));
|
||||
if (global == NULL)
|
||||
|
|
Loading…
Reference in a new issue