]> git.ipfire.org Git - thirdparty/hostap.git/commit
hostapd: MLO: Avoid use of mld_id as user configuration
authorSriram R <quic_srirrama@quicinc.com>
Wed, 6 Mar 2024 06:36:33 +0000 (12:06 +0530)
committerJouni Malinen <j@w1.fi>
Tue, 26 Mar 2024 18:16:59 +0000 (20:16 +0200)
commit259b43a31a124507a0568f0470d8acb597cf9d19
tree42db114a7d339f41a8d9ba09e17380bb86051ce7
parent272c253dc99030a8a8ddd02ad3ec16dc840e125f
hostapd: MLO: Avoid use of mld_id as user configuration

mld_id was provided as a user configuration to identify partner BSS
belonging to the same AP MLD. The same id is used at the protocol level
also to indicate the AP MLD ID of the MLD.

But, in general mld_id is a relative reference of the MLD where 0 is
used as the mld_id to represent the self MLD and in case of MLO MBSSID
mld_id of a non transmitted BSS affiliated to an AP MLD is based on the
relative BSS index of the non transmitted BSS from the transmitted BSS.
Hence mld_id need not be fetched from users, rather it can be identified
wherever required.

To verify if the partners belong to the same AP MLD the interface name
can be checked, since all link BSS partners of the same AP MLD belong to
the same interface.

Hence, remove use of mld_id user config and instead introduce two
functions hostapd_is_ml_partner() and hostapd_get_mld_id(). The former
is used to verify whether partners belong to the same AP MLD and the
latter is used to get the MLD ID of the BSS.

Signed-off-by: Sriram R <quic_srirrama@quicinc.com>
Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
14 files changed:
hostapd/config_file.c
hostapd/ctrl_iface.c
hostapd/hostapd.conf
hostapd/main.c
src/ap/beacon.c
src/ap/ctrl_iface_ap.c
src/ap/drv_callbacks.c
src/ap/hostapd.c
src/ap/hostapd.h
src/ap/ieee802_11.c
src/ap/ieee802_11_eht.c
src/ap/ieee802_1x.c
src/ap/sta_info.c
src/ap/wpa_auth_glue.c