summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6656
diff options
context:
space:
mode:
authorMalcolm Priestley2014-03-18 20:25:04 +0100
committerGreg Kroah-Hartman2014-03-19 17:00:19 +0100
commitc4cf6dfb8e204508ed8d066f08a523e7b8384ae8 (patch)
tree128e2079e44062f109d523f3b7a246692cc7a08f /drivers/staging/vt6656
parentstaging: vt6656: vnt_time_stamp_off fix return to __le16 (diff)
downloadkernel-qcow2-linux-c4cf6dfb8e204508ed8d066f08a523e7b8384ae8.tar.gz
kernel-qcow2-linux-c4cf6dfb8e204508ed8d066f08a523e7b8384ae8.tar.xz
kernel-qcow2-linux-c4cf6dfb8e204508ed8d066f08a523e7b8384ae8.zip
staging: vt6656: rxtx endian correct return duration
All duration base types are __le16 correct back to cpu Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6656')
-rw-r--r--drivers/staging/vt6656/rxtx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/vt6656/rxtx.c b/drivers/staging/vt6656/rxtx.c
index 4ae8c9cabc54..63bffc2e4e80 100644
--- a/drivers/staging/vt6656/rxtx.c
+++ b/drivers/staging/vt6656/rxtx.c
@@ -488,7 +488,7 @@ static u16 vnt_rxtx_datahead_g(struct vnt_private *priv, u8 pkt_type, u16 rate,
buf->time_stamp_off_b = vnt_time_stamp_off(priv,
priv->byTopCCKBasicRate);
- return buf->duration_a;
+ return le16_to_cpu(buf->duration_a);
}
static u16 vnt_rxtx_datahead_g_fb(struct vnt_private *priv, u8 pkt_type,
@@ -512,7 +512,7 @@ static u16 vnt_rxtx_datahead_g_fb(struct vnt_private *priv, u8 pkt_type,
buf->time_stamp_off_b = vnt_time_stamp_off(priv,
priv->byTopCCKBasicRate);
- return buf->duration_a;
+ return le16_to_cpu(buf->duration_a);
}
static u16 vnt_rxtx_datahead_a_fb(struct vnt_private *priv, u8 pkt_type,
@@ -529,7 +529,7 @@ static u16 vnt_rxtx_datahead_a_fb(struct vnt_private *priv, u8 pkt_type,
buf->time_stamp_off = vnt_time_stamp_off(priv, rate);
- return buf->duration;
+ return le16_to_cpu(buf->duration);
}
static u16 vnt_rxtx_datahead_ab(struct vnt_private *priv, u8 pkt_type,
@@ -543,7 +543,7 @@ static u16 vnt_rxtx_datahead_ab(struct vnt_private *priv, u8 pkt_type,
buf->time_stamp_off = vnt_time_stamp_off(priv, rate);
- return buf->duration;
+ return le16_to_cpu(buf->duration);
}
static int vnt_fill_ieee80211_rts(struct vnt_private *priv,