On Mon, 2008-02-25 at 22:24 +0100, Johannes Berg wrote: > #define PREQ_IE_ORIG_DSN(x) le32_to_cpu(*((u32 *) (x + 13))) > > Would it be possible to define the preq IE as a struct? Not sure if it > is. Either way, this should be converted to a static inline instead of a > macro. The problem is that preq and prep IEs do not have a fixed size. Depending on the address extension bit, they can have or not a 6 byte proxied address in the middle, so I would need 4 structures. > > Also, you need to add a lot of get_unaligned() to the code. Please read > Daniel's excellent Documentation/unaligned-memory-access.txt Will do. -- Luis Carlos Cobo Rus GnuPG ID: 44019B60 cozybit Inc. - To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html