Commit 0b8bea1c authored by Leo Kim's avatar Leo Kim Committed by Greg Kroah-Hartman

staging: wilc1000: rename pstrNetworkInfo in get_rssi_avg function

This patch renames pstrNetworkInfo to network_info that is
first argument of get_rssi_avg function to avoid camelcase.
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 bdd3460f
...@@ -224,14 +224,14 @@ static void clear_shadow_scan(void) ...@@ -224,14 +224,14 @@ static void clear_shadow_scan(void)
} }
static u32 get_rssi_avg(tstrNetworkInfo *pstrNetworkInfo) static u32 get_rssi_avg(tstrNetworkInfo *network_info)
{ {
u8 i; u8 i;
int rssi_v = 0; int rssi_v = 0;
u8 num_rssi = (pstrNetworkInfo->strRssi.u8Full) ? NUM_RSSI : (pstrNetworkInfo->strRssi.u8Index); u8 num_rssi = (network_info->strRssi.u8Full) ? NUM_RSSI : (network_info->strRssi.u8Index);
for (i = 0; i < num_rssi; i++) for (i = 0; i < num_rssi; i++)
rssi_v += pstrNetworkInfo->strRssi.as8RSSI[i]; rssi_v += network_info->strRssi.as8RSSI[i];
rssi_v /= num_rssi; rssi_v /= num_rssi;
return rssi_v; return rssi_v;
......
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