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

staging: wilc1000: rename strConnectInfo to avoid camelCase

Fix 'Avoid camelCase' issue found by checkpatch.pl script.
Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
Reviewed-by: default avatarClaudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ec90c21b
...@@ -1134,32 +1134,32 @@ static s32 handle_connect(struct wilc_vif *vif, ...@@ -1134,32 +1134,32 @@ static s32 handle_connect(struct wilc_vif *vif,
ERRORHANDLER: ERRORHANDLER:
if (result) { if (result) {
struct connect_info strConnectInfo; struct connect_info conn_info;
del_timer(&hif_drv->connect_timer); del_timer(&hif_drv->connect_timer);
memset(&strConnectInfo, 0, sizeof(struct connect_info)); memset(&conn_info, 0, sizeof(struct connect_info));
if (conn_attr->result) { if (conn_attr->result) {
if (conn_attr->bssid) if (conn_attr->bssid)
memcpy(strConnectInfo.bssid, conn_attr->bssid, 6); memcpy(conn_info.bssid, conn_attr->bssid, 6);
if (conn_attr->ies) { if (conn_attr->ies) {
strConnectInfo.req_ies_len = conn_attr->ies_len; conn_info.req_ies_len = conn_attr->ies_len;
strConnectInfo.req_ies = kmalloc(conn_attr->ies_len, GFP_KERNEL); conn_info.req_ies = kmalloc(conn_attr->ies_len, GFP_KERNEL);
memcpy(strConnectInfo.req_ies, memcpy(conn_info.req_ies,
conn_attr->ies, conn_attr->ies,
conn_attr->ies_len); conn_attr->ies_len);
} }
conn_attr->result(CONN_DISCONN_EVENT_CONN_RESP, conn_attr->result(CONN_DISCONN_EVENT_CONN_RESP,
&strConnectInfo, &conn_info,
MAC_DISCONNECTED, MAC_DISCONNECTED,
NULL, NULL,
conn_attr->arg); conn_attr->arg);
hif_drv->hif_state = HOST_IF_IDLE; hif_drv->hif_state = HOST_IF_IDLE;
kfree(strConnectInfo.req_ies); kfree(conn_info.req_ies);
strConnectInfo.req_ies = NULL; conn_info.req_ies = NULL;
} else { } else {
netdev_err(vif->ndev, "Connect callback is NULL\n"); netdev_err(vif->ndev, "Connect callback is NULL\n");
...@@ -1343,7 +1343,7 @@ static s32 handle_rcvd_gnrl_async_info(struct wilc_vif *vif, ...@@ -1343,7 +1343,7 @@ static s32 handle_rcvd_gnrl_async_info(struct wilc_vif *vif,
u8 u8MacStatus; u8 u8MacStatus;
u8 u8MacStatusReasonCode; u8 u8MacStatusReasonCode;
u8 u8MacStatusAdditionalInfo; u8 u8MacStatusAdditionalInfo;
struct connect_info strConnectInfo; struct connect_info conn_info;
struct disconnect_info disconn_info; struct disconnect_info disconn_info;
s32 s32Err = 0; s32 s32Err = 0;
struct host_if_drv *hif_drv = vif->hif_drv; struct host_if_drv *hif_drv = vif->hif_drv;
...@@ -1380,7 +1380,7 @@ static s32 handle_rcvd_gnrl_async_info(struct wilc_vif *vif, ...@@ -1380,7 +1380,7 @@ static s32 handle_rcvd_gnrl_async_info(struct wilc_vif *vif,
u32 u32RcvdAssocRespInfoLen = 0; u32 u32RcvdAssocRespInfoLen = 0;
struct connect_resp_info *pstrConnectRespInfo = NULL; struct connect_resp_info *pstrConnectRespInfo = NULL;
memset(&strConnectInfo, 0, sizeof(struct connect_info)); memset(&conn_info, 0, sizeof(struct connect_info));
if (u8MacStatus == MAC_CONNECTED) { if (u8MacStatus == MAC_CONNECTED) {
memset(rcv_assoc_resp, 0, MAX_ASSOC_RESP_FRAME_SIZE); memset(rcv_assoc_resp, 0, MAX_ASSOC_RESP_FRAME_SIZE);
...@@ -1396,12 +1396,12 @@ static s32 handle_rcvd_gnrl_async_info(struct wilc_vif *vif, ...@@ -1396,12 +1396,12 @@ static s32 handle_rcvd_gnrl_async_info(struct wilc_vif *vif,
if (s32Err) { if (s32Err) {
netdev_err(vif->ndev, "wilc_parse_assoc_resp_info() returned error %d\n", s32Err); netdev_err(vif->ndev, "wilc_parse_assoc_resp_info() returned error %d\n", s32Err);
} else { } else {
strConnectInfo.status = pstrConnectRespInfo->status; conn_info.status = pstrConnectRespInfo->status;
if (strConnectInfo.status == SUCCESSFUL_STATUSCODE && pstrConnectRespInfo->ies) { if (conn_info.status == SUCCESSFUL_STATUSCODE && pstrConnectRespInfo->ies) {
strConnectInfo.resp_ies_len = pstrConnectRespInfo->ies_len; conn_info.resp_ies_len = pstrConnectRespInfo->ies_len;
strConnectInfo.resp_ies = kmalloc(pstrConnectRespInfo->ies_len, GFP_KERNEL); conn_info.resp_ies = kmalloc(pstrConnectRespInfo->ies_len, GFP_KERNEL);
memcpy(strConnectInfo.resp_ies, pstrConnectRespInfo->ies, memcpy(conn_info.resp_ies, pstrConnectRespInfo->ies,
pstrConnectRespInfo->ies_len); pstrConnectRespInfo->ies_len);
} }
...@@ -1414,7 +1414,7 @@ static s32 handle_rcvd_gnrl_async_info(struct wilc_vif *vif, ...@@ -1414,7 +1414,7 @@ static s32 handle_rcvd_gnrl_async_info(struct wilc_vif *vif,
} }
if (u8MacStatus == MAC_CONNECTED && if (u8MacStatus == MAC_CONNECTED &&
strConnectInfo.status != SUCCESSFUL_STATUSCODE) { conn_info.status != SUCCESSFUL_STATUSCODE) {
netdev_err(vif->ndev, "Received MAC status is MAC_CONNECTED while the received status code in Asoc Resp is not SUCCESSFUL_STATUSCODE\n"); netdev_err(vif->ndev, "Received MAC status is MAC_CONNECTED while the received status code in Asoc Resp is not SUCCESSFUL_STATUSCODE\n");
eth_zero_addr(wilc_connected_ssid); eth_zero_addr(wilc_connected_ssid);
} else if (u8MacStatus == MAC_DISCONNECTED) { } else if (u8MacStatus == MAC_DISCONNECTED) {
...@@ -1423,32 +1423,32 @@ static s32 handle_rcvd_gnrl_async_info(struct wilc_vif *vif, ...@@ -1423,32 +1423,32 @@ static s32 handle_rcvd_gnrl_async_info(struct wilc_vif *vif,
} }
if (hif_drv->usr_conn_req.bssid) { if (hif_drv->usr_conn_req.bssid) {
memcpy(strConnectInfo.bssid, hif_drv->usr_conn_req.bssid, 6); memcpy(conn_info.bssid, hif_drv->usr_conn_req.bssid, 6);
if (u8MacStatus == MAC_CONNECTED && if (u8MacStatus == MAC_CONNECTED &&
strConnectInfo.status == SUCCESSFUL_STATUSCODE) { conn_info.status == SUCCESSFUL_STATUSCODE) {
memcpy(hif_drv->assoc_bssid, memcpy(hif_drv->assoc_bssid,
hif_drv->usr_conn_req.bssid, ETH_ALEN); hif_drv->usr_conn_req.bssid, ETH_ALEN);
} }
} }
if (hif_drv->usr_conn_req.ies) { if (hif_drv->usr_conn_req.ies) {
strConnectInfo.req_ies_len = hif_drv->usr_conn_req.ies_len; conn_info.req_ies_len = hif_drv->usr_conn_req.ies_len;
strConnectInfo.req_ies = kmalloc(hif_drv->usr_conn_req.ies_len, GFP_KERNEL); conn_info.req_ies = kmalloc(hif_drv->usr_conn_req.ies_len, GFP_KERNEL);
memcpy(strConnectInfo.req_ies, memcpy(conn_info.req_ies,
hif_drv->usr_conn_req.ies, hif_drv->usr_conn_req.ies,
hif_drv->usr_conn_req.ies_len); hif_drv->usr_conn_req.ies_len);
} }
del_timer(&hif_drv->connect_timer); del_timer(&hif_drv->connect_timer);
hif_drv->usr_conn_req.conn_result(CONN_DISCONN_EVENT_CONN_RESP, hif_drv->usr_conn_req.conn_result(CONN_DISCONN_EVENT_CONN_RESP,
&strConnectInfo, &conn_info,
u8MacStatus, u8MacStatus,
NULL, NULL,
hif_drv->usr_conn_req.arg); hif_drv->usr_conn_req.arg);
if (u8MacStatus == MAC_CONNECTED && if (u8MacStatus == MAC_CONNECTED &&
strConnectInfo.status == SUCCESSFUL_STATUSCODE) { conn_info.status == SUCCESSFUL_STATUSCODE) {
wilc_set_power_mgmt(vif, 0, 0); wilc_set_power_mgmt(vif, 0, 0);
hif_drv->hif_state = HOST_IF_CONNECTED; hif_drv->hif_state = HOST_IF_CONNECTED;
...@@ -1461,11 +1461,11 @@ static s32 handle_rcvd_gnrl_async_info(struct wilc_vif *vif, ...@@ -1461,11 +1461,11 @@ static s32 handle_rcvd_gnrl_async_info(struct wilc_vif *vif,
scan_while_connected = false; scan_while_connected = false;
} }
kfree(strConnectInfo.resp_ies); kfree(conn_info.resp_ies);
strConnectInfo.resp_ies = NULL; conn_info.resp_ies = NULL;
kfree(strConnectInfo.req_ies); kfree(conn_info.req_ies);
strConnectInfo.req_ies = NULL; conn_info.req_ies = NULL;
hif_drv->usr_conn_req.ssid_len = 0; hif_drv->usr_conn_req.ssid_len = 0;
kfree(hif_drv->usr_conn_req.ssid); kfree(hif_drv->usr_conn_req.ssid);
hif_drv->usr_conn_req.ssid = NULL; hif_drv->usr_conn_req.ssid = NULL;
......
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