staging: wilc1000: rename u8ssidnum in struct hidden_network
authorChaehyun Lim <chaehyun.lim@gmail.com>
Tue, 5 Jan 2016 04:26:33 +0000 (13:26 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 23:14:05 +0000 (15:14 -0800)
This patch renames u8ssidnum to n_ssids that is a member of struct
hidden_network. There is no need to use u8 prefix to show data type so
just rename it.

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
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c

index 437cb41e8e44e072f4fbdf84d49b8f3f7804d9d8..b0de6e444a3397da239048c5d86ecc5bb857f859 100644 (file)
@@ -829,18 +829,18 @@ static s32 Handle_Scan(struct wilc_vif *vif,
        strWIDList[u32WidsCount].id = (u16)WID_SSID_PROBE_REQ;
        strWIDList[u32WidsCount].type = WID_STR;
 
-       for (i = 0; i < pstrHostIFscanAttr->hidden_network.u8ssidnum; i++)
+       for (i = 0; i < pstrHostIFscanAttr->hidden_network.n_ssids; i++)
                valuesize += ((pstrHostIFscanAttr->hidden_network.net_info[i].ssid_len) + 1);
        pu8HdnNtwrksWidVal = kmalloc(valuesize + 1, GFP_KERNEL);
        strWIDList[u32WidsCount].val = pu8HdnNtwrksWidVal;
        if (strWIDList[u32WidsCount].val) {
                pu8Buffer = strWIDList[u32WidsCount].val;
 
-               *pu8Buffer++ = pstrHostIFscanAttr->hidden_network.u8ssidnum;
+               *pu8Buffer++ = pstrHostIFscanAttr->hidden_network.n_ssids;
 
-               PRINT_D(HOSTINF_DBG, "In Handle_ProbeRequest number of ssid %d\n", pstrHostIFscanAttr->hidden_network.u8ssidnum);
+               PRINT_D(HOSTINF_DBG, "In Handle_ProbeRequest number of ssid %d\n", pstrHostIFscanAttr->hidden_network.n_ssids);
 
-               for (i = 0; i < pstrHostIFscanAttr->hidden_network.u8ssidnum; i++) {
+               for (i = 0; i < pstrHostIFscanAttr->hidden_network.n_ssids; i++) {
                        *pu8Buffer++ = pstrHostIFscanAttr->hidden_network.net_info[i].ssid_len;
                        memcpy(pu8Buffer, pstrHostIFscanAttr->hidden_network.net_info[i].ssid, pstrHostIFscanAttr->hidden_network.net_info[i].ssid_len);
                        pu8Buffer += pstrHostIFscanAttr->hidden_network.net_info[i].ssid_len;
@@ -3692,7 +3692,7 @@ s32 wilc_scan(struct wilc_vif *vif, u8 u8ScanSource, u8 u8ScanType,
 
        if (pstrHiddenNetwork) {
                msg.body.scan_info.hidden_network.net_info = pstrHiddenNetwork->net_info;
-               msg.body.scan_info.hidden_network.u8ssidnum = pstrHiddenNetwork->u8ssidnum;
+               msg.body.scan_info.hidden_network.n_ssids = pstrHiddenNetwork->n_ssids;
 
        } else
                PRINT_D(HOSTINF_DBG, "pstrHiddenNetwork IS EQUAL TO NULL\n");
index a0345e924963722ef2e3644c488ab13ca112519c..9cb08544fa359c9ac11999bf53d7ff7aac0180d2 100644 (file)
@@ -192,7 +192,7 @@ struct hidden_net_info {
 
 struct hidden_network {
        struct hidden_net_info *net_info;
-       u8 u8ssidnum;
+       u8 n_ssids;
 };
 
 struct user_scan_req {
index f0dd38d23a1bf6584264b135f90f714237bb4288..792fdff4bca90caa97d0bc48c8176bbc85bcbc33 100644 (file)
@@ -645,7 +645,7 @@ static int scan(struct wiphy *wiphy, struct cfg80211_scan_request *request)
 
                if (request->n_ssids >= 1) {
                        strHiddenNetwork.net_info = kmalloc(request->n_ssids * sizeof(struct hidden_network), GFP_KERNEL);
-                       strHiddenNetwork.u8ssidnum = request->n_ssids;
+                       strHiddenNetwork.n_ssids = request->n_ssids;
 
 
                        for (i = 0; i < request->n_ssids; i++) {
@@ -656,7 +656,7 @@ static int scan(struct wiphy *wiphy, struct cfg80211_scan_request *request)
                                        strHiddenNetwork.net_info[i].ssid_len = request->ssids[i].ssid_len;
                                } else {
                                        PRINT_D(CFG80211_DBG, "Received one NULL SSID\n");
-                                       strHiddenNetwork.u8ssidnum -= 1;
+                                       strHiddenNetwork.n_ssids -= 1;
                                }
                        }
                        PRINT_D(CFG80211_DBG, "Trigger Scan Request\n");