Open BrendanBall opened 6 years ago
That should be fixed by the following pr: https://github.com/resin-io-modules/network-manager/pull/124
Thanks a lot, that is definitely better. I was never happy with keeping a reference to the Device instance. I will review and merge on Monday.
Please note that I am finishing a new NetworkManager Rust bindings library: https://github.com/resin-io-modules/libnm-rs
The new one is based on libnm
, which it is used internally by nmcli
and nmtui
. It uses https://github.com/gtk-rs/gir for bindings generation, which is really neat. Because of that it will provide access to the full set of the NetworkManager's APIs.
@majorz nice :)
A little of topic, while you writing the new implementation. Do you have any idea why you can't scan for wifi networks when you have a Hotspot with the same device?
If I create the Hotspot and use, iw scan
it works, but network manager does not support scanning in Hotspot mode.. Is that an limitation of the network manager api?
I was not aware that iw
allows scanning while the device is in access point mode. Most probably it is a limitation of wpa_supplicant
, which NetworkManager uses under internally. I will investigate this in more detail, since it is of interest to me as well and I am going post more information here afterwards.
@majorz any update from your side? :)
see https://docs.rs/network-manager/0.11.0/network_manager/struct.Device.html#method.as_wifi_device . You can't click on WifiDevice and it doesn't appear in search results.