From 76a513b466b1db454be0a7d120c3f5df01ed3403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20=C5=9Eiar=20Baysal?= Date: Mon, 3 Feb 2025 13:13:14 +0100 Subject: [PATCH] add missing netdevice pointer --- src/minidexed.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/minidexed.cpp b/src/minidexed.cpp index 1bfc988..8eb522a 100644 --- a/src/minidexed.cpp +++ b/src/minidexed.cpp @@ -2346,7 +2346,7 @@ bool CMiniDexed::InitNetwork() m_pNet = nullptr; } // WPASupplicant needs to be started after netdevice available - if (NetDeviceType == NetDeviceTypeWLAN) + if (NetDeviceType == NetDeviceTypeWLAN) { if (!m_WPASupplicant.Initialize()) { @@ -2355,6 +2355,7 @@ bool CMiniDexed::InitNetwork() LOGERR("Failed to initialize WPASupplicant, maybe wlan config is missing?"); } } + m_pNetDevice = CNetDevice::GetNetDevice(NetDeviceType); } return m_pNet != nullptr; }