balena-io-modules / network-manager

Rust NetworkManager bindings
Apache License 2.0
35 stars 29 forks source link

WiFiDevice docs missing on docs.rs #125

Open BrendanBall opened 6 years ago

BrendanBall commented 6 years ago

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.

bkchr commented 5 years ago

That should be fixed by the following pr: https://github.com/resin-io-modules/network-manager/pull/124

majorz commented 5 years ago

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.

bkchr commented 5 years ago

@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?

majorz commented 5 years ago

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.

bkchr commented 5 years ago

@majorz any update from your side? :)