From d8c71cba92db660ea3de765fb8aa02a17a16ec6d Mon Sep 17 00:00:00 2001
From: Bo Jiao <Bo.Jiao@mediatek.com>
Date: Thu, 30 Mar 2023 11:22:33 +0800
Subject: [PATCH 49/54] hostapd: mtk: treat non-mld authentication station as a
 mld sta with single link.

Signed-off-by: Bo Jiao <Bo.Jiao@mediatek.com>
---
 src/ap/ieee802_11.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
index 78bf2c286..3c47539df 100644
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -2813,10 +2813,16 @@ static void handle_auth(struct hostapd_data *hapd,
 		 * the driver.
 		 */
 		sa = hostapd_process_ml_auth(hapd, mgmt, len);
+		/* we treat non-mld authentication station as a mld sta with single link */
+		/*
 		if (sa)
 			mld_sta = true;
 		else
 			sa = mgmt->sa;
+		*/
+		mld_sta = true;
+		if (!sa)
+			sa = mgmt->sa;
 #endif /* CONFIG_IEEE80211BE */
 
 
-- 
2.39.2

