use WLAN word

pull/783/head
Ömer Şiar Baysal 2 months ago committed by GitHub
parent 166308435b
commit 94fceb78a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      src/config.cpp
  2. 4
      src/minidexed.cpp
  3. 4
      src/minidexed.ini

@ -203,7 +203,7 @@ void CConfig::Load (void)
// Network // Network
m_bNetworkEnabled = m_Properties.GetNumber ("NetworkEnabled", 0) != 0; m_bNetworkEnabled = m_Properties.GetNumber ("NetworkEnabled", 0) != 0;
m_bNetworkDHCP = m_Properties.GetNumber ("NetworkDHCP", 0) != 0; m_bNetworkDHCP = m_Properties.GetNumber ("NetworkDHCP", 0) != 0;
m_NetworkType = m_Properties.GetString ("NetworkType", "wifi"); m_NetworkType = m_Properties.GetString ("NetworkType", "wlan");
m_NetworkHostname = m_Properties.GetString ("NetworkHostname", "MiniDexed"); m_NetworkHostname = m_Properties.GetString ("NetworkHostname", "MiniDexed");
m_INetworkIPAddress = m_Properties.GetIPAddress("NetworkIPAddress") != 0; m_INetworkIPAddress = m_Properties.GetIPAddress("NetworkIPAddress") != 0;
m_INetworkSubnetMask = m_Properties.GetIPAddress("NetworkSubnetMask") != 0; m_INetworkSubnetMask = m_Properties.GetIPAddress("NetworkSubnetMask") != 0;

@ -2299,7 +2299,7 @@ bool CMiniDexed::InitNetwork()
TNetDeviceType NetDeviceType = NetDeviceTypeUnknown; TNetDeviceType NetDeviceType = NetDeviceTypeUnknown;
if (m_pConfig->GetNetworkEnabled () && (strcmp(m_pConfig->GetNetworkType(), "wifi") == 0)) if (m_pConfig->GetNetworkEnabled () && (strcmp(m_pConfig->GetNetworkType(), "wlan") == 0))
{ {
LOGNOTE("Initializing WLAN"); LOGNOTE("Initializing WLAN");
NetDeviceType = NetDeviceTypeWLAN; NetDeviceType = NetDeviceTypeWLAN;
@ -2343,7 +2343,7 @@ bool CMiniDexed::InitNetwork()
if (!m_WPASupplicant.Initialize()) { if (!m_WPASupplicant.Initialize()) {
// It seems no way to catch if config is missing unless circle provides it // It seems no way to catch if config is missing unless circle provides it
// or we catch the faults in config file ourselves // or we catch the faults in config file ourselves
LOGERR("Failed to initialize WPASupplicant, maybe wifi config is missing?"); LOGERR("Failed to initialize WPASupplicant, maybe wlan config is missing?");
} }
} }
} }

@ -151,8 +151,8 @@ ProfileEnabled=0
# Network # Network
NetworkEnabled=0 NetworkEnabled=0
NetworkDHCP=1 NetworkDHCP=1
# NetworkType ( wifi ; ethernet ) # NetworkType ( wlan ; ethernet )
NetworkType=wifi NetworkType=wlan
NetworkHostname=MiniDexed NetworkHostname=MiniDexed
NetworkIPAddress=0 NetworkIPAddress=0
NetworkSubnetMask=0 NetworkSubnetMask=0

Loading…
Cancel
Save