Re: [PATCH V2] HE: fix hostapd_get_he_capab()

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

 



On Monday, 17 June 2019 14:16:35 CEST John Crispin wrote:
[...]
> diff --git a/src/common/ieee802_11_defs.h b/src/common/ieee802_11_defs.h
> index 12c004f88..1d302559e 100644
> --- a/src/common/ieee802_11_defs.h
> +++ b/src/common/ieee802_11_defs.h
> @@ -2109,7 +2109,7 @@ struct ieee80211_he_capabilities {
>  	u8 he_phy_capab_info[11];
>  	/* Followed by 4, 8, or 12 octets of Supported HE-MCS And NSS Set field
>  	* and optional variable length PPE Thresholds field. */
> -	u8 optional[];
> +	u8 optional[37];
>  } STRUCT_PACKED;
>  
>  struct ieee80211_he_operation {
> 
Ok, so you add here enough room for HE_MAX_MCS_CAPAB_SIZE and 
HE_MAX_PPET_CAPAB_SIZE. In that case, the buffer allocation for the mesh part 
in wpa_supplicant/mesh_mpm.c could be simplified from 

    		buf_len += 3 +
    			   HE_MAX_MAC_CAPAB_SIZE +
    			   HE_MAX_PHY_CAPAB_SIZE +
    			   HE_MAX_MCS_CAPAB_SIZE +
    			   HE_MAX_PPET_CAPAB_SIZE;

to

    		buf_len += 3 + sizeof(struct ieee80211_he_capabilities);

after your patch was applied.

Kind regards,
	Sven

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
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