Skip to content

Commit b1711c1

Browse files
Juan Antonio Pedreira Martosgregkh
authored andcommitted
staging: vt6656: use tabs instead of spaces
Fix a checkpatch error: CODE_INDENT (code indent should use tabs where possible). Signed-off-by: Juan Antonio Pedreira Martos <juanpm1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 817bf56 commit b1711c1

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

drivers/staging/vt6656/rxtx.c

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ static __le16 vnt_time_stamp_off(struct vnt_private *priv, u16 rate)
114114
}
115115

116116
static u32 vnt_get_rsvtime(struct vnt_private *priv, u8 pkt_type,
117-
u32 frame_length, u16 rate, int need_ack)
117+
u32 frame_length, u16 rate, int need_ack)
118118
{
119119
u32 data_time, ack_time;
120120

@@ -135,14 +135,14 @@ static u32 vnt_get_rsvtime(struct vnt_private *priv, u8 pkt_type,
135135
}
136136

137137
static __le16 vnt_rxtx_rsvtime_le16(struct vnt_private *priv, u8 pkt_type,
138-
u32 frame_length, u16 rate, int need_ack)
138+
u32 frame_length, u16 rate, int need_ack)
139139
{
140140
return cpu_to_le16((u16)vnt_get_rsvtime(priv, pkt_type,
141141
frame_length, rate, need_ack));
142142
}
143143

144144
static __le16 vnt_get_rtscts_rsvtime_le(struct vnt_private *priv,
145-
u8 rsv_type, u8 pkt_type, u32 frame_length, u16 current_rate)
145+
u8 rsv_type, u8 pkt_type, u32 frame_length, u16 current_rate)
146146
{
147147
u32 rrv_time, rts_time, cts_time, ack_time, data_time;
148148

@@ -160,19 +160,19 @@ static __le16 vnt_get_rtscts_rsvtime_le(struct vnt_private *priv,
160160
rts_time = vnt_get_frame_time(priv->preamble_type,
161161
pkt_type, 20, priv->top_cck_basic_rate);
162162
cts_time = vnt_get_frame_time(priv->preamble_type, pkt_type,
163-
14, priv->top_cck_basic_rate);
163+
14, priv->top_cck_basic_rate);
164164
ack_time = vnt_get_frame_time(priv->preamble_type, pkt_type,
165-
14, priv->top_ofdm_basic_rate);
165+
14, priv->top_ofdm_basic_rate);
166166
} else if (rsv_type == 2) {
167167
rts_time = vnt_get_frame_time(priv->preamble_type, pkt_type,
168-
20, priv->top_ofdm_basic_rate);
168+
20, priv->top_ofdm_basic_rate);
169169
cts_time = ack_time = vnt_get_frame_time(priv->preamble_type,
170170
pkt_type, 14, priv->top_ofdm_basic_rate);
171171
} else if (rsv_type == 3) {
172172
cts_time = vnt_get_frame_time(priv->preamble_type, pkt_type,
173-
14, priv->top_cck_basic_rate);
173+
14, priv->top_cck_basic_rate);
174174
ack_time = vnt_get_frame_time(priv->preamble_type, pkt_type,
175-
14, priv->top_ofdm_basic_rate);
175+
14, priv->top_ofdm_basic_rate);
176176

177177
rrv_time = cts_time + ack_time + data_time + 2 * priv->sifs;
178178

@@ -227,7 +227,7 @@ static __le16 vnt_get_rtscts_duration_le(struct vnt_usb_send_context *context,
227227
case RTSDUR_AA_F0:
228228
case RTSDUR_AA_F1:
229229
cts_time = vnt_get_frame_time(priv->preamble_type,
230-
pkt_type, 14, priv->top_ofdm_basic_rate);
230+
pkt_type, 14, priv->top_ofdm_basic_rate);
231231
dur_time = cts_time + 2 * priv->sifs +
232232
vnt_get_rsvtime(priv, pkt_type,
233233
frame_length, rate, need_ack);
@@ -410,7 +410,7 @@ static u16 vnt_rxtx_rts_g_head(struct vnt_usb_send_context *tx_context,
410410
u16 current_rate = tx_context->tx_rate;
411411

412412
vnt_get_phy_field(priv, rts_frame_len, priv->top_cck_basic_rate,
413-
PK_TYPE_11B, &buf->b);
413+
PK_TYPE_11B, &buf->b);
414414
vnt_get_phy_field(priv, rts_frame_len, priv->top_ofdm_basic_rate,
415415
tx_context->pkt_type, &buf->a);
416416

@@ -437,7 +437,7 @@ static u16 vnt_rxtx_rts_g_fb_head(struct vnt_usb_send_context *tx_context,
437437
u16 rts_frame_len = 20;
438438

439439
vnt_get_phy_field(priv, rts_frame_len, priv->top_cck_basic_rate,
440-
PK_TYPE_11B, &buf->b);
440+
PK_TYPE_11B, &buf->b);
441441
vnt_get_phy_field(priv, rts_frame_len, priv->top_ofdm_basic_rate,
442442
tx_context->pkt_type, &buf->a);
443443

@@ -683,9 +683,9 @@ static u16 vnt_rxtx_ab(struct vnt_usb_send_context *tx_context,
683683
}
684684

685685
static u16 vnt_generate_tx_parameter(struct vnt_usb_send_context *tx_context,
686-
struct vnt_tx_buffer *tx_buffer,
687-
struct vnt_mic_hdr **mic_hdr, u32 need_mic,
688-
bool need_rts)
686+
struct vnt_tx_buffer *tx_buffer,
687+
struct vnt_mic_hdr **mic_hdr, u32 need_mic,
688+
bool need_rts)
689689
{
690690

691691
if (tx_context->pkt_type == PK_TYPE_11GB ||
@@ -1024,7 +1024,7 @@ static int vnt_beacon_xmit(struct vnt_private *priv,
10241024

10251025
/* Get SignalField,ServiceField,Length */
10261026
vnt_get_phy_field(priv, frame_size, current_rate,
1027-
PK_TYPE_11A, &short_head->ab);
1027+
PK_TYPE_11A, &short_head->ab);
10281028

10291029
/* Get Duration and TimeStampOff */
10301030
short_head->duration = vnt_get_duration_le(priv,
@@ -1101,7 +1101,7 @@ int vnt_beacon_make(struct vnt_private *priv, struct ieee80211_vif *vif)
11011101
}
11021102

11031103
int vnt_beacon_enable(struct vnt_private *priv, struct ieee80211_vif *vif,
1104-
struct ieee80211_bss_conf *conf)
1104+
struct ieee80211_bss_conf *conf)
11051105
{
11061106
vnt_mac_reg_bits_off(priv, MAC_REG_TCR, TCR_AUTOBCNTX);
11071107

0 commit comments

Comments
 (0)