From: Mohan Kumar G Date: Mon, 16 Jun 2025 11:19:03 +0000 (+0530) Subject: AP MLD: Control interface events for ML Setup Link Reconfiguration X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e166a37632d45fa93bf0f0102c5bab37062e898c;p=thirdparty%2Fhostap.git AP MLD: Control interface events for ML Setup Link Reconfiguration Add control interface events in hostapd for link STA removal and addition operations from link reconfiguration. Co-developed-by: Pooventhiran G Signed-off-by: Pooventhiran G Signed-off-by: Mohan Kumar G --- diff --git a/src/ap/ieee802_11_eht.c b/src/ap/ieee802_11_eht.c index 5531fe6df..ce228469f 100644 --- a/src/ap/ieee802_11_eht.c +++ b/src/ap/ieee802_11_eht.c @@ -9,6 +9,7 @@ #include "utils/includes.h" #include "utils/common.h" #include "common/ocv.h" +#include "common/wpa_ctrl.h" #include "crypto/crypto.h" #include "crypto/dh_groups.h" #include "hostapd.h" @@ -1684,6 +1685,9 @@ void hostapd_link_reconf_resp_tx_status(struct hostapd_data *hapd, /* Free as a link STA */ ap_free_sta(lhapd, lsta); + wpa_msg(hapd->msg_ctx, MSG_INFO, + WPA_EVENT_LINK_STA_REMOVED "sta=" MACSTR " link_id=%u", + MAC2STR(lsta->addr), link_id); for_each_mld_link(other_hapd, lhapd) { struct mld_link_info *link; @@ -2497,6 +2501,10 @@ hostapd_validate_link_reconf_req(struct hostapd_data *hapd, } else { total_kde_len += link_kde_len; links_add_ok |= BIT(info->link_id); + wpa_msg(hapd->msg_ctx, MSG_INFO, + WPA_EVENT_LINK_STA_ADDED "sta=" MACSTR + " link_id=%u", MAC2STR(req_list->sta_mld_addr), + info->link_id); } info->status = status; diff --git a/src/common/wpa_ctrl.h b/src/common/wpa_ctrl.h index 90c67490d..ae5711aa6 100644 --- a/src/common/wpa_ctrl.h +++ b/src/common/wpa_ctrl.h @@ -118,6 +118,10 @@ extern "C" { #define WPA_EVENT_T2LM_UPDATE "CTRL-EVENT-T2LM-UPDATE " /** MLO link reconfiguration event */ #define WPA_EVENT_LINK_RECONFIG "CTRL-EVENT-LINK-RECONFIG " +/** MLO link STA removed through link reconfiguration */ +#define WPA_EVENT_LINK_STA_REMOVED "CTRL-EVENT-LINK-STA-REMOVED " +/** MLO link STA added through link reconfiguration */ +#define WPA_EVENT_LINK_STA_ADDED "CTRL-EVENT-LINK-STA-ADDED " /** IP subnet status change notification *