Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion plugin/gnome/NetworkManagerGnomeWIFI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -858,13 +858,19 @@ namespace WPEFramework

std::string connTypStr = connTyp;
NMLOG_DEBUG("connection id: %s, type: %s", connId != NULL ? connId : "NULL", connTypStr.c_str());
if(connTypStr == "802-11-wireless") {
// Store first connection only if it matches the interface type
if(iface == nmUtils::wlanIface() && connTypStr == "802-11-wireless") {
NMLOG_INFO("wifi conn found : %s", connId);
// if no known ssid given then use first wifi connection from list
// it usefule when bootup there will be no known ssid
if(firstConnection == NULL)
firstConnection = connection;
}
else if(iface == nmUtils::ethIface() && connTypStr == "802-3-ethernet") {
NMLOG_INFO("ethernet conn found : %s", connId);
if(firstConnection == NULL)
firstConnection = connection;
}

if (connId != NULL && strcmp(connId, knowConnectionID.c_str()) == 0)
{
Expand Down