]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: wilc1000: remove typedef from tstrHiddenNetwork
authorLeo Kim <leo.kim@atmel.com>
Mon, 5 Oct 2015 06:25:37 +0000 (15:25 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Oct 2015 09:56:03 +0000 (10:56 +0100)
This patch removes typedef from the struct tstrHiddenNetwork.
And, rename it to hidden_network.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c
drivers/staging/wilc1000/host_interface.h
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c

index 474f3dcf6e53f88f706778379e83a93381f4a3dd..143a086c05b096537f771beb585dff1d16331324 100644 (file)
@@ -169,7 +169,7 @@ struct scan_attr {
        size_t IEsLen;
        wilc_scan_result pfScanResult;
        void *pvUserArg;
-       tstrHiddenNetwork strHiddenNetwork;
+       struct hidden_network strHiddenNetwork;
 };
 
 /*!
@@ -5715,7 +5715,8 @@ s32 host_int_scan(tstrWILC_WFIDrv *hWFIDrv, u8 u8ScanSource,
                          u8 u8ScanType, u8 *pu8ChnlFreqList,
                          u8 u8ChnlListLen, const u8 *pu8IEs,
                          size_t IEsLen, wilc_scan_result ScanResult,
-                         void *pvUserArg, tstrHiddenNetwork  *pstrHiddenNetwork)
+                         void *pvUserArg,
+                         struct hidden_network *pstrHiddenNetwork)
 {
        s32 s32Error = 0;
        tstrWILC_WFIDrv *pstrWFIDrv = (tstrWILC_WFIDrv *)hWFIDrv;
index c9ea34e17f5d984440ab08138f28e124d1c4bbd9..458b1e1d38ee9b060b197ba86423f41a26788496 100644 (file)
@@ -219,12 +219,11 @@ typedef struct _tstrHiddenNetworkInfo {
 
 } tstrHiddenNetworkInfo;
 
-typedef struct _tstrHiddenNetwork {
+struct hidden_network {
        /* MAX_SSID_LEN */
        tstrHiddenNetworkInfo *pstrHiddenNetworkInfo;
        u8 u8ssidnum;
-
-} tstrHiddenNetwork;
+};
 
 typedef struct {
        /* Scan user call back function */
@@ -873,7 +872,8 @@ s32 host_int_scan(tstrWILC_WFIDrv *hWFIDrv, u8 u8ScanSource,
                          u8 u8ScanType, u8 *pu8ChnlFreqList,
                          u8 u8ChnlListLen, const u8 *pu8IEs,
                          size_t IEsLen, wilc_scan_result ScanResult,
-                         void *pvUserArg, tstrHiddenNetwork *pstrHiddenNetwork);
+                         void *pvUserArg,
+                         struct hidden_network *pstrHiddenNetwork);
 /**
  *  @brief              sets configuration wids values
  *  @details
index 04838f1aadc63ce6fba82b6cbbc2b0dadef2837f..f3720e7fa9928f9cb10314f5ec7d2e4bc158f51b 100644 (file)
@@ -698,7 +698,7 @@ static int scan(struct wiphy *wiphy, struct cfg80211_scan_request *request)
        u32 i;
        s32 s32Error = 0;
        u8 au8ScanChanList[MAX_NUM_SCANNED_NETWORKS];
-       tstrHiddenNetwork strHiddenNetwork;
+       struct hidden_network strHiddenNetwork;
 
        priv = wiphy_priv(wiphy);
 
@@ -727,7 +727,7 @@ static int scan(struct wiphy *wiphy, struct cfg80211_scan_request *request)
                if (request->n_ssids >= 1) {
 
 
-                       strHiddenNetwork.pstrHiddenNetworkInfo = kmalloc(request->n_ssids * sizeof(tstrHiddenNetwork), GFP_KERNEL);
+                       strHiddenNetwork.pstrHiddenNetworkInfo = kmalloc(request->n_ssids * sizeof(struct hidden_network), GFP_KERNEL);
                        strHiddenNetwork.u8ssidnum = request->n_ssids;