Re: [PATCH] AP MLD: set the link address only when the non-AP MLD is not added to the driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 15, 2024 at 03:36:41PM +0800, Michael-CY Lee wrote:
> Once the non-AP MLD is added to the driver, the driver handles the
> address translation so that hostapd receives mgmt. with SA/DA being
> translated into MLD addresses.
> 
> If the authentication request is re-transmitted with transaction being 1,
> SA of the re-transmitted request is translated into MLD address by the
> driver, and then in the function handle_auth(),
> sta->mld_info.links[].peer_addr is replaced by the MLD address.
> 
> Therefore, only when the STA is not added into the driver that the link
> address can be set.

Thanks, applied.

> diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
> @@ -3077,7 +3077,7 @@ static void handle_auth(struct hostapd_data *hapd,
>  #ifdef CONFIG_IEEE80211BE
> -	if (auth_transaction == 1) {
> +	if (!sta->added_unassoc) {
>  		ap_sta_free_sta_profile(&sta->mld_info);
>  		os_memset(&sta->mld_info, 0, sizeof(sta->mld_info));

Though, I left that auth_transaction == 1 as an additional condition
here instead of fully replacing it.
 
-- 
Jouni Malinen                                            PGP id EFC895FA

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux