Commit b5f9ce64 authored by Ajay Singh's avatar Ajay Singh Committed by Greg Kroah-Hartman

staging: wilc1000: rename variables using camelCase in handle_rcvd_ntwrk_info()

Fix "Avoid camelCase" issue found by checkpatch.pl script.
Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 24701563
...@@ -1248,18 +1248,17 @@ static s32 handle_rcvd_ntwrk_info(struct wilc_vif *vif, ...@@ -1248,18 +1248,17 @@ static s32 handle_rcvd_ntwrk_info(struct wilc_vif *vif,
struct rcvd_net_info *rcvd_info) struct rcvd_net_info *rcvd_info)
{ {
u32 i; u32 i;
bool bNewNtwrkFound; bool found;
s32 result = 0; s32 result = 0;
struct network_info *pstrNetworkInfo = NULL; struct network_info *info = NULL;
void *pJoinParams = NULL; void *params = NULL;
struct host_if_drv *hif_drv = vif->hif_drv; struct host_if_drv *hif_drv = vif->hif_drv;
bNewNtwrkFound = true; found = true;
if (hif_drv->usr_scan_req.scan_result) { if (hif_drv->usr_scan_req.scan_result) {
wilc_parse_network_info(rcvd_info->buffer, &pstrNetworkInfo); wilc_parse_network_info(rcvd_info->buffer, &info);
if (!pstrNetworkInfo || if (!info || !hif_drv->usr_scan_req.scan_result) {
!hif_drv->usr_scan_req.scan_result) {
netdev_err(vif->ndev, "driver is null\n"); netdev_err(vif->ndev, "driver is null\n");
result = -EINVAL; result = -EINVAL;
goto done; goto done;
...@@ -1267,36 +1266,36 @@ static s32 handle_rcvd_ntwrk_info(struct wilc_vif *vif, ...@@ -1267,36 +1266,36 @@ static s32 handle_rcvd_ntwrk_info(struct wilc_vif *vif,
for (i = 0; i < hif_drv->usr_scan_req.rcvd_ch_cnt; i++) { for (i = 0; i < hif_drv->usr_scan_req.rcvd_ch_cnt; i++) {
if (memcmp(hif_drv->usr_scan_req.net_info[i].bssid, if (memcmp(hif_drv->usr_scan_req.net_info[i].bssid,
pstrNetworkInfo->bssid, 6) == 0) { info->bssid, 6) == 0) {
if (pstrNetworkInfo->rssi <= hif_drv->usr_scan_req.net_info[i].rssi) { if (info->rssi <= hif_drv->usr_scan_req.net_info[i].rssi) {
goto done; goto done;
} else { } else {
hif_drv->usr_scan_req.net_info[i].rssi = pstrNetworkInfo->rssi; hif_drv->usr_scan_req.net_info[i].rssi = info->rssi;
bNewNtwrkFound = false; found = false;
break; break;
} }
} }
} }
if (bNewNtwrkFound) { if (found) {
if (hif_drv->usr_scan_req.rcvd_ch_cnt < MAX_NUM_SCANNED_NETWORKS) { if (hif_drv->usr_scan_req.rcvd_ch_cnt < MAX_NUM_SCANNED_NETWORKS) {
hif_drv->usr_scan_req.net_info[hif_drv->usr_scan_req.rcvd_ch_cnt].rssi = pstrNetworkInfo->rssi; hif_drv->usr_scan_req.net_info[hif_drv->usr_scan_req.rcvd_ch_cnt].rssi = info->rssi;
memcpy(hif_drv->usr_scan_req.net_info[hif_drv->usr_scan_req.rcvd_ch_cnt].bssid, memcpy(hif_drv->usr_scan_req.net_info[hif_drv->usr_scan_req.rcvd_ch_cnt].bssid,
pstrNetworkInfo->bssid, 6); info->bssid, 6);
hif_drv->usr_scan_req.rcvd_ch_cnt++; hif_drv->usr_scan_req.rcvd_ch_cnt++;
pstrNetworkInfo->new_network = true; info->new_network = true;
pJoinParams = host_int_parse_join_bss_param(pstrNetworkInfo); params = host_int_parse_join_bss_param(info);
hif_drv->usr_scan_req.scan_result(SCAN_EVENT_NETWORK_FOUND, pstrNetworkInfo, hif_drv->usr_scan_req.scan_result(SCAN_EVENT_NETWORK_FOUND, info,
hif_drv->usr_scan_req.arg, hif_drv->usr_scan_req.arg,
pJoinParams); params);
} }
} else { } else {
pstrNetworkInfo->new_network = false; info->new_network = false;
hif_drv->usr_scan_req.scan_result(SCAN_EVENT_NETWORK_FOUND, pstrNetworkInfo, hif_drv->usr_scan_req.scan_result(SCAN_EVENT_NETWORK_FOUND, info,
hif_drv->usr_scan_req.arg, NULL); hif_drv->usr_scan_req.arg, NULL);
} }
} }
...@@ -1305,9 +1304,9 @@ static s32 handle_rcvd_ntwrk_info(struct wilc_vif *vif, ...@@ -1305,9 +1304,9 @@ static s32 handle_rcvd_ntwrk_info(struct wilc_vif *vif,
kfree(rcvd_info->buffer); kfree(rcvd_info->buffer);
rcvd_info->buffer = NULL; rcvd_info->buffer = NULL;
if (pstrNetworkInfo) { if (info) {
kfree(pstrNetworkInfo->ies); kfree(info->ies);
kfree(pstrNetworkInfo); kfree(info);
} }
return result; return result;
......
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