Search Linux Wireless

Re: [PATCH 04/15] mac80211: adding 802.11n IEs handling

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

 



> >> >> @@ -89,6 +89,8 @@ struct ieee80211_sta_bss {
> >> >>  	size_t rsn_ie_len;
> >> >>  	u8 *wmm_ie;
> >> >>  	size_t wmm_ie_len;
> >> >> +	u8 *ht_ie;
> >> >> +	size_t ht_ie_len;
> >> >
> >> > At some point we probably should reorder the fields here to avoid all
> >> > the padding... Not in this patch though, of course.
> >> 
> >> There should not be any padding, size_t has the same size as a pointer.
> >
> > Even on 64-bit? In any case, the _len vars can all be u8 too.
> 
> I think you are missing a couple of '*'s here.

No. I just thought size_t would be 32 bits, and all the size_t can be
replaced by u8 since IEs cannot be longer than that.

johannes

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


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