staging: wilc1000: rename drvHandler in the struct wilc_vif
authorTony Cho <tony.cho@atmel.com>
Tue, 20 Oct 2015 05:26:50 +0000 (14:26 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 01:14:35 +0000 (18:14 -0700)
This patch renames drvHandler in the struct wilc_vif to the hif_drv.

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

index 493e02cf34ab60b244b70ac06ca6a90af2fbb46e..11e26fb1090b6fa2f0d71b47ae89454ebdf33670 100644 (file)
@@ -1314,7 +1314,7 @@ int mac_open(struct net_device *ndev)
        for (i = 0; i < g_linux_wlan->vif_num; i++) {
                if (ndev == g_linux_wlan->vif[i].wilc_netdev) {
                        memcpy(g_linux_wlan->vif[i].src_addr, mac_add, ETH_ALEN);
-                       g_linux_wlan->vif[i].drvHandler = priv->hWILCWFIDrv;
+                       g_linux_wlan->vif[i].hif_drv = priv->hWILCWFIDrv;
                        break;
                }
        }
index c166d3f0e409a6129dfec71e244e568b1df6ac28..2dfc0fde7d2e5d768180f968f50039647f914499 100644 (file)
@@ -2585,16 +2585,16 @@ static int change_virtual_intf(struct wiphy *wiphy, struct net_device *dev,
                        nic->iftype = interface_type;
 
                        /*Setting interface 1 drv handler and mac address in newly downloaded FW*/
-                       host_int_set_wfi_drv_handler(g_linux_wlan->vif[0].drvHandler);
-                       host_int_set_MacAddress(g_linux_wlan->vif[0].drvHandler,
+                       host_int_set_wfi_drv_handler(g_linux_wlan->vif[0].hif_drv);
+                       host_int_set_MacAddress(g_linux_wlan->vif[0].hif_drv,
                                                g_linux_wlan->vif[0].src_addr);
                        host_int_set_operation_mode(priv->hWILCWFIDrv, STATION_MODE);
 
                        /*Add saved WEP keys, if any*/
                        if (g_wep_keys_saved) {
-                               host_int_set_WEPDefaultKeyID(g_linux_wlan->vif[0].drvHandler,
+                               host_int_set_WEPDefaultKeyID(g_linux_wlan->vif[0].hif_drv,
                                                             g_key_wep_params.key_idx);
-                               host_int_add_wep_key_bss_sta(g_linux_wlan->vif[0].drvHandler,
+                               host_int_add_wep_key_bss_sta(g_linux_wlan->vif[0].hif_drv,
                                                             g_key_wep_params.key,
                                                             g_key_wep_params.key_len,
                                                             g_key_wep_params.key_idx);
@@ -2666,16 +2666,16 @@ static int change_virtual_intf(struct wiphy *wiphy, struct net_device *dev,
                        wilc1000_wlan_init(dev, nic);
                        g_wilc_initialized = 1;
 
-                       host_int_set_wfi_drv_handler(g_linux_wlan->vif[0].drvHandler);
-                       host_int_set_MacAddress(g_linux_wlan->vif[0].drvHandler,
+                       host_int_set_wfi_drv_handler(g_linux_wlan->vif[0].hif_drv);
+                       host_int_set_MacAddress(g_linux_wlan->vif[0].hif_drv,
                                                g_linux_wlan->vif[0].src_addr);
                        host_int_set_operation_mode(priv->hWILCWFIDrv, STATION_MODE);
 
                        /*Add saved WEP keys, if any*/
                        if (g_wep_keys_saved) {
-                               host_int_set_WEPDefaultKeyID(g_linux_wlan->vif[0].drvHandler,
+                               host_int_set_WEPDefaultKeyID(g_linux_wlan->vif[0].hif_drv,
                                                             g_key_wep_params.key_idx);
-                               host_int_add_wep_key_bss_sta(g_linux_wlan->vif[0].drvHandler,
+                               host_int_add_wep_key_bss_sta(g_linux_wlan->vif[0].hif_drv,
                                                             g_key_wep_params.key,
                                                             g_key_wep_params.key_len,
                                                             g_key_wep_params.key_idx);
@@ -2781,16 +2781,16 @@ static int change_virtual_intf(struct wiphy *wiphy, struct net_device *dev,
 
 
                /*Setting interface 1 drv handler and mac address in newly downloaded FW*/
-               host_int_set_wfi_drv_handler(g_linux_wlan->vif[0].drvHandler);
-               host_int_set_MacAddress(g_linux_wlan->vif[0].drvHandler,
+               host_int_set_wfi_drv_handler(g_linux_wlan->vif[0].hif_drv);
+               host_int_set_MacAddress(g_linux_wlan->vif[0].hif_drv,
                                        g_linux_wlan->vif[0].src_addr);
                host_int_set_operation_mode(priv->hWILCWFIDrv, AP_MODE);
 
                /*Add saved WEP keys, if any*/
                if (g_wep_keys_saved) {
-                       host_int_set_WEPDefaultKeyID(g_linux_wlan->vif[0].drvHandler,
+                       host_int_set_WEPDefaultKeyID(g_linux_wlan->vif[0].hif_drv,
                                                     g_key_wep_params.key_idx);
-                       host_int_add_wep_key_bss_sta(g_linux_wlan->vif[0].drvHandler,
+                       host_int_add_wep_key_bss_sta(g_linux_wlan->vif[0].hif_drv,
                                                     g_key_wep_params.key,
                                                     g_key_wep_params.key_len,
                                                     g_key_wep_params.key_idx);
index 6ac93280b8a2bc0175b56c54bb4553ef88846753..521d3cbe50fb9cc6843137d745b7a75d9c555577 100644 (file)
@@ -151,7 +151,7 @@ typedef struct {
 struct wilc_vif {
        u8 src_addr[ETH_ALEN];
        u8 bssid[ETH_ALEN];
-       struct host_if_drv *drvHandler;
+       struct host_if_drv *hif_drv;
        struct net_device *wilc_netdev;
 };