Commit 5babeecb authored by Leo Kim's avatar Leo Kim Committed by Greg Kroah-Hartman

staging: wilc1000: rename u8LinkSpeed of struct rf_info

This patch renames u8LinkSpeed of struct rf_info to link_speed
to avoid CamelCase naming convention.
Signed-off-by: default avatarLeo Kim <leo.kim@atmel.com>
Signed-off-by: default avatarGlen Lee <glen.lee@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c81f7de8
...@@ -2138,7 +2138,7 @@ s32 Handle_GetStatistics(struct host_if_drv *hif_drv, struct rf_info *pstrStatis ...@@ -2138,7 +2138,7 @@ s32 Handle_GetStatistics(struct host_if_drv *hif_drv, struct rf_info *pstrStatis
strWIDList[u32WidsCount].id = WID_LINKSPEED; strWIDList[u32WidsCount].id = WID_LINKSPEED;
strWIDList[u32WidsCount].type = WID_CHAR; strWIDList[u32WidsCount].type = WID_CHAR;
strWIDList[u32WidsCount].size = sizeof(char); strWIDList[u32WidsCount].size = sizeof(char);
strWIDList[u32WidsCount].val = (s8 *)&pstrStatistics->u8LinkSpeed; strWIDList[u32WidsCount].val = (s8 *)&pstrStatistics->link_speed;
u32WidsCount++; u32WidsCount++;
strWIDList[u32WidsCount].id = WID_RSSI; strWIDList[u32WidsCount].id = WID_RSSI;
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
#define NUM_CONCURRENT_IFC 2 #define NUM_CONCURRENT_IFC 2
struct rf_info { struct rf_info {
u8 u8LinkSpeed; u8 link_speed;
s8 s8RSSI; s8 s8RSSI;
u32 u32TxCount; u32 u32TxCount;
u32 u32RxCount; u32 u32RxCount;
......
...@@ -1570,11 +1570,12 @@ static int get_station(struct wiphy *wiphy, struct net_device *dev, ...@@ -1570,11 +1570,12 @@ static int get_station(struct wiphy *wiphy, struct net_device *dev,
sinfo->rx_packets = strStatistics.u32RxCount; sinfo->rx_packets = strStatistics.u32RxCount;
sinfo->tx_packets = strStatistics.u32TxCount + strStatistics.u32TxFailureCount; sinfo->tx_packets = strStatistics.u32TxCount + strStatistics.u32TxFailureCount;
sinfo->tx_failed = 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); 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); Enable_TCP_ACK_Filter(false);
PRINT_D(CORECONFIG_DBG, "*** stats[%d][%d][%d][%d][%d]\n", sinfo->signal, sinfo->rx_packets, sinfo->tx_packets, PRINT_D(CORECONFIG_DBG, "*** stats[%d][%d][%d][%d][%d]\n", sinfo->signal, sinfo->rx_packets, sinfo->tx_packets,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment