From 708e281da81e710cfbdc7c4c97c633e27142bc9d Mon Sep 17 00:00:00 2001
From: Shayne Chen <shayne.chen@mediatek.com>
Date: Wed, 7 Jun 2023 17:50:47 +0800
Subject: [PATCH 46/54] hostapd: mtk: some fixes for porting

Some fixes for porting back hostapd patches.

Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
---
 src/ap/sta_info.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ap/sta_info.c b/src/ap/sta_info.c
index 2f937630a..e57bd2a6c 100644
--- a/src/ap/sta_info.c
+++ b/src/ap/sta_info.c
@@ -1308,7 +1308,7 @@ void ap_sta_set_authorized(struct hostapd_data *hapd, struct sta_info *sta,
 		return;
 
 	if (authorized) {
-		hostapd_prune_associations(hapd, sta->addr);
+		hostapd_prune_associations(hapd, sta->addr, sta->mld_assoc_link_id);
 		sta->flags |= WLAN_STA_AUTHORIZED;
 	} else {
 		sta->flags &= ~WLAN_STA_AUTHORIZED;
-- 
2.39.2

