]> git.ipfire.org Git - thirdparty/hostap.git/commit
AP: Allow starting multiple interfaces within single MLD
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Mon, 22 May 2023 19:33:36 +0000 (22:33 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 6 Jun 2023 17:30:47 +0000 (20:30 +0300)
commit7fa99b3246d14594542f7cc8aa67158a6d9a51b9
tree3604be03af52da1b90eca4693ef7ffa835a46294
parentf2dd75093f9ee5211cedc125e2f211b8cd3d93cd
AP: Allow starting multiple interfaces within single MLD

Add support for including multiple hostapd interfaces in the same AP
MLD, i.e., all using the same underlying driver network interface.

To do so, when a new hostapd interface is added, if there is already
another interface using the same underlying network interface, associate
the new interface with the same private data object, instead of creating
a new one.

As some of the BSSs are non-first BSSs, meaning that they reuse the
drv_priv of the initial BSS, make sure not to double free it.

Currently multiple BSS entries are not supported so always use bss[0]
for MLD.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
hostapd/main.c
src/ap/ap_drv_ops.h
src/ap/hostapd.c
src/ap/hostapd.h