Commit 72216411 authored by Chaehyun Lim's avatar Chaehyun Lim Committed by Greg Kroah-Hartman

staging: wilc1000: rename pu8ssid in struct user_conn_req

This patch renames pu8ssid to ssid to remove pu8 prefix in struct
user_conn_req. There is no need to use prefix to show data type of this
variable.
Signed-off-by: default avatarChaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 788f6fc0
...@@ -971,11 +971,11 @@ static s32 Handle_Connect(struct wilc_vif *vif, ...@@ -971,11 +971,11 @@ static s32 Handle_Connect(struct wilc_vif *vif,
hif_drv->usr_conn_req.ssid_len = pstrHostIFconnectAttr->ssid_len; hif_drv->usr_conn_req.ssid_len = pstrHostIFconnectAttr->ssid_len;
if (pstrHostIFconnectAttr->ssid) { if (pstrHostIFconnectAttr->ssid) {
hif_drv->usr_conn_req.pu8ssid = kmalloc(pstrHostIFconnectAttr->ssid_len + 1, GFP_KERNEL); hif_drv->usr_conn_req.ssid = kmalloc(pstrHostIFconnectAttr->ssid_len + 1, GFP_KERNEL);
memcpy(hif_drv->usr_conn_req.pu8ssid, memcpy(hif_drv->usr_conn_req.ssid,
pstrHostIFconnectAttr->ssid, pstrHostIFconnectAttr->ssid,
pstrHostIFconnectAttr->ssid_len); pstrHostIFconnectAttr->ssid_len);
hif_drv->usr_conn_req.pu8ssid[pstrHostIFconnectAttr->ssid_len] = '\0'; hif_drv->usr_conn_req.ssid[pstrHostIFconnectAttr->ssid_len] = '\0';
} }
hif_drv->usr_conn_req.ies_len = pstrHostIFconnectAttr->ies_len; hif_drv->usr_conn_req.ies_len = pstrHostIFconnectAttr->ies_len;
...@@ -1307,8 +1307,8 @@ static s32 Handle_ConnectTimeout(struct wilc_vif *vif) ...@@ -1307,8 +1307,8 @@ static s32 Handle_ConnectTimeout(struct wilc_vif *vif)
PRINT_ER("Failed to send dissconect config packet\n"); PRINT_ER("Failed to send dissconect config packet\n");
hif_drv->usr_conn_req.ssid_len = 0; hif_drv->usr_conn_req.ssid_len = 0;
kfree(hif_drv->usr_conn_req.pu8ssid); kfree(hif_drv->usr_conn_req.ssid);
hif_drv->usr_conn_req.pu8ssid = NULL; hif_drv->usr_conn_req.ssid = NULL;
kfree(hif_drv->usr_conn_req.bssid); kfree(hif_drv->usr_conn_req.bssid);
hif_drv->usr_conn_req.bssid = NULL; hif_drv->usr_conn_req.bssid = NULL;
hif_drv->usr_conn_req.ies_len = 0; hif_drv->usr_conn_req.ies_len = 0;
...@@ -1548,8 +1548,8 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif, ...@@ -1548,8 +1548,8 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif,
kfree(strConnectInfo.pu8ReqIEs); kfree(strConnectInfo.pu8ReqIEs);
strConnectInfo.pu8ReqIEs = NULL; strConnectInfo.pu8ReqIEs = NULL;
hif_drv->usr_conn_req.ssid_len = 0; hif_drv->usr_conn_req.ssid_len = 0;
kfree(hif_drv->usr_conn_req.pu8ssid); kfree(hif_drv->usr_conn_req.ssid);
hif_drv->usr_conn_req.pu8ssid = NULL; hif_drv->usr_conn_req.ssid = NULL;
kfree(hif_drv->usr_conn_req.bssid); kfree(hif_drv->usr_conn_req.bssid);
hif_drv->usr_conn_req.bssid = NULL; hif_drv->usr_conn_req.bssid = NULL;
hif_drv->usr_conn_req.ies_len = 0; hif_drv->usr_conn_req.ies_len = 0;
...@@ -1584,8 +1584,8 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif, ...@@ -1584,8 +1584,8 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif,
eth_zero_addr(hif_drv->assoc_bssid); eth_zero_addr(hif_drv->assoc_bssid);
hif_drv->usr_conn_req.ssid_len = 0; hif_drv->usr_conn_req.ssid_len = 0;
kfree(hif_drv->usr_conn_req.pu8ssid); kfree(hif_drv->usr_conn_req.ssid);
hif_drv->usr_conn_req.pu8ssid = NULL; hif_drv->usr_conn_req.ssid = NULL;
kfree(hif_drv->usr_conn_req.bssid); kfree(hif_drv->usr_conn_req.bssid);
hif_drv->usr_conn_req.bssid = NULL; hif_drv->usr_conn_req.bssid = NULL;
hif_drv->usr_conn_req.ies_len = 0; hif_drv->usr_conn_req.ies_len = 0;
...@@ -1942,8 +1942,8 @@ static void Handle_Disconnect(struct wilc_vif *vif) ...@@ -1942,8 +1942,8 @@ static void Handle_Disconnect(struct wilc_vif *vif)
eth_zero_addr(hif_drv->assoc_bssid); eth_zero_addr(hif_drv->assoc_bssid);
hif_drv->usr_conn_req.ssid_len = 0; hif_drv->usr_conn_req.ssid_len = 0;
kfree(hif_drv->usr_conn_req.pu8ssid); kfree(hif_drv->usr_conn_req.ssid);
hif_drv->usr_conn_req.pu8ssid = NULL; hif_drv->usr_conn_req.ssid = NULL;
kfree(hif_drv->usr_conn_req.bssid); kfree(hif_drv->usr_conn_req.bssid);
hif_drv->usr_conn_req.bssid = NULL; hif_drv->usr_conn_req.bssid = NULL;
hif_drv->usr_conn_req.ies_len = 0; hif_drv->usr_conn_req.ies_len = 0;
......
...@@ -204,7 +204,7 @@ struct user_scan_req { ...@@ -204,7 +204,7 @@ struct user_scan_req {
struct user_conn_req { struct user_conn_req {
u8 *bssid; u8 *bssid;
u8 *pu8ssid; u8 *ssid;
u8 u8security; u8 u8security;
enum AUTHTYPE auth_type; enum AUTHTYPE auth_type;
size_t ssid_len; size_t ssid_len;
......
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