On Thursday 09 October 2008 17:19:23 Larry Finger wrote: > This patch is meant for testing on big-endian hardware. Every indication > is that the data in the bootrec structure is little endian. This patch fixes > a usage of the u32 data array as a string of u8's. > > Signed-off-by: Larry Finger <Larry.Finger@xxxxxxxxxxxx> > --- > > Index: wireless-testing/drivers/net/wireless/p54/p54common.h > =================================================================== > --- wireless-testing.orig/drivers/net/wireless/p54/p54common.h > +++ wireless-testing/drivers/net/wireless/p54/p54common.h > @@ -18,7 +18,10 @@ > struct bootrec { > __le32 code; > __le32 len; > - u32 data[10]; > + union { > + u32 data[10]; > + u8 data_char[40]; > + } __attribute__((packed)); > __le16 rx_mtu; > } __attribute__((packed)); > ? how did rx_mtu end up there? it should be a part of bootrec_desc (which is a few lines down in p54common.h) struct bootrec_desc { __le16 modes; __le16 flags; __le32 rx_start; __le32 rx_end; u8 headroom; u8 tailroom; u8 unimportant[6]; u8 rates[16]; + __le16 rx_mtu; } __attribute__((packed)); This structure is equivalent to struct s_lm_descr from "lmac_longbow.h", which can be found on wireless.kernel.org's resource page. Regards, Chr -- 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