staging: wilc1000: rename pu8bssid in struct user_conn_req
authorChaehyun Lim <chaehyun.lim@gmail.com>
Fri, 12 Feb 2016 14:04:40 +0000 (23:04 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Feb 2016 00:25:38 +0000 (16:25 -0800)
This patch renames pu8bssid to bssid 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>
drivers/staging/wilc1000/host_interface.c
drivers/staging/wilc1000/host_interface.h

index cd4a0a685b7ff5689221f15f1866044c0cf9853a..7cfc722d6a57d4eb8e60eba005105206d2d28f91 100644 (file)
@@ -965,8 +965,8 @@ static s32 Handle_Connect(struct wilc_vif *vif,
        }
 
        if (pstrHostIFconnectAttr->bssid) {
-               hif_drv->usr_conn_req.pu8bssid = kmalloc(6, GFP_KERNEL);
-               memcpy(hif_drv->usr_conn_req.pu8bssid, pstrHostIFconnectAttr->bssid, 6);
+               hif_drv->usr_conn_req.bssid = kmalloc(6, GFP_KERNEL);
+               memcpy(hif_drv->usr_conn_req.bssid, pstrHostIFconnectAttr->bssid, 6);
        }
 
        hif_drv->usr_conn_req.ssid_len = pstrHostIFconnectAttr->ssid_len;
@@ -1271,9 +1271,9 @@ static s32 Handle_ConnectTimeout(struct wilc_vif *vif)
        memset(&strConnectInfo, 0, sizeof(tstrConnectInfo));
 
        if (hif_drv->usr_conn_req.conn_result) {
-               if (hif_drv->usr_conn_req.pu8bssid) {
+               if (hif_drv->usr_conn_req.bssid) {
                        memcpy(strConnectInfo.au8bssid,
-                              hif_drv->usr_conn_req.pu8bssid, 6);
+                              hif_drv->usr_conn_req.bssid, 6);
                }
 
                if (hif_drv->usr_conn_req.ies) {
@@ -1309,8 +1309,8 @@ static s32 Handle_ConnectTimeout(struct wilc_vif *vif)
        hif_drv->usr_conn_req.ssid_len = 0;
        kfree(hif_drv->usr_conn_req.pu8ssid);
        hif_drv->usr_conn_req.pu8ssid = NULL;
-       kfree(hif_drv->usr_conn_req.pu8bssid);
-       hif_drv->usr_conn_req.pu8bssid = NULL;
+       kfree(hif_drv->usr_conn_req.bssid);
+       hif_drv->usr_conn_req.bssid = NULL;
        hif_drv->usr_conn_req.ies_len = 0;
        kfree(hif_drv->usr_conn_req.ies);
        hif_drv->usr_conn_req.ies = NULL;
@@ -1503,13 +1503,13 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif,
                                eth_zero_addr(wilc_connected_ssid);
                        }
 
-                       if (hif_drv->usr_conn_req.pu8bssid) {
-                               memcpy(strConnectInfo.au8bssid, hif_drv->usr_conn_req.pu8bssid, 6);
+                       if (hif_drv->usr_conn_req.bssid) {
+                               memcpy(strConnectInfo.au8bssid, hif_drv->usr_conn_req.bssid, 6);
 
                                if ((u8MacStatus == MAC_CONNECTED) &&
                                    (strConnectInfo.u16ConnectStatus == SUCCESSFUL_STATUSCODE)) {
                                        memcpy(hif_drv->assoc_bssid,
-                                              hif_drv->usr_conn_req.pu8bssid, ETH_ALEN);
+                                              hif_drv->usr_conn_req.bssid, ETH_ALEN);
                                }
                        }
 
@@ -1550,8 +1550,8 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif,
                        hif_drv->usr_conn_req.ssid_len = 0;
                        kfree(hif_drv->usr_conn_req.pu8ssid);
                        hif_drv->usr_conn_req.pu8ssid = NULL;
-                       kfree(hif_drv->usr_conn_req.pu8bssid);
-                       hif_drv->usr_conn_req.pu8bssid = NULL;
+                       kfree(hif_drv->usr_conn_req.bssid);
+                       hif_drv->usr_conn_req.bssid = NULL;
                        hif_drv->usr_conn_req.ies_len = 0;
                        kfree(hif_drv->usr_conn_req.ies);
                        hif_drv->usr_conn_req.ies = NULL;
@@ -1586,8 +1586,8 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif,
                        hif_drv->usr_conn_req.ssid_len = 0;
                        kfree(hif_drv->usr_conn_req.pu8ssid);
                        hif_drv->usr_conn_req.pu8ssid = NULL;
-                       kfree(hif_drv->usr_conn_req.pu8bssid);
-                       hif_drv->usr_conn_req.pu8bssid = NULL;
+                       kfree(hif_drv->usr_conn_req.bssid);
+                       hif_drv->usr_conn_req.bssid = NULL;
                        hif_drv->usr_conn_req.ies_len = 0;
                        kfree(hif_drv->usr_conn_req.ies);
                        hif_drv->usr_conn_req.ies = NULL;
@@ -1944,8 +1944,8 @@ static void Handle_Disconnect(struct wilc_vif *vif)
                hif_drv->usr_conn_req.ssid_len = 0;
                kfree(hif_drv->usr_conn_req.pu8ssid);
                hif_drv->usr_conn_req.pu8ssid = NULL;
-               kfree(hif_drv->usr_conn_req.pu8bssid);
-               hif_drv->usr_conn_req.pu8bssid = NULL;
+               kfree(hif_drv->usr_conn_req.bssid);
+               hif_drv->usr_conn_req.bssid = NULL;
                hif_drv->usr_conn_req.ies_len = 0;
                kfree(hif_drv->usr_conn_req.ies);
                hif_drv->usr_conn_req.ies = NULL;
index 08c072cd438851c70e0e267666182dc3c6aeec69..18d67e0586bcd2c9d064de6889cf4196e4e96b32 100644 (file)
@@ -203,7 +203,7 @@ struct user_scan_req {
 };
 
 struct user_conn_req {
-       u8 *pu8bssid;
+       u8 *bssid;
        u8 *pu8ssid;
        u8 u8security;
        enum AUTHTYPE auth_type;