staging: wilc1000: rename u8LinkSpeed of struct rf_info
authorLeo Kim <leo.kim@atmel.com>
Thu, 29 Oct 2015 03:05:29 +0000 (12:05 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
This patch renames u8LinkSpeed of struct rf_info to link_speed
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c
drivers/staging/wilc1000/host_interface.h
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c

index 3b24a27704e4aea2ef80d442c89840b9fa897ec4..539911528a37e0518594717445676c98190e0590 100644 (file)
@@ -2138,7 +2138,7 @@ s32 Handle_GetStatistics(struct host_if_drv *hif_drv, struct rf_info *pstrStatis
        strWIDList[u32WidsCount].id = WID_LINKSPEED;
        strWIDList[u32WidsCount].type = WID_CHAR;
        strWIDList[u32WidsCount].size = sizeof(char);
-       strWIDList[u32WidsCount].val = (s8 *)&pstrStatistics->u8LinkSpeed;
+       strWIDList[u32WidsCount].val = (s8 *)&pstrStatistics->link_speed;
        u32WidsCount++;
 
        strWIDList[u32WidsCount].id = WID_RSSI;
index 2dfd7f0d6b708b8812171396857d6935d5cb4035..cef952a1ef033eb162a2304ec19cf2a9cd8ee0d6 100644 (file)
@@ -53,7 +53,7 @@
 #define NUM_CONCURRENT_IFC                     2
 
 struct rf_info {
-       u8 u8LinkSpeed;
+       u8 link_speed;
        s8 s8RSSI;
        u32 u32TxCount;
        u32 u32RxCount;
index 3e9501727812c589ba986304cb4689eb87bb4146..29b769f834fdf326e109572cd83d39d7ec61daaa 100644 (file)
@@ -1570,11 +1570,12 @@ static int get_station(struct wiphy *wiphy, struct net_device *dev,
                sinfo->rx_packets   =  strStatistics.u32RxCount;
                sinfo->tx_packets   =  strStatistics.u32TxCount + strStatistics.u32TxFailureCount;
                sinfo->tx_failed        =  strStatistics.u32TxFailureCount;
-               sinfo->txrate.legacy = strStatistics.u8LinkSpeed * 10;
+               sinfo->txrate.legacy = strStatistics.link_speed * 10;
 
-               if ((strStatistics.u8LinkSpeed > TCP_ACK_FILTER_LINK_SPEED_THRESH) && (strStatistics.u8LinkSpeed != DEFAULT_LINK_SPEED))
+               if ((strStatistics.link_speed > TCP_ACK_FILTER_LINK_SPEED_THRESH) &&
+                   (strStatistics.link_speed != DEFAULT_LINK_SPEED))
                        Enable_TCP_ACK_Filter(true);
-               else if (strStatistics.u8LinkSpeed != DEFAULT_LINK_SPEED)
+               else if (strStatistics.link_speed != DEFAULT_LINK_SPEED)
                        Enable_TCP_ACK_Filter(false);
 
                PRINT_D(CORECONFIG_DBG, "*** stats[%d][%d][%d][%d][%d]\n", sinfo->signal, sinfo->rx_packets, sinfo->tx_packets,