aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalcolm Priestley <tvboxspy@gmail.com>2014-03-18 15:24:58 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-19 12:00:18 -0400
commit5ff627aedbcf0a400ee402ad7b7aa14d1b8ce3d3 (patch)
tree38c4a6a9db659da6d8cfbe8d0981871f62abfea6
parent85417bf0d75066441be0c612fc6f3c14668a8735 (diff)
staging: vt6656: rxtx: Replace wTxRrvTime*
Fix base type to __le16 and remove camel case. Camel case changes wTxRrvTime* -> rrv_time* Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/vt6656/rxtx.c16
-rw-r--r--drivers/staging/vt6656/rxtx.h10
2 files changed, 13 insertions, 13 deletions
diff --git a/drivers/staging/vt6656/rxtx.c b/drivers/staging/vt6656/rxtx.c
index 51aa77c581ab..9846c901e65f 100644
--- a/drivers/staging/vt6656/rxtx.c
+++ b/drivers/staging/vt6656/rxtx.c
@@ -823,9 +823,9 @@ static u16 s_vGenerateTxParameter(struct vnt_private *pDevice,
823 pBuf->rts_rrv_time_bb = s_uGetRTSCTSRsvTime(pDevice, 0, 823 pBuf->rts_rrv_time_bb = s_uGetRTSCTSRsvTime(pDevice, 0,
824 byPktType, cbFrameSize, wCurrentRate); 824 byPktType, cbFrameSize, wCurrentRate);
825 825
826 pBuf->wTxRrvTime_a = vnt_rxtx_rsvtime_le16(pDevice, 826 pBuf->rrv_time_a = vnt_rxtx_rsvtime_le16(pDevice,
827 byPktType, cbFrameSize, wCurrentRate, bNeedACK); 827 byPktType, cbFrameSize, wCurrentRate, bNeedACK);
828 pBuf->wTxRrvTime_b = vnt_rxtx_rsvtime_le16(pDevice, 828 pBuf->rrv_time_b = vnt_rxtx_rsvtime_le16(pDevice,
829 PK_TYPE_11B, cbFrameSize, 829 PK_TYPE_11B, cbFrameSize,
830 pDevice->byTopCCKBasicRate, bNeedACK); 830 pDevice->byTopCCKBasicRate, bNeedACK);
831 831
@@ -846,9 +846,9 @@ static u16 s_vGenerateTxParameter(struct vnt_private *pDevice,
846 struct vnt_rrv_time_cts *pBuf = &tx_buffer-> 846 struct vnt_rrv_time_cts *pBuf = &tx_buffer->
847 tx_head.tx_cts.cts; 847 tx_head.tx_cts.cts;
848 848
849 pBuf->wTxRrvTime_a = vnt_rxtx_rsvtime_le16(pDevice, 849 pBuf->rrv_time_a = vnt_rxtx_rsvtime_le16(pDevice,
850 byPktType, cbFrameSize, wCurrentRate, bNeedACK); 850 byPktType, cbFrameSize, wCurrentRate, bNeedACK);
851 pBuf->wTxRrvTime_b = vnt_rxtx_rsvtime_le16(pDevice, 851 pBuf->rrv_time_b = vnt_rxtx_rsvtime_le16(pDevice,
852 PK_TYPE_11B, cbFrameSize, 852 PK_TYPE_11B, cbFrameSize,
853 pDevice->byTopCCKBasicRate, bNeedACK); 853 pDevice->byTopCCKBasicRate, bNeedACK);
854 854
@@ -883,7 +883,7 @@ static u16 s_vGenerateTxParameter(struct vnt_private *pDevice,
883 pBuf->rts_rrv_time = s_uGetRTSCTSRsvTime(pDevice, 2, 883 pBuf->rts_rrv_time = s_uGetRTSCTSRsvTime(pDevice, 2,
884 byPktType, cbFrameSize, wCurrentRate); 884 byPktType, cbFrameSize, wCurrentRate);
885 885
886 pBuf->wTxRrvTime = vnt_rxtx_rsvtime_le16(pDevice, 886 pBuf->rrv_time = vnt_rxtx_rsvtime_le16(pDevice,
887 byPktType, cbFrameSize, wCurrentRate, bNeedACK); 887 byPktType, cbFrameSize, wCurrentRate, bNeedACK);
888 888
889 /* Fill RTS */ 889 /* Fill RTS */
@@ -894,7 +894,7 @@ static u16 s_vGenerateTxParameter(struct vnt_private *pDevice,
894 struct vnt_rrv_time_ab *pBuf = &tx_buffer-> 894 struct vnt_rrv_time_ab *pBuf = &tx_buffer->
895 tx_head.tx_ab.ab; 895 tx_head.tx_ab.ab;
896 896
897 pBuf->wTxRrvTime = vnt_rxtx_rsvtime_le16(pDevice, 897 pBuf->rrv_time = vnt_rxtx_rsvtime_le16(pDevice,
898 PK_TYPE_11A, cbFrameSize, 898 PK_TYPE_11A, cbFrameSize,
899 wCurrentRate, bNeedACK); 899 wCurrentRate, bNeedACK);
900 900
@@ -917,7 +917,7 @@ static u16 s_vGenerateTxParameter(struct vnt_private *pDevice,
917 pBuf->rts_rrv_time = s_uGetRTSCTSRsvTime(pDevice, 0, 917 pBuf->rts_rrv_time = s_uGetRTSCTSRsvTime(pDevice, 0,
918 byPktType, cbFrameSize, wCurrentRate); 918 byPktType, cbFrameSize, wCurrentRate);
919 919
920 pBuf->wTxRrvTime = vnt_rxtx_rsvtime_le16(pDevice, 920 pBuf->rrv_time = vnt_rxtx_rsvtime_le16(pDevice,
921 PK_TYPE_11B, cbFrameSize, wCurrentRate, 921 PK_TYPE_11B, cbFrameSize, wCurrentRate,
922 bNeedACK); 922 bNeedACK);
923 923
@@ -929,7 +929,7 @@ static u16 s_vGenerateTxParameter(struct vnt_private *pDevice,
929 struct vnt_rrv_time_ab *pBuf = &tx_buffer-> 929 struct vnt_rrv_time_ab *pBuf = &tx_buffer->
930 tx_head.tx_ab.ab; 930 tx_head.tx_ab.ab;
931 931
932 pBuf->wTxRrvTime = vnt_rxtx_rsvtime_le16(pDevice, 932 pBuf->rrv_time = vnt_rxtx_rsvtime_le16(pDevice,
933 PK_TYPE_11B, cbFrameSize, 933 PK_TYPE_11B, cbFrameSize,
934 wCurrentRate, bNeedACK); 934 wCurrentRate, bNeedACK);
935 935
diff --git a/drivers/staging/vt6656/rxtx.h b/drivers/staging/vt6656/rxtx.h
index 1e8f5e2c071f..f0ab2a3d70c9 100644
--- a/drivers/staging/vt6656/rxtx.h
+++ b/drivers/staging/vt6656/rxtx.h
@@ -57,20 +57,20 @@ struct vnt_rrv_time_rts {
57 __le16 rts_rrv_time_aa; 57 __le16 rts_rrv_time_aa;
58 __le16 rts_rrv_time_bb; 58 __le16 rts_rrv_time_bb;
59 u16 wReserved; 59 u16 wReserved;
60 u16 wTxRrvTime_b; 60 __le16 rrv_time_b;
61 u16 wTxRrvTime_a; 61 __le16 rrv_time_a;
62} __packed; 62} __packed;
63 63
64struct vnt_rrv_time_cts { 64struct vnt_rrv_time_cts {
65 u16 wCTSTxRrvTime_ba; 65 u16 wCTSTxRrvTime_ba;
66 u16 wReserved; 66 u16 wReserved;
67 u16 wTxRrvTime_b; 67 __le16 rrv_time_b;
68 u16 wTxRrvTime_a; 68 __le16 rrv_time_a;
69} __packed; 69} __packed;
70 70
71struct vnt_rrv_time_ab { 71struct vnt_rrv_time_ab {
72 __le16 rts_rrv_time; 72 __le16 rts_rrv_time;
73 u16 wTxRrvTime; 73 __le16 rrv_time;
74} __packed; 74} __packed;
75 75
76/* TX data header */ 76/* TX data header */