Re: connman configuration for combined wlan0 + ap0 devices for tethering

Adam Pigg <[email protected]> Thu, 07 Aug 2025 10:30:35 +0100
Newsgroups dev.linux.lists.connman
Message-ID <9954986.eNJFYEL58v@adam-laptop-hp>
On Wednesday, 6 August 2025 15:29:37 British Summer Time Denis Kenzior wrote:
> Hi Adam,
> 
> On 8/5/25 5:43 AM, Adam Pigg wrote:
> > Hi
> > 
> > In modern WMT mobile wlan devices, there are typically multiple netwrok
> > interfaces for different purposes, example, wlan0, wlan1 and ap0.
> > 
> > wlan0/1 use for 2.5/5ghz access, and ap0 for sharing/tethering.
> > 
> > Is it possible to configure connman in this way, such that enabling
> > tethering on the  wifi technology activates the ap0 device, and not the
> > active wlan device?
> 
> I've never actually tried.  Hopefully it does?  Multiple devices of the same
> technology should definitely work just fine (e.g. multiple
> ethernet/cellular/wifi).
> 
Hi Dennis

In my experience, if the 'wifi technologyi is connected to my local network on 
wlan1, connmantctl shows:
/net/connman/technology/wifi
  Name = WiFi
  Type = wifi
  Powered = True
  Connected = True
  Tethering = False
  TetheringIdentifier = quintus
  TetheringPassphrase = sailfish


If i then enable tethering, I get
/net/connman/technology/wifi
  Name = WiFi
  Type = wifi
  Powered = True
  Connected = False
  Tethering = True
  TetheringIdentifier = quintus
  TetheringPassphrase = xxxxxxxxxx

This create a bridge device called 'tether'
[root@Quintus defaultuser]# ip link show type bridge
42: tether: <BROADCAST,MULTICAST,DYNAMIC,UP,LOWER_UP> mtu 1500 qdisc noqueue 
state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether a6:fc:a9:e6:27:cb brd ff:ff:ff:ff:ff:ff

But it has no bridge members
[root@Quintus defaultuser]# ls /sys/class/net/tether/brif/
[root@Quintus defaultuser]# 

ip link show i do have the ap0 device
41: ap0: <NO-CARRIER,BROADCAST,MULTICAST,DYNAMIC,UP> mtu 1500 qdisc mq state 
DOWN mode DORMANT group default qlen 1000
    link/ether 1e:9f:4e:72:66:55 brd ff:ff:ff:ff:ff:ff

Im not too familiar with connman configuration,  but I cant see a way to 
instruct connman to use a specific device when enabling tether on a technology.  
Grateful for any suggestions


I will try to dig through the dbus API to see if there is anyway to do it with 
the dbus api, rather than config.

Regards

Adam
> Regards,
> -Denis
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEEr1aGel3+a3VM67n3d+rfHu07OYAFAmiUcjsACgkQd+rfHu07
OYAV7AgAhx556NMr4GVexDpwwKjO1keGp3Q1AxMKajcQ+Zfc0RanGTtPu5j0sxen
fuW3qFtWu7FJp7rpnmQL1CWeTnQR+mAZ64YExP5PPzN+5DQr7lkKD9tyUOYZ6AE/
HGFKigcgNJf5HRi9JNwkehX/hPzcq3H7pTqdBpR36t2+eXqkeE1B9fwtSTMepcM5
bgm+DLZu4xtTKDJ0swgMi7T6ORWKoEVD3xpIBI1agHtQI8RydOlicD0nrT/19z90
jiU6UkEG2Iqs4VjMWzRM/CHZWC89YMaGQWulZrjvHU8X+Pvb37THc/Gaz04Bu2fM
FRXyfwkBQw2VfYe5gp2nNFRw6PAGXQ==
=S3mn
-----END PGP SIGNATURE-----