diff options
author | Tobias Waldekranz <tobias@waldekranz.com> | 2013-08-26 09:18:06 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-08-26 14:10:38 -0400 |
commit | cfcd926ea2bc46aaca4e9ca3f0a3b8ac35b9d691 (patch) | |
tree | 21e91fa792b19a4e6eb3f31f9fff5509f7cbab66 /drivers/net/wireless/mwifiex/main.h | |
parent | d4c04ba141d4c5981aebc0aa0ecadc0f16f99387 (diff) | |
download | lwn-cfcd926ea2bc46aaca4e9ca3f0a3b8ac35b9d691.tar.gz lwn-cfcd926ea2bc46aaca4e9ca3f0a3b8ac35b9d691.zip |
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/main.h')
-rw-r--r-- | drivers/net/wireless/mwifiex/main.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/main.h b/drivers/net/wireless/mwifiex/main.h index 7d4d13779625..1d72f13adb9d 100644 --- a/drivers/net/wireless/mwifiex/main.h +++ b/drivers/net/wireless/mwifiex/main.h @@ -1026,7 +1026,7 @@ mwifiex_netdev_get_priv(struct net_device *dev) */ static inline bool mwifiex_is_skb_mgmt_frame(struct sk_buff *skb) { - return (*(u32 *)skb->data == PKT_TYPE_MGMT); + return (le32_to_cpu(*(__le32 *)skb->data) == PKT_TYPE_MGMT); } /* This function retrieves channel closed for operation by Channel |