summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw/tdenetworkdevice.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2017-06-17 12:57:10 +0200
committerSlávek Banko <slavek.banko@axis.cz>2017-06-17 13:52:54 +0200
commit234f323f7b3ae009f4236a775a72dd96094ebba1 (patch)
treec15bedc17dac35438798604cb93f8f9d16a15e88 /tdecore/tdehw/tdenetworkdevice.cpp
parenta8e587a9733dd076c0356dbfcef561eb7ed45e90 (diff)
downloadtdelibs-234f323f7b3ae009f4236a775a72dd96094ebba1.tar.gz
tdelibs-234f323f7b3ae009f4236a775a72dd96094ebba1.zip
tdehwlib: Use TDENetworkDevice in TDENetworkConnectionManager instead of MAC address
Use interface name in TDENetworkConnectionManager_BackendNM instead of MAC address This relates to bug 2748 The name of the network interface seems to be a more stable identifier than the MAC address because the MAC address can be changed easily or even automatically - see randomization of MAC addresses on wireless interfaces. Therefore, the use of the MAC address as a network interface identifier was abandoned. Beware, this change is an API / ABI change! However, most changes are internal and the only one affected is application TDENetworkManager. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit e0fd34a1bd2c6412171bcceb19520d129bbcb66d)
Diffstat (limited to 'tdecore/tdehw/tdenetworkdevice.cpp')
-rw-r--r--tdecore/tdehw/tdenetworkdevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tdecore/tdehw/tdenetworkdevice.cpp b/tdecore/tdehw/tdenetworkdevice.cpp
index f49eca9e6..ad4b71a6b 100644
--- a/tdecore/tdehw/tdenetworkdevice.cpp
+++ b/tdecore/tdehw/tdenetworkdevice.cpp
@@ -174,7 +174,7 @@ void TDENetworkDevice::internalSetTxPackets(double tx) {
TDENetworkConnectionManager* TDENetworkDevice::connectionManager() {
#ifdef WITH_NETWORK_MANAGER_BACKEND
if (!m_connectionManager) {
- m_connectionManager = new TDENetworkConnectionManager_BackendNM(m_macAddress);
+ m_connectionManager = new TDENetworkConnectionManager_BackendNM(this);
}
#endif // WITH_NETWORK_MANAGER_BACKEND