diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-07-10 00:57:41 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-07-10 00:57:41 -0500 |
commit | efda5c30fc737a49920900ace57a6bfffb9be27b (patch) | |
tree | 279f40f51be613333205ead1a489f9212f4c561b | |
parent | 47c56ecaf41ff1ed7fcf7447a0270e5b585f1716 (diff) | |
download | tdelibs-efda5c30fc737a49920900ace57a6bfffb9be27b.tar.gz tdelibs-efda5c30fc737a49920900ace57a6bfffb9be27b.zip |
Select any available wireless network in findAccessPointByBSSID
This resolves Bug 1496
-rw-r--r-- | tdecore/tdenetworkconnections.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tdecore/tdenetworkconnections.cpp b/tdecore/tdenetworkconnections.cpp index e29ec7911..6227b095f 100644 --- a/tdecore/tdenetworkconnections.cpp +++ b/tdecore/tdenetworkconnections.cpp @@ -1089,7 +1089,10 @@ TDENetworkWiFiAPInfo* TDEGlobalNetworkManager::findAccessPointByBSSID(TDEMACAddr TDENetworkDevice* dev = dynamic_cast<TDENetworkDevice*>(*it); if (dev) { TDENetworkConnectionManager* deviceConnMan = dev->connectionManager(); - ret = deviceConnMan->findAccessPointByBSSID(bssid); + TDENetworkWiFiAPInfo* candidate = deviceConnMan->findAccessPointByBSSID(bssid); + if (candidate) { + ret = candidate; + } } } |