From 197b440c49ed66f225a920445b8b8f3f316381d9 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 14 Jan 2024 17:18:57 +0200 Subject: [PATCH] nl80211: Print kernel version in debug output This can be helpful in debugging some kernel specific issues. Signed-off-by: Jouni Malinen --- src/drivers/driver_nl80211.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 4167b707b..a3147bc7c 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -12,6 +12,7 @@ #include "includes.h" #include +#include #include #include #include @@ -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)