[Networkmanager] Getting connected clients in hotspot mode
thaller at redhat.com
Mon Apr 3 18:54:21 UTC 2023
On Mon, Apr 3, 2023 at 6:49 PM Guido Günther <agx at sigxcpu.org> wrote:
> when using hotspot mode in GNOME it enables ap mode on the wifi
> interface and enable dhcp via dnsmasq. Is there a way to find whether
> ther are connected clients via libnm or would you recommend looking at
> dnsmasq's leases or /proc/net/arp?
> The reason is that I want to be able to reenable device suspend N
> minutes after the last client disconnected:
Currently information about AP clients (or DHCP leases) is not exposed.
I guess, one workaround/hack could be to read the (internal)
Optimally, we add an API to make that possible. In particular, that
also then could include the number of connected clients, the age
(connection duration of each client) and how long no clients are
More information about the Networkmanager