提交 3c8a5b25 编写于 作者: M Malcolm Priestley 提交者: Greg Kroah-Hartman

staging: vt6656: struct vnt_private replace byTopOFDMBasicRate with top_ofdm_basic_rate

Removing type prefix and camel case.
Signed-off-by: NMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 93a73558
...@@ -460,7 +460,7 @@ void vnt_update_top_rates(struct vnt_private *priv) ...@@ -460,7 +460,7 @@ void vnt_update_top_rates(struct vnt_private *priv)
} }
} }
priv->byTopOFDMBasicRate = top_ofdm; priv->top_ofdm_basic_rate = top_ofdm;
for (i = RATE_11M;; i--) { for (i = RATE_11M;; i--) {
if (priv->basic_rates & (u16)(1 << i)) { if (priv->basic_rates & (u16)(1 << i)) {
......
...@@ -333,7 +333,7 @@ struct vnt_private { ...@@ -333,7 +333,7 @@ struct vnt_private {
u8 bb_type; /* 0: 11A, 1:11B, 2:11G */ u8 bb_type; /* 0: 11A, 1:11B, 2:11G */
u8 packet_type; /* 0:11a 1:11b 2:11gb 3:11ga */ u8 packet_type; /* 0:11a 1:11b 2:11gb 3:11ga */
u32 basic_rates; u32 basic_rates;
u8 byTopOFDMBasicRate; u8 top_ofdm_basic_rate;
u8 byTopCCKBasicRate; u8 byTopCCKBasicRate;
u8 abyEEPROM[EEP_MAX_CONTEXT_SIZE]; /*u32 alignment */ u8 abyEEPROM[EEP_MAX_CONTEXT_SIZE]; /*u32 alignment */
......
...@@ -195,7 +195,7 @@ static int device_init_registers(struct vnt_private *priv) ...@@ -195,7 +195,7 @@ static int device_init_registers(struct vnt_private *priv)
/* do MACbSoftwareReset in MACvInitialize */ /* do MACbSoftwareReset in MACvInitialize */
priv->byTopOFDMBasicRate = RATE_24M; priv->top_ofdm_basic_rate = RATE_24M;
priv->byTopCCKBasicRate = RATE_1M; priv->byTopCCKBasicRate = RATE_1M;
/* target to IF pin while programming to RF chip */ /* target to IF pin while programming to RF chip */
......
...@@ -122,7 +122,7 @@ static u32 vnt_get_rsvtime(struct vnt_private *priv, u8 pkt_type, ...@@ -122,7 +122,7 @@ static u32 vnt_get_rsvtime(struct vnt_private *priv, u8 pkt_type,
14, (u16)priv->byTopCCKBasicRate); 14, (u16)priv->byTopCCKBasicRate);
else else
ack_time = vnt_get_frame_time(priv->byPreambleType, pkt_type, ack_time = vnt_get_frame_time(priv->byPreambleType, pkt_type,
14, (u16)priv->byTopOFDMBasicRate); 14, (u16)priv->top_ofdm_basic_rate);
if (need_ack) if (need_ack)
return data_time + priv->sifs + ack_time; return data_time + priv->sifs + ack_time;
...@@ -158,17 +158,17 @@ static __le16 vnt_get_rtscts_rsvtime_le(struct vnt_private *priv, ...@@ -158,17 +158,17 @@ static __le16 vnt_get_rtscts_rsvtime_le(struct vnt_private *priv,
cts_time = vnt_get_frame_time(priv->byPreambleType, pkt_type, cts_time = vnt_get_frame_time(priv->byPreambleType, pkt_type,
14, priv->byTopCCKBasicRate); 14, priv->byTopCCKBasicRate);
ack_time = vnt_get_frame_time(priv->byPreambleType, pkt_type, ack_time = vnt_get_frame_time(priv->byPreambleType, pkt_type,
14, priv->byTopOFDMBasicRate); 14, priv->top_ofdm_basic_rate);
} else if (rsv_type == 2) { } else if (rsv_type == 2) {
rts_time = vnt_get_frame_time(priv->byPreambleType, pkt_type, rts_time = vnt_get_frame_time(priv->byPreambleType, pkt_type,
20, priv->byTopOFDMBasicRate); 20, priv->top_ofdm_basic_rate);
cts_time = ack_time = vnt_get_frame_time(priv->byPreambleType, cts_time = ack_time = vnt_get_frame_time(priv->byPreambleType,
pkt_type, 14, priv->byTopOFDMBasicRate); pkt_type, 14, priv->top_ofdm_basic_rate);
} else if (rsv_type == 3) { } else if (rsv_type == 3) {
cts_time = vnt_get_frame_time(priv->byPreambleType, pkt_type, cts_time = vnt_get_frame_time(priv->byPreambleType, pkt_type,
14, priv->byTopCCKBasicRate); 14, priv->byTopCCKBasicRate);
ack_time = vnt_get_frame_time(priv->byPreambleType, pkt_type, ack_time = vnt_get_frame_time(priv->byPreambleType, pkt_type,
14, priv->byTopOFDMBasicRate); 14, priv->top_ofdm_basic_rate);
rrv_time = cts_time + ack_time + data_time + 2 * priv->sifs; rrv_time = cts_time + ack_time + data_time + 2 * priv->sifs;
...@@ -191,7 +191,7 @@ static __le16 vnt_get_duration_le(struct vnt_private *piv, ...@@ -191,7 +191,7 @@ static __le16 vnt_get_duration_le(struct vnt_private *piv,
pkt_type, 14, piv->byTopCCKBasicRate); pkt_type, 14, piv->byTopCCKBasicRate);
else else
ack_time = vnt_get_frame_time(piv->byPreambleType, ack_time = vnt_get_frame_time(piv->byPreambleType,
pkt_type, 14, piv->byTopOFDMBasicRate); pkt_type, 14, piv->top_ofdm_basic_rate);
return cpu_to_le16((u16)(piv->sifs + ack_time)); return cpu_to_le16((u16)(piv->sifs + ack_time));
} }
...@@ -220,7 +220,7 @@ static __le16 vnt_get_rtscts_duration_le(struct vnt_private *priv, u8 dur_type, ...@@ -220,7 +220,7 @@ static __le16 vnt_get_rtscts_duration_le(struct vnt_private *priv, u8 dur_type,
case RTSDUR_AA_F0: case RTSDUR_AA_F0:
case RTSDUR_AA_F1: case RTSDUR_AA_F1:
cts_time = vnt_get_frame_time(priv->byPreambleType, cts_time = vnt_get_frame_time(priv->byPreambleType,
pkt_type, 14, priv->byTopOFDMBasicRate); pkt_type, 14, priv->top_ofdm_basic_rate);
dur_time = cts_time + 2 * priv->sifs + dur_time = cts_time + 2 * priv->sifs +
vnt_get_rsvtime(priv, pkt_type, vnt_get_rsvtime(priv, pkt_type,
frame_length, rate, need_ack); frame_length, rate, need_ack);
...@@ -390,7 +390,7 @@ static u16 vnt_rxtx_rts_g_head(struct vnt_usb_send_context *tx_context, ...@@ -390,7 +390,7 @@ static u16 vnt_rxtx_rts_g_head(struct vnt_usb_send_context *tx_context,
vnt_get_phy_field(priv, rts_frame_len, priv->byTopCCKBasicRate, vnt_get_phy_field(priv, rts_frame_len, priv->byTopCCKBasicRate,
PK_TYPE_11B, &buf->b); PK_TYPE_11B, &buf->b);
vnt_get_phy_field(priv, rts_frame_len, vnt_get_phy_field(priv, rts_frame_len,
priv->byTopOFDMBasicRate, pkt_type, &buf->a); priv->top_ofdm_basic_rate, pkt_type, &buf->a);
buf->duration_bb = vnt_get_rtscts_duration_le(priv, RTSDUR_BB, buf->duration_bb = vnt_get_rtscts_duration_le(priv, RTSDUR_BB,
frame_len, PK_TYPE_11B, priv->byTopCCKBasicRate, need_ack); frame_len, PK_TYPE_11B, priv->byTopCCKBasicRate, need_ack);
...@@ -415,7 +415,7 @@ static u16 vnt_rxtx_rts_g_fb_head(struct vnt_usb_send_context *tx_context, ...@@ -415,7 +415,7 @@ static u16 vnt_rxtx_rts_g_fb_head(struct vnt_usb_send_context *tx_context,
vnt_get_phy_field(priv, rts_frame_len, priv->byTopCCKBasicRate, vnt_get_phy_field(priv, rts_frame_len, priv->byTopCCKBasicRate,
PK_TYPE_11B, &buf->b); PK_TYPE_11B, &buf->b);
vnt_get_phy_field(priv, rts_frame_len, vnt_get_phy_field(priv, rts_frame_len,
priv->byTopOFDMBasicRate, pkt_type, &buf->a); priv->top_ofdm_basic_rate, pkt_type, &buf->a);
buf->duration_bb = vnt_get_rtscts_duration_le(priv, RTSDUR_BB, buf->duration_bb = vnt_get_rtscts_duration_le(priv, RTSDUR_BB,
...@@ -449,7 +449,7 @@ static u16 vnt_rxtx_rts_ab_head(struct vnt_usb_send_context *tx_context, ...@@ -449,7 +449,7 @@ static u16 vnt_rxtx_rts_ab_head(struct vnt_usb_send_context *tx_context,
u16 rts_frame_len = 20; u16 rts_frame_len = 20;
vnt_get_phy_field(priv, rts_frame_len, vnt_get_phy_field(priv, rts_frame_len,
priv->byTopOFDMBasicRate, pkt_type, &buf->ab); priv->top_ofdm_basic_rate, pkt_type, &buf->ab);
buf->duration = vnt_get_rtscts_duration_le(priv, RTSDUR_AA, frame_len, buf->duration = vnt_get_rtscts_duration_le(priv, RTSDUR_AA, frame_len,
pkt_type, current_rate, need_ack); pkt_type, current_rate, need_ack);
...@@ -468,7 +468,7 @@ static u16 vnt_rxtx_rts_a_fb_head(struct vnt_usb_send_context *tx_context, ...@@ -468,7 +468,7 @@ static u16 vnt_rxtx_rts_a_fb_head(struct vnt_usb_send_context *tx_context,
u16 rts_frame_len = 20; u16 rts_frame_len = 20;
vnt_get_phy_field(priv, rts_frame_len, vnt_get_phy_field(priv, rts_frame_len,
priv->byTopOFDMBasicRate, pkt_type, &buf->a); priv->top_ofdm_basic_rate, pkt_type, &buf->a);
buf->duration = vnt_get_rtscts_duration_le(priv, RTSDUR_AA, frame_len, buf->duration = vnt_get_rtscts_duration_le(priv, RTSDUR_AA, frame_len,
pkt_type, current_rate, need_ack); pkt_type, current_rate, need_ack);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册