Skip to content

Commit

Permalink
interfaceTypechange
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuhammedrafi committed Nov 8, 2024
1 parent ba79c7d commit b6c844e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions NetworkManagerGnomeWIFI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,14 @@ namespace WPEFramework
return wifiDevice;
}

for (guint j = 0; j < devices->len; j++) {
for (guint j = 0; j < devices->len; j++)
{
NMDevice *device = NM_DEVICE(devices->pdata[j]);
if (nm_device_get_device_type(device) == NM_DEVICE_TYPE_WIFI)
const char* interface = nm_device_get_iface(device);
if(interface == nullptr)
continue;
std::string iface = interface;
if (iface == nmUtils::wlanIface())
{
wifiDevice = device;
//NMLOG_DEBUG("Wireless Device found ifce : %s !", nm_device_get_iface (wifiDevice));
Expand Down

0 comments on commit b6c844e

Please sign in to comment.