staging: wilc1000: rename u16reason in disconnect_info
authorChaehyun Lim <chaehyun.lim@gmail.com>
Thu, 25 Feb 2016 00:15:50 +0000 (09:15 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Feb 2016 06:30:09 +0000 (22:30 -0800)
This patch renames u16reason to reason to remove u16 prefix. There is no
need to use prefix to show data type.

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 6256d7198546ef93b467836ea0e718a0441b61db..63eca24c581faad35e60f82f7633844744c0c79e 100644 (file)
@@ -115,7 +115,7 @@ struct connect_info {
 };
 
 struct disconnect_info {
-       u16 u16reason;
+       u16 reason;
        u8 *ie;
        size_t ie_len;
 };
index 4cdd3403e24911a1f390eb702309ab9c58b43b9a..a6b7a22b2a8871b6caac59d44c13d83cce35a0d8 100644 (file)
@@ -1552,7 +1552,7 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif,
                                Handle_ScanDone(vif, SCAN_EVENT_ABORTED);
                        }
 
-                       strDisconnectNotifInfo.u16reason = 0;
+                       strDisconnectNotifInfo.reason = 0;
                        strDisconnectNotifInfo.ie = NULL;
                        strDisconnectNotifInfo.ie_len = 0;
 
@@ -1889,7 +1889,7 @@ static void Handle_Disconnect(struct wilc_vif *vif)
 
                memset(&strDisconnectNotifInfo, 0, sizeof(struct disconnect_info));
 
-               strDisconnectNotifInfo.u16reason = 0;
+               strDisconnectNotifInfo.reason = 0;
                strDisconnectNotifInfo.ie = NULL;
                strDisconnectNotifInfo.ie_len = 0;
 
index 83963a19bbe33b2c6e944d932d8b02d781b4cc1e..378c3505e2b090b414f1840ea8fd1833e8a80a50 100644 (file)
@@ -559,11 +559,11 @@ static void CfgConnectResult(enum conn_event enuConnDisconnEvent,
                if (!pstrWFIDrv->p2p_connect)
                        wlan_channel = INVALID_CHANNEL;
                if ((pstrWFIDrv->IFC_UP) && (dev == wl->vif[1]->ndev)) {
-                       pstrDisconnectNotifInfo->u16reason = 3;
+                       pstrDisconnectNotifInfo->reason = 3;
                } else if ((!pstrWFIDrv->IFC_UP) && (dev == wl->vif[1]->ndev)) {
-                       pstrDisconnectNotifInfo->u16reason = 1;
+                       pstrDisconnectNotifInfo->reason = 1;
                }
-               cfg80211_disconnected(dev, pstrDisconnectNotifInfo->u16reason, pstrDisconnectNotifInfo->ie,
+               cfg80211_disconnected(dev, pstrDisconnectNotifInfo->reason, pstrDisconnectNotifInfo->ie,
                                      pstrDisconnectNotifInfo->ie_len, false,
                                      GFP_KERNEL);
        }