AP MLD: Use a helper function to check if a STA is a non-AP MLD
This makes it easier to change the struct sta_info design for MLD by reducing the number of direct references. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
ee9375fb3b
commit
6bda0aca8b
10 changed files with 41 additions and 29 deletions
|
@ -3599,7 +3599,7 @@ void hostapd_new_assoc_sta(struct hostapd_data *hapd, struct sta_info *sta,
|
|||
}
|
||||
|
||||
#ifdef CONFIG_IEEE80211BE
|
||||
if (hapd->conf->mld_ap && sta->mld_info.mld_sta &&
|
||||
if (ap_sta_is_mld(hapd, sta) &&
|
||||
sta->mld_assoc_link_id != hapd->mld_link_id)
|
||||
return;
|
||||
#endif /* CONFIG_IEEE80211BE */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue