diff options
| author | Leo Kim <leo.kim@atmel.com> | 2015-10-13 13:49:52 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-13 19:55:08 +0300 |
| commit | 2ea158c47544b9229cd110fc2947a51aee60c261 (patch) | |
| tree | 36639fbb9f53057ac84ae3d62cfa7fd7f8abb86b | |
| parent | 8b3c9fa68bd8c243033cb04cca48ac6dc4543e44 (diff) | |
| download | linux-2ea158c47544b9229cd110fc2947a51aee60c261.tar.xz | |
staging: wilc1000: rename pu8IEs of struct connect_attr
This patch renames pu8IEs of struct connect_attr to ies to
avoid CamelCase naming convention.
Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/staging/wilc1000/host_interface.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 80ac60ae229b..5d0e4127590d 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -111,7 +111,7 @@ struct connect_attr { u8 *bssid; u8 *ssid; size_t ssid_len; - u8 *pu8IEs; + u8 *ies; size_t IEsLen; u8 u8security; wilc_connect_result pfConnectResult; @@ -1045,9 +1045,9 @@ static s32 Handle_Connect(struct host_if_drv *hif_drv, } hif_drv->strWILC_UsrConnReq.ConnReqIEsLen = pstrHostIFconnectAttr->IEsLen; - if (pstrHostIFconnectAttr->pu8IEs != NULL) { + if (pstrHostIFconnectAttr->ies != NULL) { hif_drv->strWILC_UsrConnReq.pu8ConnReqIEs = kmalloc(pstrHostIFconnectAttr->IEsLen, GFP_KERNEL); - memcpy(hif_drv->strWILC_UsrConnReq.pu8ConnReqIEs, pstrHostIFconnectAttr->pu8IEs, + memcpy(hif_drv->strWILC_UsrConnReq.pu8ConnReqIEs, pstrHostIFconnectAttr->ies, pstrHostIFconnectAttr->IEsLen); } @@ -1262,11 +1262,11 @@ ERRORHANDLER: if (pstrHostIFconnectAttr->bssid != NULL) memcpy(strConnectInfo.au8bssid, pstrHostIFconnectAttr->bssid, 6); - if (pstrHostIFconnectAttr->pu8IEs != NULL) { + if (pstrHostIFconnectAttr->ies != NULL) { strConnectInfo.ReqIEsLen = pstrHostIFconnectAttr->IEsLen; strConnectInfo.pu8ReqIEs = kmalloc(pstrHostIFconnectAttr->IEsLen, GFP_KERNEL); memcpy(strConnectInfo.pu8ReqIEs, - pstrHostIFconnectAttr->pu8IEs, + pstrHostIFconnectAttr->ies, pstrHostIFconnectAttr->IEsLen); } @@ -1297,9 +1297,9 @@ ERRORHANDLER: pstrHostIFconnectAttr->ssid = NULL; } - if (pstrHostIFconnectAttr->pu8IEs != NULL) { - kfree(pstrHostIFconnectAttr->pu8IEs); - pstrHostIFconnectAttr->pu8IEs = NULL; + if (pstrHostIFconnectAttr->ies != NULL) { + kfree(pstrHostIFconnectAttr->ies); + pstrHostIFconnectAttr->ies = NULL; } if (pu8CurrByte != NULL) @@ -3632,9 +3632,8 @@ s32 host_int_set_join_req(struct host_if_drv *hif_drv, u8 *pu8bssid, if (pu8IEs != NULL) { msg.body.con_info.IEsLen = IEsLen; - msg.body.con_info.pu8IEs = kmalloc(IEsLen, GFP_KERNEL); - memcpy(msg.body.con_info.pu8IEs, - pu8IEs, IEsLen); + msg.body.con_info.ies = kmalloc(IEsLen, GFP_KERNEL); + memcpy(msg.body.con_info.ies, pu8IEs, IEsLen); } if (hif_drv->enuHostIFstate < HOST_IF_CONNECTING) hif_drv->enuHostIFstate = HOST_IF_CONNECTING; |
