OSDN Git Service

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 0f39bc8..a32f466 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 b093304..4a1bad8 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 f6838c6..fd16de5 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);