connman.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* Managing Wifi Network Interface with connman
       [not found] <HE1PR10MB15463985825D31A494396897CDD39@HE1PR10MB1546.EURPRD10.PROD.OUTLOOK.COM>
@ 2021-09-07  8:16 ` Then Kit Sen (XC-CI1/ESS1-Pg)
  2021-09-13  6:52   ` Daniel Wagner
  0 siblings, 1 reply; 2+ messages in thread
From: Then Kit Sen (XC-CI1/ESS1-Pg) @ 2021-09-07  8:16 UTC (permalink / raw)
  To: connman

Hi,

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?

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.

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? 

Best regards,

KitSen
​

^ permalink raw reply	[flat|nested] 2+ messages in thread

* 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

end of thread, other threads:[~2021-09-13  6:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <HE1PR10MB15463985825D31A494396897CDD39@HE1PR10MB1546.EURPRD10.PROD.OUTLOOK.COM>
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).