]> git.ipfire.org Git - thirdparty/hostap.git/commit
AP MLD: Introduce MLD level control interface socket
authorAditya Kumar Singh <quic_adisi@quicinc.com>
Tue, 13 Aug 2024 08:38:48 +0000 (14:08 +0530)
committerJouni Malinen <j@w1.fi>
Sun, 1 Sep 2024 08:49:00 +0000 (11:49 +0300)
commit14cb3906af0a53547019d3b2c68fc4f2fca41f5a
tree81754981f909e7609680e94a788c909fa1440278
parent757d8d9aacc6cfe5510cca70bf1973e9c703d89d
AP MLD: Introduce MLD level control interface socket

With MLO, each link have socket created with "<ifname>_link<link id>"
under the control interface directory.

Introduce a MLD level socket "<ifname>" as well under the same control
interface directory. This socket can be used to pass the command to its
partner links directly instead of using the link level socket. Link ID
needs to be passed with the command in a prefix way. If no Link ID is
provided the first link ID is selected.

The structure of the command is -
 "LINKID <link id> <COMMAND APPLICABALE FOR THE LINK>"

Directory looks something like this -
  $ ls /var/run/hostapd/
    wlan0
    wlan0_link0
    wlan0_link1

wlan0 here is the MLD level socket. Rest are each link level sockets.

This also helps to maintain backwards compatibility with applications
which looks for <ifname> under the control interface directory.

Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
hostapd/ctrl_iface.c
hostapd/ctrl_iface.h
hostapd/main.c
src/ap/hostapd.c
src/ap/hostapd.h