diff options
author | Tobias Waldekranz <tobias@waldekranz.com> | 2013-08-26 11:18:06 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-08-26 22:10:38 +0400 |
commit | cfcd926ea2bc46aaca4e9ca3f0a3b8ac35b9d691 (patch) | |
tree | 21e91fa792b19a4e6eb3f31f9fff5509f7cbab66 /drivers/net/wireless/mwifiex/11n_aggr.c | |
parent | d4c04ba141d4c5981aebc0aa0ecadc0f16f99387 (diff) | |
download | linux-cfcd926ea2bc46aaca4e9ca3f0a3b8ac35b9d691.tar.xz |
mwifiex: add missing endian conversions
Fixes multiple locations where a little endian host is assumed during
ser/des of messages sent to/received from the chip.
Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/11n_aggr.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/11n_aggr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/11n_aggr.c b/drivers/net/wireless/mwifiex/11n_aggr.c index 8f9f54231a1c..f69d7e068e75 100644 --- a/drivers/net/wireless/mwifiex/11n_aggr.c +++ b/drivers/net/wireless/mwifiex/11n_aggr.c @@ -69,7 +69,7 @@ mwifiex_11n_form_amsdu_pkt(struct sk_buff *skb_aggr, memcpy(&tx_header->eth803_hdr, skb_src->data, dt_offset); /* Copy SNAP header */ - snap.snap_type = *(u16 *) ((u8 *)skb_src->data + dt_offset); + snap.snap_type = le16_to_cpu(*(__le16 *) ((u8 *)skb_src->data + dt_offset)); dt_offset += sizeof(u16); memcpy(&tx_header->rfc1042_hdr, &snap, sizeof(struct rfc_1042_hdr)); |