From: Leo Kim <leo....@atmel.com>

This patch renames au8BSSID of struct add_sta_param to bssid
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo....@atmel.com>
Signed-off-by: Glen Lee <glen....@atmel.com>
---
 drivers/staging/wilc1000/host_interface.c         |  2 +-
 drivers/staging/wilc1000/host_interface.h         |  2 +-
 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 10 ++++++----
 3 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/wilc1000/host_interface.c 
b/drivers/staging/wilc1000/host_interface.c
index 00f2717..2cf3ed5 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -2308,7 +2308,7 @@ static u32 WILC_HostIf_PackStaParam(u8 *pu8Buffer,
        pu8CurrByte = pu8Buffer;
 
        PRINT_D(HOSTINF_DBG, "Packing STA params\n");
-       memcpy(pu8CurrByte, pstrStationParam->au8BSSID, ETH_ALEN);
+       memcpy(pu8CurrByte, pstrStationParam->bssid, ETH_ALEN);
        pu8CurrByte +=  ETH_ALEN;
 
        *pu8CurrByte++ = pstrStationParam->u16AssocID & 0xFF;
diff --git a/drivers/staging/wilc1000/host_interface.h 
b/drivers/staging/wilc1000/host_interface.h
index 60dcc36..58e4f92 100644
--- a/drivers/staging/wilc1000/host_interface.h
+++ b/drivers/staging/wilc1000/host_interface.h
@@ -288,7 +288,7 @@ struct host_if_drv {
 };
 
 struct add_sta_param {
-       u8 au8BSSID[ETH_ALEN];
+       u8 bssid[ETH_ALEN];
        u16 u16AssocID;
        u8 u8NumRates;
        const u8 *pu8Rates;
diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c 
b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
index 4828deb..2ec85f0 100644
--- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
+++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
@@ -2995,7 +2995,7 @@ static int add_station(struct wiphy *wiphy, struct 
net_device *dev,
        nic = netdev_priv(dev);
 
        if (nic->iftype == AP_MODE || nic->iftype == GO_MODE) {
-               memcpy(strStaParams.au8BSSID, mac, ETH_ALEN);
+               memcpy(strStaParams.bssid, mac, ETH_ALEN);
                memcpy(priv->assoc_stainfo.au8Sta_AssociatedBss[params->aid], 
mac, ETH_ALEN);
                strStaParams.u16AssocID = params->aid;
                strStaParams.u8NumRates = params->supported_rates_len;
@@ -3109,13 +3109,15 @@ static int change_station(struct wiphy *wiphy, struct 
net_device *dev,
        nic = netdev_priv(dev);
 
        if (nic->iftype == AP_MODE || nic->iftype == GO_MODE) {
-               memcpy(strStaParams.au8BSSID, mac, ETH_ALEN);
+               memcpy(strStaParams.bssid, mac, ETH_ALEN);
                strStaParams.u16AssocID = params->aid;
                strStaParams.u8NumRates = params->supported_rates_len;
                strStaParams.pu8Rates = params->supported_rates;
 
-               PRINT_D(HOSTAPD_DBG, "BSSID = %x%x%x%x%x%x\n", 
strStaParams.au8BSSID[0], strStaParams.au8BSSID[1], strStaParams.au8BSSID[2], 
strStaParams.au8BSSID[3], strStaParams.au8BSSID[4],
-                       strStaParams.au8BSSID[5]);
+               PRINT_D(HOSTAPD_DBG, "BSSID = %x%x%x%x%x%x\n",
+                       strStaParams.bssid[0], strStaParams.bssid[1],
+                       strStaParams.bssid[2], strStaParams.bssid[3],
+                       strStaParams.bssid[4], strStaParams.bssid[5]);
                PRINT_D(HOSTAPD_DBG, "ASSOC ID = %d\n", 
strStaParams.u16AssocID);
                PRINT_D(HOSTAPD_DBG, "Number of supported rates = %d\n", 
strStaParams.u8NumRates);
 
-- 
1.9.1

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to