diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2012-08-04 05:06:02 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-08-06 23:12:48 +0400 |
commit | ed1ea6f42ecedbbb3a8c4e0211ad683b8680eebe (patch) | |
tree | 52af734fde8e23ba896d788deb56aec5218cb59e /drivers/net/wireless/mwifiex/fw.h | |
parent | bda1b1b77918ea340bbfb2938a0fd7d5203e430c (diff) | |
download | linux-ed1ea6f42ecedbbb3a8c4e0211ad683b8680eebe.tar.xz |
mwifiex: do le_to_cpu conversion for Rx packet header elements
We do similar conversion for Tx packet header but it was missing
for Rx packet header. Without this fix, Rx packet header won't
be correctly parsed on big endian platform.
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Kiran Divekar <dkiran@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/fw.h')
-rw-r--r-- | drivers/net/wireless/mwifiex/fw.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/mwifiex/fw.h b/drivers/net/wireless/mwifiex/fw.h index e831b440a24a..a0222ec1cc38 100644 --- a/drivers/net/wireless/mwifiex/fw.h +++ b/drivers/net/wireless/mwifiex/fw.h @@ -424,10 +424,10 @@ struct txpd { struct rxpd { u8 bss_type; u8 bss_num; - u16 rx_pkt_length; - u16 rx_pkt_offset; - u16 rx_pkt_type; - u16 seq_num; + __le16 rx_pkt_length; + __le16 rx_pkt_offset; + __le16 rx_pkt_type; + __le16 seq_num; u8 priority; u8 rx_rate; s8 snr; |