]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP MLD: Remove unused get_ml_rsn_info callback definition
authorJouni Malinen <quic_jouni@quicinc.com>
Thu, 25 Apr 2024 08:56:23 +0000 (11:56 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 25 Apr 2024 08:56:23 +0000 (11:56 +0300)
This is not used anymore after the previous AP MLD cleanup.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/ap/wpa_auth.c
src/ap/wpa_auth.h

index f3da9367fb38be97afa9c2a847559590d470db78..8304c6047b1c7823690b5df548c559336dfb2397 100644 (file)
@@ -7143,8 +7143,7 @@ void wpa_auth_set_ml_info(struct wpa_state_machine *sm,
                          u8 mld_assoc_link_id, struct mld_info *info)
 {
 #ifdef CONFIG_IEEE80211BE
-       struct wpa_auth_ml_rsn_info ml_rsn_info;
-       unsigned int link_id, i;
+       unsigned int link_id;
 
        if (!info)
                return;
@@ -7159,9 +7158,7 @@ void wpa_auth_set_ml_info(struct wpa_state_machine *sm,
 
        sm->mld_assoc_link_id = mld_assoc_link_id;
 
-       os_memset(&ml_rsn_info, 0, sizeof(ml_rsn_info));
-
-       for (i = 0, link_id = 0; link_id < MAX_NUM_MLD_LINKS; link_id++) {
+       for (link_id = 0; link_id < MAX_NUM_MLD_LINKS; link_id++) {
                struct mld_link_info *link = &info->links[link_id];
                struct mld_link *sm_link = &sm->mld_links[link_id];
                struct wpa_get_link_auth_ctx ctx;
@@ -7177,8 +7174,6 @@ void wpa_auth_set_ml_info(struct wpa_state_machine *sm,
                           link_id,
                           MAC2STR(sm_link->peer_addr));
 
-               ml_rsn_info.links[i++].link_id = link_id;
-
                if (link_id != mld_assoc_link_id) {
                        sm->n_mld_affiliated_links++;
                        ctx.addr = link->local_addr;
@@ -7203,7 +7198,5 @@ void wpa_auth_set_ml_info(struct wpa_state_machine *sm,
                                   MAC2STR(sm->wpa_auth->mld_addr),
                                   link_id);
        }
-
-       ml_rsn_info.n_mld_links = i;
 #endif /* CONFIG_IEEE80211BE */
 }
index 4ee367bc654a840ba06e470fd8dc704f44a20f09..ed0442c189e239760dcd7199814a23fa578cff84 100644 (file)
@@ -303,16 +303,6 @@ typedef enum {
        WPA_EAPOL_keyDone, WPA_EAPOL_inc_EapolFramesTx
 } wpa_eapol_variable;
 
-struct wpa_auth_ml_rsn_info {
-       unsigned int n_mld_links;
-
-       struct wpa_auth_ml_link_rsn_info {
-               unsigned int link_id;
-               const u8 *rsn_ies;
-               size_t rsn_ies_len;
-       } links[MAX_NUM_MLD_LINKS];
-};
-
 struct wpa_auth_ml_key_info {
        unsigned int n_mld_links;
        bool mgmt_frame_prot;
@@ -406,7 +396,6 @@ struct wpa_auth_callbacks {
                               size_t ltf_keyseed_len);
 #endif /* CONFIG_PASN */
 #ifdef CONFIG_IEEE80211BE
-       int (*get_ml_rsn_info)(void *ctx, struct wpa_auth_ml_rsn_info *info);
        int (*get_ml_key_info)(void *ctx, struct wpa_auth_ml_key_info *info);
 #endif /* CONFIG_IEEE80211BE */
        int (*get_drv_flags)(void *ctx, u64 *drv_flags, u64 *drv_flags2);