staging: wilc1000: rename pu8Rates of struct add_sta_param
authorLeo Kim <leo.kim@atmel.com>
Thu, 29 Oct 2015 03:05:44 +0000 (12:05 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
This patch renames pu8Rates of struct add_sta_param to rates
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@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 9b76acd6f011ba49a576937e9e366ef2558fa5b9..910462af0f381bff1ea27e1e381b0a71f1d4ccfc 100644 (file)
@@ -2316,7 +2316,7 @@ static u32 WILC_HostIf_PackStaParam(u8 *pu8Buffer,
 
        *pu8CurrByte++ = pstrStationParam->rates_len;
        if (pstrStationParam->rates_len > 0)
-               memcpy(pu8CurrByte, pstrStationParam->pu8Rates,
+               memcpy(pu8CurrByte, pstrStationParam->rates,
                       pstrStationParam->rates_len);
        pu8CurrByte += pstrStationParam->rates_len;
 
@@ -2372,7 +2372,7 @@ static void Handle_AddStation(struct host_if_drv *hif_drv,
                PRINT_ER("Failed to send add station config packet\n");
 
 ERRORHANDLER:
-       kfree(pstrStationParam->pu8Rates);
+       kfree(pstrStationParam->rates);
        kfree(wid.val);
 }
 
@@ -2474,7 +2474,7 @@ static void Handle_EditStation(struct host_if_drv *hif_drv,
                PRINT_ER("Failed to send edit station config packet\n");
 
 ERRORHANDLER:
-       kfree(pstrStationParam->pu8Rates);
+       kfree(pstrStationParam->rates);
        kfree(wid.val);
 }
 
@@ -4552,9 +4552,9 @@ s32 host_int_add_station(struct host_if_drv *hif_drv,
                if (!rates)
                        return -ENOMEM;
 
-               memcpy(rates, pstrStaParams->pu8Rates,
+               memcpy(rates, pstrStaParams->rates,
                       pstrAddStationMsg->rates_len);
-               pstrAddStationMsg->pu8Rates = rates;
+               pstrAddStationMsg->rates = rates;
        }
 
        result = wilc_mq_send(&hif_msg_q, &msg, sizeof(struct host_if_msg));
@@ -4669,9 +4669,9 @@ s32 host_int_edit_station(struct host_if_drv *hif_drv,
                if (!rates)
                        return -ENOMEM;
 
-               memcpy(rates, pstrStaParams->pu8Rates,
+               memcpy(rates, pstrStaParams->rates,
                       pstrAddStationMsg->rates_len);
-               pstrAddStationMsg->pu8Rates = rates;
+               pstrAddStationMsg->rates = rates;
        }
 
        result = wilc_mq_send(&hif_msg_q, &msg, sizeof(struct host_if_msg));
index b13c76ed7fe1881a3d7e629adf5ca5790b2520fd..5fba44f8f335d9c7da301059cdf52d532f4622f1 100644 (file)
@@ -291,7 +291,7 @@ struct add_sta_param {
        u8 bssid[ETH_ALEN];
        u16 aid;
        u8 rates_len;
-       const u8 *pu8Rates;
+       const u8 *rates;
        bool bIsHTSupported;
        u16 u16HTCapInfo;
        u8 u8AmpduParams;
index 715499aeebe620e3ebbe6ca6aa457ff0fb837252..019364a794a7487bc43c696b5076d8b7ae327105 100644 (file)
@@ -2999,7 +2999,7 @@ static int add_station(struct wiphy *wiphy, struct net_device *dev,
                memcpy(priv->assoc_stainfo.au8Sta_AssociatedBss[params->aid], mac, ETH_ALEN);
                strStaParams.aid = params->aid;
                strStaParams.rates_len = params->supported_rates_len;
-               strStaParams.pu8Rates = params->supported_rates;
+               strStaParams.rates = params->supported_rates;
 
                PRINT_D(CFG80211_DBG, "Adding station parameters %d\n", params->aid);
 
@@ -3113,7 +3113,7 @@ static int change_station(struct wiphy *wiphy, struct net_device *dev,
                memcpy(strStaParams.bssid, mac, ETH_ALEN);
                strStaParams.aid = params->aid;
                strStaParams.rates_len = params->supported_rates_len;
-               strStaParams.pu8Rates = params->supported_rates;
+               strStaParams.rates = params->supported_rates;
 
                PRINT_D(HOSTAPD_DBG, "BSSID = %x%x%x%x%x%x\n",
                        strStaParams.bssid[0], strStaParams.bssid[1],