Re: Ad hoc mode via Dbus



Hi Larry

The GUI is not the problem ...
I know it must work. The problem is that my application must do this automatically without any GUI
So if you can find out how the GUI does it... I could do the same ... codewise

On Mon, Sep 17, 2012 at 10:18 PM, Larry Finger <Larry Finger lwfinger net> wrote:
On 09/09/2012 07:34 AM, ppulibero libero it wrote:
I have an hard nut to crack:

To automatically configure Wifi, I first have to kill the network manager and
than activate the wifi via the commandline: I do this all automatically in my
application and works great. However... it is not the right way to do this. As
the user has no network gui anymore to configure some other network access. A
much better and transparent way would be to configure wifi directly via network
manager over the DBus interface. I was able to configure it, but I wasn't able
to set it to ad hoc mode... Searching the web for a while: a lot about
configuration in general but nothing related to ad hoc mode. I think the only
way to do figure that out is to look into the source code of the network
manager...maybe someone already successfully did it and he can help me with
this...a nice bottle of italian Chianti wine to him! :)

If you use the KDE, the Connection Manager applet has a section where you can set a given wireless connection to either "Managed Mode" or "Ad-Hoc". I would be very surprised if the Gnome version did not already have the same feature. Certainly, NetworkManager supports it.

Larry





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