summaryrefslogtreecommitdiffstats
path: root/drivers/staging/ath6kl
diff options
context:
space:
mode:
authorLuis R. Rodriguez2011-03-11 03:55:42 +0100
committerGreg Kroah-Hartman2011-03-11 23:31:51 +0100
commitcbe7075102239dfc0187c30ac0cd4b79eddd35c2 (patch)
tree4c3ac8bb55fac1d5a298bd2ceea7a9f19afe9abc /drivers/staging/ath6kl
parentstaging: ath6kl: remove-typedef AR6K_IRQ_PROC_REGISTERS (diff)
downloadkernel-qcow2-linux-cbe7075102239dfc0187c30ac0cd4b79eddd35c2.tar.gz
kernel-qcow2-linux-cbe7075102239dfc0187c30ac0cd4b79eddd35c2.tar.xz
kernel-qcow2-linux-cbe7075102239dfc0187c30ac0cd4b79eddd35c2.zip
staging: ath6kl: remove-typedef AR_VIRTUAL_INTERFACE_T
remove-typedef -s AR_VIRTUAL_INTERFACE_T \ "struct ar_virtual_interface" drivers/staging/ath6kl/ Cc: Naveen Singh <naveen.singh@atheros.com> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/ath6kl')
-rw-r--r--drivers/staging/ath6kl/os/linux/ar6000_drv.c12
-rw-r--r--drivers/staging/ath6kl/os/linux/include/ar6000_drv.h6
2 files changed, 9 insertions, 9 deletions
diff --git a/drivers/staging/ath6kl/os/linux/ar6000_drv.c b/drivers/staging/ath6kl/os/linux/ar6000_drv.c
index 3397995b1c3d..e52a88a4e4d4 100644
--- a/drivers/staging/ath6kl/os/linux/ar6000_drv.c
+++ b/drivers/staging/ath6kl/os/linux/ar6000_drv.c
@@ -6402,10 +6402,10 @@ static void DoHTCSendPktsTest(AR_SOFTC_T *ar, int MapNo, HTC_ENDPOINT_ID eid, st
int ar6000_start_ap_interface(AR_SOFTC_T *ar)
{
- AR_VIRTUAL_INTERFACE_T *arApDev;
+ struct ar_virtual_interface *arApDev;
/* Change net_device to point to AP instance */
- arApDev = (AR_VIRTUAL_INTERFACE_T *)ar->arApDev;
+ arApDev = (struct ar_virtual_interface *)ar->arApDev;
ar->arNetDev = arApDev->arNetDev;
return 0;
@@ -6413,10 +6413,10 @@ int ar6000_start_ap_interface(AR_SOFTC_T *ar)
int ar6000_stop_ap_interface(AR_SOFTC_T *ar)
{
- AR_VIRTUAL_INTERFACE_T *arApDev;
+ struct ar_virtual_interface *arApDev;
/* Change net_device to point to sta instance */
- arApDev = (AR_VIRTUAL_INTERFACE_T *)ar->arApDev;
+ arApDev = (struct ar_virtual_interface *)ar->arApDev;
if (arApDev) {
ar->arNetDev = arApDev->arStaNetDev;
}
@@ -6428,9 +6428,9 @@ int ar6000_stop_ap_interface(AR_SOFTC_T *ar)
int ar6000_create_ap_interface(AR_SOFTC_T *ar, char *ap_ifname)
{
struct net_device *dev;
- AR_VIRTUAL_INTERFACE_T *arApDev;
+ struct ar_virtual_interface *arApDev;
- dev = alloc_etherdev(sizeof(AR_VIRTUAL_INTERFACE_T));
+ dev = alloc_etherdev(sizeof(struct ar_virtual_interface));
if (dev == NULL) {
AR_DEBUG_PRINTF(ATH_DEBUG_ERR,("ar6000_create_ap_interface: can't alloc etherdev\n"));
return A_ERROR;
diff --git a/drivers/staging/ath6kl/os/linux/include/ar6000_drv.h b/drivers/staging/ath6kl/os/linux/include/ar6000_drv.h
index 0beba096e9d1..2c6f873960a2 100644
--- a/drivers/staging/ath6kl/os/linux/include/ar6000_drv.h
+++ b/drivers/staging/ath6kl/os/linux/include/ar6000_drv.h
@@ -625,11 +625,11 @@ typedef struct ar6_softc {
} AR_SOFTC_T;
#ifdef CONFIG_AP_VIRTUAL_ADAPTER_SUPPORT
-typedef struct {
+struct ar_virtual_interface {
struct net_device *arNetDev; /* net_device pointer */
AR_SOFTC_T *arDev; /* ar device pointer */
struct net_device *arStaNetDev; /* net_device pointer */
-} AR_VIRTUAL_INTERFACE_T;
+};
#endif /* CONFIG_AP_VIRTUAL_ADAPTER_SUPPORT */
#ifdef ATH6K_CONFIG_CFG80211
@@ -645,7 +645,7 @@ static inline void *ar6k_priv(struct net_device *dev)
if (arApNetDev == dev) {
/* return arDev saved in virtual interface context */
- AR_VIRTUAL_INTERFACE_T *arVirDev;
+ struct ar_virtual_interface *arVirDev;
arVirDev = netdev_priv(dev);
return arVirDev->arDev;
} else {