]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Move mld_link_info structure to hostapd.h header file
authorSriram R <quic_srirrama@quicinc.com>
Wed, 7 Aug 2024 06:41:40 +0000 (12:11 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 7 Aug 2024 15:57:04 +0000 (18:57 +0300)
At present, the mld_link_info structure is nested within the mld_info
structure. However, a future modification will require mld_link_info to
be outside of mld_info. To address this, move the mld_link_info
structure to hostapd.h so that it can be accessed both in the current
context and in the location needed for the upcoming change.

No functional changes.

Signed-off-by: Sriram R <quic_srirrama@quicinc.com>
Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
src/ap/hostapd.h
src/ap/sta_info.h

index e5ca812360bbc4f856279f95bcfdfe125fe09cda..4dc1067cca196215f56dec428c4e15aacb6c2633 100644 (file)
@@ -167,6 +167,21 @@ struct hostapd_sae_commit_queue {
        u8 msg[];
 };
 
+struct mld_link_info {
+       u8 valid:1;
+       u8 nstr_bitmap_len:2;
+       u8 local_addr[ETH_ALEN];
+       u8 peer_addr[ETH_ALEN];
+
+       u8 nstr_bitmap[2];
+
+       u16 capability;
+
+       u16 status;
+       u16 resp_sta_profile_len;
+       u8 *resp_sta_profile;
+};
+
 /**
  * struct hostapd_data - hostapd per-BSS data structure
  */
index 84629358cc223f8d3bf7684cbf81e6c0560312cc..5b01c1e6f1c03ecacd9d5f89d39eefb8139dcfd7 100644 (file)
@@ -81,20 +81,7 @@ struct mld_info {
                u16 mld_capa;
        } common_info;
 
-       struct mld_link_info {
-               u8 valid:1;
-               u8 nstr_bitmap_len:2;
-               u8 local_addr[ETH_ALEN];
-               u8 peer_addr[ETH_ALEN];
-
-               u8 nstr_bitmap[2];
-
-               u16 capability;
-
-               u16 status;
-               u16 resp_sta_profile_len;
-               u8 *resp_sta_profile;
-       } links[MAX_NUM_MLD_LINKS];
+       struct mld_link_info links[MAX_NUM_MLD_LINKS];
 };
 
 struct sta_info {