]> git.ipfire.org Git - thirdparty/hostap.git/commit
AP MLD: Set link address only when non-AP MLD is not added to driver
authorMichael-CY Lee <michael-cy.lee@mediatek.com>
Thu, 15 Feb 2024 07:36:41 +0000 (15:36 +0800)
committerJouni Malinen <j@w1.fi>
Sun, 3 Mar 2024 19:33:46 +0000 (21:33 +0200)
commitb653420a239baac023cc4242ff18179ba73b771c
tree99ce3e6afff9ec5d711d5fe9ca2348b5724a0c72
parent16abdac8092e4125dd8b83de0493636bd9b31f70
AP MLD: Set link address only when non-AP MLD is not added to driver

Once the non-AP MLD is added to the driver, the driver handles the
address translation so that hostapd receives Management frames with
SA/DA being translated into MLD MAC addresses.

If the Authentication frmae is retransmitted with transaction being 1,
SA of the retransmitted Authentication frame is translated into the MLD
MAC address by the driver, and then in the function handle_auth(),
sta->mld_info.links[].peer_addr would be replaced by the MLD MAC address
even though it is supposed to be the link address.

Therefore, update the MLD information only when the STA has not yet been
added into the driver to avoid replacing the previously determined link
address with the MLD MAC address.

Fixes: bcbe80a66 ("AP: MLO: Handle Multi-Link element during authentication")
Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com>
src/ap/ieee802_11.c