Skip to content
  • Andrew Zaborowski's avatar
    wifi/iwd: access Network objects through ObjectManager · fd1cfa6d
    Andrew Zaborowski authored and Thomas Haller's avatar Thomas Haller committed
    In two places stop using g_dbus_proxy_new_* to create whole new
    interface proxy objects for net.connman.iwd.Network as this will
    normally have a huge overhead compared to asking the ObjectManager
    client that we already have in NMIwdManager for those proxies.
    dbus-monitor shows that for each network path returned by
    GetOrderedNetworks () -- and we call it every 10 or 20 seconds and may
    get many dozens of networks back -- gdbus would do the following each
    time:
    org.freedesktop.DBus.AddMatch("member=PropertiesChanged")
    org.freedesktop.DBus.StartServiceByName("net.connman.iwd")
    org.freedesktop.DBus.GetNameOwner("net.connman.iwd")
    org.freedesktop.DBus.Properties.GetAll("net.connman.iwd.Network")
    org.freedesktop.DBus.RemoveMatch("member=PropertiesChanged")
    fd1cfa6d