staging: wilc1000: rename au8bssid in struct connect_info
authorChaehyun Lim <chaehyun.lim@gmail.com>
Thu, 25 Feb 2016 00:15:43 +0000 (09:15 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Feb 2016 06:30:09 +0000 (22:30 -0800)
This patch renames au8bssid to bssid to remove au8 prefix in struct
connect_info. 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/coreconfigurator.h
drivers/staging/wilc1000/host_interface.c
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c

index 0f39bc85b12653e54c907eecac25ac3cf50249ea..a32f4660b7c7629021cc2971597fe4f1e96a683f 100644 (file)
@@ -106,7 +106,7 @@ struct connect_resp_info {
 };
 
 struct connect_info {
-       u8 au8bssid[6];
+       u8 bssid[6];
        u8 *pu8ReqIEs;
        size_t ReqIEsLen;
        u8 *pu8RespIEs;
index b093304a783b03d56fca9248254f2a606e7ff606..4a1bad879ac714bb323e2a9a9310d902f3e3daca 100644 (file)
@@ -1155,7 +1155,7 @@ ERRORHANDLER:
 
                if (pstrHostIFconnectAttr->result) {
                        if (pstrHostIFconnectAttr->bssid)
-                               memcpy(strConnectInfo.au8bssid, pstrHostIFconnectAttr->bssid, 6);
+                               memcpy(strConnectInfo.bssid, pstrHostIFconnectAttr->bssid, 6);
 
                        if (pstrHostIFconnectAttr->ies) {
                                strConnectInfo.ReqIEsLen = pstrHostIFconnectAttr->ies_len;
@@ -1260,7 +1260,7 @@ static s32 Handle_ConnectTimeout(struct wilc_vif *vif)
 
        if (hif_drv->usr_conn_req.conn_result) {
                if (hif_drv->usr_conn_req.bssid) {
-                       memcpy(strConnectInfo.au8bssid,
+                       memcpy(strConnectInfo.bssid,
                               hif_drv->usr_conn_req.bssid, 6);
                }
 
@@ -1492,7 +1492,7 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif,
                        }
 
                        if (hif_drv->usr_conn_req.bssid) {
-                               memcpy(strConnectInfo.au8bssid, hif_drv->usr_conn_req.bssid, 6);
+                               memcpy(strConnectInfo.bssid, hif_drv->usr_conn_req.bssid, 6);
 
                                if ((u8MacStatus == MAC_CONNECTED) &&
                                    (strConnectInfo.u16ConnectStatus == SUCCESSFUL_STATUSCODE)) {
index f6838c65b759ea0b3a36cb4469b597e0da0c3662..fd16de547827a83373559d3f95c58a8f809a5fbc 100644 (file)
@@ -521,12 +521,12 @@ static void CfgConnectResult(enum conn_event enuConnDisconnEvent,
                        bool bNeedScanRefresh = false;
                        u32 i;
 
-                       memcpy(priv->au8AssociatedBss, pstrConnectInfo->au8bssid, ETH_ALEN);
+                       memcpy(priv->au8AssociatedBss, pstrConnectInfo->bssid, ETH_ALEN);
 
 
                        for (i = 0; i < last_scanned_cnt; i++) {
                                if (memcmp(last_scanned_shadow[i].bssid,
-                                          pstrConnectInfo->au8bssid,
+                                          pstrConnectInfo->bssid,
                                           ETH_ALEN) == 0) {
                                        unsigned long now = jiffies;
 
@@ -543,7 +543,7 @@ static void CfgConnectResult(enum conn_event enuConnDisconnEvent,
                                refresh_scan(priv, 1, true);
                }
 
-               cfg80211_connect_result(dev, pstrConnectInfo->au8bssid,
+               cfg80211_connect_result(dev, pstrConnectInfo->bssid,
                                        pstrConnectInfo->pu8ReqIEs, pstrConnectInfo->ReqIEsLen,
                                        pstrConnectInfo->pu8RespIEs, pstrConnectInfo->u16RespIEsLen,
                                        u16ConnectStatus, GFP_KERNEL);