add missing netdevice pointer

pull/783/head
Ömer Şiar Baysal 1 week ago committed by GitHub
parent 541d17a9f9
commit 76a513b466
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      src/minidexed.cpp

@ -2346,7 +2346,7 @@ bool CMiniDexed::InitNetwork()
m_pNet = nullptr; m_pNet = nullptr;
} }
// WPASupplicant needs to be started after netdevice available // WPASupplicant needs to be started after netdevice available
if (NetDeviceType == NetDeviceTypeWLAN) if (NetDeviceType == NetDeviceTypeWLAN)
{ {
if (!m_WPASupplicant.Initialize()) if (!m_WPASupplicant.Initialize())
{ {
@ -2355,6 +2355,7 @@ bool CMiniDexed::InitNetwork()
LOGERR("Failed to initialize WPASupplicant, maybe wlan config is missing?"); LOGERR("Failed to initialize WPASupplicant, maybe wlan config is missing?");
} }
} }
m_pNetDevice = CNetDevice::GetNetDevice(NetDeviceType);
} }
return m_pNet != nullptr; return m_pNet != nullptr;
} }

Loading…
Cancel
Save