staging: wilc1000: rename handle_connect_timeout() variables to avoid camelCase
Fix 'Avoid camelCase' issue found by checkpatch.pl script. Signed-off-by: Ajay Singh <ajay.kathat@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
697346817e
commit
87ae3a5bd1
|
@ -1182,9 +1182,9 @@ ERRORHANDLER:
|
||||||
static s32 handle_connect_timeout(struct wilc_vif *vif)
|
static s32 handle_connect_timeout(struct wilc_vif *vif)
|
||||||
{
|
{
|
||||||
s32 result = 0;
|
s32 result = 0;
|
||||||
struct connect_info strConnectInfo;
|
struct connect_info info;
|
||||||
struct wid wid;
|
struct wid wid;
|
||||||
u16 u16DummyReasonCode = 0;
|
u16 dummy_reason_code = 0;
|
||||||
struct host_if_drv *hif_drv = vif->hif_drv;
|
struct host_if_drv *hif_drv = vif->hif_drv;
|
||||||
|
|
||||||
if (!hif_drv) {
|
if (!hif_drv) {
|
||||||
|
@ -1196,37 +1196,37 @@ static s32 handle_connect_timeout(struct wilc_vif *vif)
|
||||||
|
|
||||||
scan_while_connected = false;
|
scan_while_connected = false;
|
||||||
|
|
||||||
memset(&strConnectInfo, 0, sizeof(struct connect_info));
|
memset(&info, 0, sizeof(struct connect_info));
|
||||||
|
|
||||||
if (hif_drv->usr_conn_req.conn_result) {
|
if (hif_drv->usr_conn_req.conn_result) {
|
||||||
if (hif_drv->usr_conn_req.bssid) {
|
if (hif_drv->usr_conn_req.bssid) {
|
||||||
memcpy(strConnectInfo.bssid,
|
memcpy(info.bssid,
|
||||||
hif_drv->usr_conn_req.bssid, 6);
|
hif_drv->usr_conn_req.bssid, 6);
|
||||||
}
|
}
|
||||||
|
|
||||||
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;
|
info.req_ies_len = hif_drv->usr_conn_req.ies_len;
|
||||||
strConnectInfo.req_ies = kmalloc(hif_drv->usr_conn_req.ies_len, GFP_KERNEL);
|
info.req_ies = kmalloc(hif_drv->usr_conn_req.ies_len, GFP_KERNEL);
|
||||||
memcpy(strConnectInfo.req_ies,
|
memcpy(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);
|
||||||
}
|
}
|
||||||
|
|
||||||
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,
|
&info,
|
||||||
MAC_DISCONNECTED,
|
MAC_DISCONNECTED,
|
||||||
NULL,
|
NULL,
|
||||||
hif_drv->usr_conn_req.arg);
|
hif_drv->usr_conn_req.arg);
|
||||||
|
|
||||||
kfree(strConnectInfo.req_ies);
|
kfree(info.req_ies);
|
||||||
strConnectInfo.req_ies = NULL;
|
info.req_ies = NULL;
|
||||||
} else {
|
} else {
|
||||||
netdev_err(vif->ndev, "Connect callback is NULL\n");
|
netdev_err(vif->ndev, "Connect callback is NULL\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
wid.id = (u16)WID_DISCONNECT;
|
wid.id = (u16)WID_DISCONNECT;
|
||||||
wid.type = WID_CHAR;
|
wid.type = WID_CHAR;
|
||||||
wid.val = (s8 *)&u16DummyReasonCode;
|
wid.val = (s8 *)&dummy_reason_code;
|
||||||
wid.size = sizeof(char);
|
wid.size = sizeof(char);
|
||||||
|
|
||||||
result = wilc_send_config_pkt(vif, SET_CFG, &wid, 1,
|
result = wilc_send_config_pkt(vif, SET_CFG, &wid, 1,
|
||||||
|
|
Loading…
Reference in New Issue