* Re: Managing Wifi Network Interface with connman
2021-09-07 8:16 ` Managing Wifi Network Interface with connman Then Kit Sen (XC-CI1/ESS1-Pg)
@ 2021-09-13 6:52 ` Daniel Wagner
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Wagner @ 2021-09-13 6:52 UTC (permalink / raw)
To: Then Kit Sen (XC-CI1/ESS1-Pg); +Cc: connman
Hi KitSen,
On Tue, Sep 07, 2021 at 08:16:47AM +0000, Then Kit Sen (XC-CI1/ESS1-Pg) wrote:
> I had an own application to setup the WIFI client and Access Point,
> and would like to check with you whether connman capable to manage
> this Interface by setting up this interface IP address with DHCP
> client, DHCP server for AP, and DNS for this interface?
ConnMan has very limited supported for setting up and controller AP use
case. The only supported AP related use case is the tethering one,
e.g. the device creates an AP to share it's LTE uplink.
> For eg, my application will bring up wlan0 and uap0 network interface
> and would like to use connman to configure DHCP server for uap0 and
> static IP address for wlan0.
One of the design decisions in ConnMan was not to expose individual
devices, instead only classes of devices are controllable via the D-Bus
API. While this could be changed no one has stepped up to do the work.
Without this kind of interface you can't really put one device into AP
mode while the other stays in STA.
> Due to some requirement, i would need to configure :
> 1. Static IP
> 2. Dynamic IP
> 3. DHCP server start address, end address, lease hour and gateway
> 4. DNS
>
> Or is it suitable that we develop a new plugin to only manage this
> network interface configuration which not setup by the wifi or iw
> plugin in connman? Or this is not recommended?
In this scenario the recommendation way is to control the AP device
independent of the STA interface (which can be controlled by
ConnMan). You can tell ConnMan to ignore the AP device. For the AP
device I would recommend to do look at iwd and see if this project would
fit your needs (highly recommended).
Hope this helps,
Daniel
^ permalink raw reply [flat|nested] 2+ messages in thread