albfan / NetworkManager

Mirror of the freedesktop.org repository. Feel free to do the pull requests!
http://cgit.freedesktop.org/NetworkManager/NetworkManager/
Other
4 stars 0 forks source link

Tips to start wifi direct implementation #1

Open albfan opened 7 years ago

albfan commented 7 years ago

Comment from Thomas Haller on IRC:

Usually you would first start by adding new configuration options... meaning, possibly to "libnm-core/nm-setting-wireless.c" (or if it is distinct enough from Wi-Fi a separate "libnm-core/nm-setting-wifi-direct.c" -- but probably not). From there, you would add support to nmcli so that you can create such configurations for testing.

actually, as this is even a large thing, it's not only about new configuration options, but designing/implementing a D-Bus API exposed by NM to expose wifi-direct functionality

maybe the first thing is to implement the D-Bus API server side... or at least, have a plan how that API would look like

maybe just design the server-side API and how it will look like. It may be good to have it is close to connman's API as possible (so that porting between the two implementations is easier). A good start would be to understand how connman exposed Wifi direct and how that API could look like in NM. dcbw wrote about that already in https://mail.gnome.org/archives/networkmanager-list/2015-January/msg00018.html

it would be good if the dbus API would identical to connman's (like consolekit and logind have the same inhibitor API)... but probably that is not fully possible (see dcbw's email)

GiancarloF commented 6 years ago

Is there any progress about this issue?

albfan commented 6 years ago

Sadly no. Any help appreciated. Promise to review anything

danwdart commented 5 years ago

I'm willing to test (I don't do C++ et al)