> -static inline u16 tkip_S(u16 val) > +static u16 tkip_S(u16 val) > { > - u16 a = tkip_sbox[Hi8(val)]; > - > - return tkip_sbox[Lo8(val)] ^ Hi8(a) ^ (Lo8(a) << 8); > + return tkip_sbox[val & 0xff] ^ __swab16(tkip_sbox[val >> 8]); What's wrong with using the non-underscored versions? This is pure kernel code... johannes
Attachment:
signature.asc
Description: This is a digitally signed message part