From 11912c2ddf2e540a94d0d9f06f65f9861fe05be1 Mon Sep 17 00:00:00 2001
From: Jakob Olsson <jakob.olsson@iopsys.eu>
Date: Wed, 11 Jun 2025 16:19:48 +0200
Subject: [PATCH] mld: use ap-autoconf renew to teardown MLD with no affiliated
APs
---
src/config.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/config.c b/src/config.c
index 4325d949..6cb3bd17 100644
--- a/src/config.c
+++ b/src/config.c
@@ -3117,7 +3117,12 @@ uint32_t cntlr_mld_id_diff(struct controller_config *curr,
continue;
if (prev_mld->num_affiliated_aps != curr_mld->num_affiliated_aps) {
- if (curr_mld->multi_ap & 0x01) {
+ if (curr_mld->num_affiliated_aps == 0 ||
+ prev_mld->num_affiliated_aps == 0) {
+ diff |= CONFIG_DIFF_CREDENTIALS;
+ /* AP-Autoconfiguration Renew covers all cases */
+ return diff;
+ } else if (curr_mld->multi_ap & 0x01) {
diff |= CONFIG_DIFF_BSTA_MLD;
diff |= CONFIG_DIFF_AP_MLD;
multi_ap |= 0x01;
--
GitLab