diff --git a/src/config.cpp b/src/config.cpp index a680967..66142a4 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -203,7 +203,7 @@ void CConfig::Load (void) // Network m_bNetworkEnabled = m_Properties.GetNumber ("NetworkEnabled", 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_INetworkIPAddress = m_Properties.GetIPAddress("NetworkIPAddress") != 0; m_INetworkSubnetMask = m_Properties.GetIPAddress("NetworkSubnetMask") != 0; diff --git a/src/minidexed.cpp b/src/minidexed.cpp index 9be84c6..3f55863 100644 --- a/src/minidexed.cpp +++ b/src/minidexed.cpp @@ -2299,7 +2299,7 @@ bool CMiniDexed::InitNetwork() 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"); NetDeviceType = NetDeviceTypeWLAN; @@ -2343,7 +2343,7 @@ bool CMiniDexed::InitNetwork() if (!m_WPASupplicant.Initialize()) { // It seems no way to catch if config is missing unless circle provides it // 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?"); } } } diff --git a/src/minidexed.ini b/src/minidexed.ini index cff0eae..d2233fe 100644 --- a/src/minidexed.ini +++ b/src/minidexed.ini @@ -151,8 +151,8 @@ ProfileEnabled=0 # Network NetworkEnabled=0 NetworkDHCP=1 -# NetworkType ( wifi ; ethernet ) -NetworkType=wifi +# NetworkType ( wlan ; ethernet ) +NetworkType=wlan NetworkHostname=MiniDexed NetworkIPAddress=0 NetworkSubnetMask=0