staging: vt6656: struct vnt_private replace byTopCCKBasicRate with top_cck_basic_rate
authorMalcolm Priestley <tvboxspy@gmail.com>
Sun, 20 Jul 2014 14:33:15 +0000 (15:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Jul 2014 19:16:28 +0000 (12:16 -0700)
Removing type prefix and camel case.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/card.c
drivers/staging/vt6656/device.h
drivers/staging/vt6656/main_usb.c
drivers/staging/vt6656/rxtx.c

index 3217f7700d0e49b80bac62cfef9fc01d4fe60c08..8e00377c26ec848dbb01eba9bc4d4388d6c31d33 100644 (file)
@@ -471,7 +471,7 @@ void vnt_update_top_rates(struct vnt_private *priv)
                        break;
        }
 
-       priv->byTopCCKBasicRate = top_cck;
+       priv->top_cck_basic_rate = top_cck;
 }
 
 int vnt_ofdm_min_rate(struct vnt_private *priv)
index 951abc2b19721a9cd0641f5b556f09316e6df954..dcb57dcb730846cfe5cb1fe31cfb54edb5f6576c 100644 (file)
@@ -334,7 +334,7 @@ struct vnt_private {
        u8 packet_type; /* 0:11a 1:11b 2:11gb 3:11ga */
        u32 basic_rates;
        u8 top_ofdm_basic_rate;
-       u8 byTopCCKBasicRate;
+       u8 top_cck_basic_rate;
 
        u8 abyEEPROM[EEP_MAX_CONTEXT_SIZE];  /*u32 alignment */
 
index a02a028cdc675f59570420749f744a811c1e0e4e..f5227eea528dbce40127fcfc5c99e5322aa37d8e 100644 (file)
@@ -196,7 +196,7 @@ static int device_init_registers(struct vnt_private *priv)
        /* do MACbSoftwareReset in MACvInitialize */
 
        priv->top_ofdm_basic_rate = RATE_24M;
-       priv->byTopCCKBasicRate = RATE_1M;
+       priv->top_cck_basic_rate = RATE_1M;
 
        /* target to IF pin while programming to RF chip */
        priv->byCurPwr = 0xFF;
index ba2d550505011eb9d40244360c7d7fbcead605f3..79ce396c5ba18db26f7cb816ef43b7169d11f93f 100644 (file)
@@ -119,7 +119,7 @@ static u32 vnt_get_rsvtime(struct vnt_private *priv, u8 pkt_type,
 
        if (pkt_type == PK_TYPE_11B)
                ack_time = vnt_get_frame_time(priv->byPreambleType, pkt_type,
-                                       14, (u16)priv->byTopCCKBasicRate);
+                                       14, (u16)priv->top_cck_basic_rate);
        else
                ack_time = vnt_get_frame_time(priv->byPreambleType, pkt_type,
                                        14, (u16)priv->top_ofdm_basic_rate);
@@ -149,14 +149,14 @@ static __le16 vnt_get_rtscts_rsvtime_le(struct vnt_private *priv,
 
        if (rsv_type == 0) {
                rts_time = vnt_get_frame_time(priv->byPreambleType,
-                       pkt_type, 20, priv->byTopCCKBasicRate);
+                       pkt_type, 20, priv->top_cck_basic_rate);
                cts_time = ack_time = vnt_get_frame_time(priv->byPreambleType,
-                       pkt_type, 14, priv->byTopCCKBasicRate);
+                       pkt_type, 14, priv->top_cck_basic_rate);
        } else if (rsv_type == 1) {
                rts_time = vnt_get_frame_time(priv->byPreambleType,
-                       pkt_type, 20, priv->byTopCCKBasicRate);
+                       pkt_type, 20, priv->top_cck_basic_rate);
                cts_time = vnt_get_frame_time(priv->byPreambleType, pkt_type,
-                       14, priv->byTopCCKBasicRate);
+                       14, priv->top_cck_basic_rate);
                ack_time = vnt_get_frame_time(priv->byPreambleType, pkt_type,
                        14, priv->top_ofdm_basic_rate);
        } else if (rsv_type == 2) {
@@ -166,7 +166,7 @@ static __le16 vnt_get_rtscts_rsvtime_le(struct vnt_private *priv,
                        pkt_type, 14, priv->top_ofdm_basic_rate);
        } else if (rsv_type == 3) {
                cts_time = vnt_get_frame_time(priv->byPreambleType, pkt_type,
-                       14, priv->byTopCCKBasicRate);
+                       14, priv->top_cck_basic_rate);
                ack_time = vnt_get_frame_time(priv->byPreambleType, pkt_type,
                        14, priv->top_ofdm_basic_rate);
 
@@ -188,7 +188,7 @@ static __le16 vnt_get_duration_le(struct vnt_private *piv,
        if (need_ack) {
                if (pkt_type == PK_TYPE_11B)
                        ack_time = vnt_get_frame_time(piv->byPreambleType,
-                               pkt_type, 14, piv->byTopCCKBasicRate);
+                               pkt_type, 14, piv->top_cck_basic_rate);
                else
                        ack_time = vnt_get_frame_time(piv->byPreambleType,
                                pkt_type, 14, piv->top_ofdm_basic_rate);
@@ -210,7 +210,7 @@ static __le16 vnt_get_rtscts_duration_le(struct vnt_private *priv, u8 dur_type,
        case RTSDUR_BA_F0:
        case RTSDUR_BA_F1:
                cts_time = vnt_get_frame_time(priv->byPreambleType,
-                               pkt_type, 14, priv->byTopCCKBasicRate);
+                               pkt_type, 14, priv->top_cck_basic_rate);
                dur_time = cts_time + 2 * priv->sifs +
                        vnt_get_rsvtime(priv, pkt_type,
                                                frame_length, rate, need_ack);
@@ -264,7 +264,7 @@ static u16 vnt_rxtx_datahead_g(struct vnt_usb_send_context *tx_context,
 
        /* Get SignalField,ServiceField,Length */
        vnt_get_phy_field(priv, frame_len, rate, pkt_type, &buf->a);
-       vnt_get_phy_field(priv, frame_len, priv->byTopCCKBasicRate,
+       vnt_get_phy_field(priv, frame_len, priv->top_cck_basic_rate,
                                                        PK_TYPE_11B, &buf->b);
 
        /* Get Duration and TimeStamp */
@@ -281,7 +281,7 @@ static u16 vnt_rxtx_datahead_g(struct vnt_usb_send_context *tx_context,
 
        buf->time_stamp_off_a = vnt_time_stamp_off(priv, rate);
        buf->time_stamp_off_b = vnt_time_stamp_off(priv,
-                                       priv->byTopCCKBasicRate);
+                                       priv->top_cck_basic_rate);
 
        tx_context->tx_hdr_size = vnt_mac_hdr_pos(tx_context, &buf->hdr);
 
@@ -297,7 +297,7 @@ static u16 vnt_rxtx_datahead_g_fb(struct vnt_usb_send_context *tx_context,
        /* Get SignalField,ServiceField,Length */
        vnt_get_phy_field(priv, frame_len, rate, pkt_type, &buf->a);
 
-       vnt_get_phy_field(priv, frame_len, priv->byTopCCKBasicRate,
+       vnt_get_phy_field(priv, frame_len, priv->top_cck_basic_rate,
                                                PK_TYPE_11B, &buf->b);
 
        /* Get Duration and TimeStamp */
@@ -309,7 +309,7 @@ static u16 vnt_rxtx_datahead_g_fb(struct vnt_usb_send_context *tx_context,
 
        buf->time_stamp_off_a = vnt_time_stamp_off(priv, rate);
        buf->time_stamp_off_b = vnt_time_stamp_off(priv,
-                                               priv->byTopCCKBasicRate);
+                                               priv->top_cck_basic_rate);
 
        tx_context->tx_hdr_size = vnt_mac_hdr_pos(tx_context, &buf->hdr);
 
@@ -387,13 +387,13 @@ static u16 vnt_rxtx_rts_g_head(struct vnt_usb_send_context *tx_context,
        struct vnt_private *priv = tx_context->priv;
        u16 rts_frame_len = 20;
 
-       vnt_get_phy_field(priv, rts_frame_len, priv->byTopCCKBasicRate,
+       vnt_get_phy_field(priv, rts_frame_len, priv->top_cck_basic_rate,
                PK_TYPE_11B, &buf->b);
        vnt_get_phy_field(priv, rts_frame_len,
                priv->top_ofdm_basic_rate, pkt_type, &buf->a);
 
        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->top_cck_basic_rate, need_ack);
        buf->duration_aa = vnt_get_rtscts_duration_le(priv, RTSDUR_AA,
                frame_len, pkt_type, current_rate, need_ack);
        buf->duration_ba = vnt_get_rtscts_duration_le(priv, RTSDUR_BA,
@@ -412,14 +412,14 @@ static u16 vnt_rxtx_rts_g_fb_head(struct vnt_usb_send_context *tx_context,
        struct vnt_private *priv = tx_context->priv;
        u16 rts_frame_len = 20;
 
-       vnt_get_phy_field(priv, rts_frame_len, priv->byTopCCKBasicRate,
+       vnt_get_phy_field(priv, rts_frame_len, priv->top_cck_basic_rate,
                PK_TYPE_11B, &buf->b);
        vnt_get_phy_field(priv, rts_frame_len,
                priv->top_ofdm_basic_rate, pkt_type, &buf->a);
 
 
        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->top_cck_basic_rate, need_ack);
        buf->duration_aa = vnt_get_rtscts_duration_le(priv, RTSDUR_AA,
                frame_len, pkt_type, current_rate, need_ack);
        buf->duration_ba = vnt_get_rtscts_duration_le(priv, RTSDUR_BA,
@@ -500,7 +500,7 @@ static u16 vnt_fill_cts_head(struct vnt_usb_send_context *tx_context,
                struct vnt_cts_fb *buf = &head->cts_g_fb;
                /* Get SignalField,ServiceField,Length */
                vnt_get_phy_field(priv, cts_frame_len,
-                       priv->byTopCCKBasicRate, PK_TYPE_11B, &buf->b);
+                       priv->top_cck_basic_rate, PK_TYPE_11B, &buf->b);
                buf->duration_ba = vnt_get_rtscts_duration_le(priv, CTSDUR_BA,
                        frame_len, pkt_type,
                        current_rate, need_ack);
@@ -526,7 +526,7 @@ static u16 vnt_fill_cts_head(struct vnt_usb_send_context *tx_context,
                struct vnt_cts *buf = &head->cts_g;
                /* Get SignalField,ServiceField,Length */
                vnt_get_phy_field(priv, cts_frame_len,
-                       priv->byTopCCKBasicRate, PK_TYPE_11B, &buf->b);
+                       priv->top_cck_basic_rate, PK_TYPE_11B, &buf->b);
                /* Get CTSDuration_ba */
                buf->duration_ba = vnt_get_rtscts_duration_le(priv,
                        CTSDUR_BA, frame_len, pkt_type,
@@ -563,7 +563,7 @@ static u16 vnt_rxtx_rts(struct vnt_usb_send_context *tx_context,
        buf->rrv_time_a = vnt_rxtx_rsvtime_le16(priv, pkt_type, frame_size,
                                                        current_rate, need_ack);
        buf->rrv_time_b = vnt_rxtx_rsvtime_le16(priv, PK_TYPE_11B, frame_size,
-                                       priv->byTopCCKBasicRate, need_ack);
+                                       priv->top_cck_basic_rate, need_ack);
 
        if (need_mic)
                head = &tx_head->tx_rts.tx.mic.head;
@@ -588,7 +588,7 @@ static u16 vnt_rxtx_cts(struct vnt_usb_send_context *tx_context,
        buf->rrv_time_a = vnt_rxtx_rsvtime_le16(priv, pkt_type,
                                        frame_size, current_rate, need_ack);
        buf->rrv_time_b = vnt_rxtx_rsvtime_le16(priv, PK_TYPE_11B,
-                               frame_size, priv->byTopCCKBasicRate, need_ack);
+                               frame_size, priv->top_cck_basic_rate, need_ack);
 
        buf->cts_rrv_time_ba = vnt_get_rtscts_rsvtime_le(priv, 3,
                        pkt_type, frame_size, current_rate);