diff options
author | Timothy Pearson <[email protected]> | 2012-09-08 23:53:47 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-09-08 23:53:47 -0500 |
commit | 642f227036520a1a616e27db086a2c82e7dd1489 (patch) | |
tree | 46349e630bde08407f3511b962ddb4738e45297d /tdecore/networkbackends/network-manager | |
parent | 7d8a74d0f9922463f3c6e12d8ea46762f5c8bb10 (diff) | |
download | tdelibs-642f227036520a1a616e27db086a2c82e7dd1489.tar.gz tdelibs-642f227036520a1a616e27db086a2c82e7dd1489.zip |
Add requisite MAC address comparator for use in TQMap objects
Diffstat (limited to 'tdecore/networkbackends/network-manager')
-rw-r--r-- | tdecore/networkbackends/network-manager/network-manager.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/tdecore/networkbackends/network-manager/network-manager.cpp b/tdecore/networkbackends/network-manager/network-manager.cpp index a46144ea2..1b639aa25 100644 --- a/tdecore/networkbackends/network-manager/network-manager.cpp +++ b/tdecore/networkbackends/network-manager/network-manager.cpp @@ -1532,6 +1532,10 @@ void TDENetworkConnectionManager_BackendNM::loadConnectionInformation() { TDENetworkIPConfigurationFlags::IPV6DHCPRoutes | \ TDENetworkIPConfigurationFlags::IPV6MayUseAsDefaultRoute; + if (wiFiConnection) { + wiFiConnection->securitySettings.authType = TDENetworkWiFiAuthType::Open; + } + #ifdef DEBUG_NETWORK_MANAGER_COMMUNICATIONS printf("[network-manager comm debug] %s\n\r", (*it).data()); fflush(stdout); #endif // DEBUG_NETWORK_MANAGER_COMMUNICATIONS @@ -3321,7 +3325,12 @@ bool TDENetworkConnectionManager_BackendNM::saveConnection(TDENetworkConnection* } } { - settingsMap["hidden"] = convertDBUSDataToVariantData(TQT_DBusData::fromBool(wiFiConnection->isHiddenNetwork)); + if (wiFiConnection->isHiddenNetwork) { + settingsMap["hidden"] = convertDBUSDataToVariantData(TQT_DBusData::fromBool(true)); + } + else { + settingsMap.remove("hidden"); + } } } dbusData = TQT_DBusData::fromStringKeyMap(TQT_DBusDataMap<TQString>(settingsMap)); @@ -3348,14 +3357,7 @@ bool TDENetworkConnectionManager_BackendNM::saveConnection(TDENetworkConnection* else { settingsMap.remove("wep-tx-keyidx"); } - { - if (wiFiConnection->securityRequired) { - settingsMap["auth-alg"] = convertDBUSDataToVariantData(TQT_DBusData::fromString(tdeWiFiAuthTypeToNMWiFiAuthType(wiFiConnection->securitySettings.authType))); - } - else { - settingsMap.remove("auth-alg"); - } - } + UPDATE_STRING_SETTING_IF_VALID(tdeWiFiAuthTypeToNMWiFiAuthType(wiFiConnection->securitySettings.authType), "auth-alg", settingsMap) { TQT_DBusDataValueList valueList; { |