mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
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: Chaehyun Lim <chaehyun.lim@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
788f6fc081
commit
72216411b0
@ -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)
|
|||||||
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,
|
|||||||
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,
|
|||||||
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)
|
|||||||
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 {
|
|||||||
|
|
||||||
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user