aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/main.h
diff options
context:
space:
mode:
authorTobias Waldekranz <tobias@waldekranz.com>2013-08-26 03:18:06 -0400
committerJohn W. Linville <linville@tuxdriver.com>2013-08-26 14:10:38 -0400
commitcfcd926ea2bc46aaca4e9ca3f0a3b8ac35b9d691 (patch)
tree21e91fa792b19a4e6eb3f31f9fff5509f7cbab66 /drivers/net/wireless/mwifiex/main.h
parentd4c04ba141d4c5981aebc0aa0ecadc0f16f99387 (diff)
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.h2
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)
1026 */ 1026 */
1027static inline bool mwifiex_is_skb_mgmt_frame(struct sk_buff *skb) 1027static inline bool mwifiex_is_skb_mgmt_frame(struct sk_buff *skb)
1028{ 1028{
1029 return (*(u32 *)skb->data == PKT_TYPE_MGMT); 1029 return (le32_to_cpu(*(__le32 *)skb->data) == PKT_TYPE_MGMT);
1030} 1030}
1031 1031
1032/* This function retrieves channel closed for operation by Channel 1032/* This function retrieves channel closed for operation by Channel