Re: nm-applet doesn't update access_point list



I've tried to initialize a new nm_client object, which didn't help either.
Could this be a dbus issue?
The accesss point list is only correct when i restart nm-applet.


    pcl     = nm_client_new(NULL, NULL);
        devices = nm_client_get_devices (pcl);

        for (i = 0; devices && (i < devices->len); i++)
             {
             pdev = NM_DEVICE (g_ptr_array_index (devices, i));
             if(NM_IS_DEVICE_WIFI (pdev))
                 {
                 pwdev = NM_DEVICE_WIFI (pdev);
                 aps   = nm_device_wifi_get_access_points (pwdev);
                 g_print ("get aps len=%d\n", aps->len);
                 }
             }

On 09.06.2017 17:20, Harald Jung wrote:
Hi,

when an new access point is added it doesn't show up in nm-applet.

When I do a request with nmcli it shows up, while nm-applet always shows the same list of access points after it got started.

The same problem when a access point disappears from NetworkManager it is still shown in nm-applet and i get a connection error that this ap isn't inside the scan list.

nm-applet runs within xfce.


best regards

Harald

_______________________________________________
networkmanager-list mailing list
networkmanager-list gnome org
https://mail.gnome.org/mailman/listinfo/networkmanager-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]