Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236386
b: refs/heads/master
c: cbe7075
h: refs/heads/master
v: v3
  • Loading branch information
Luis R. Rodriguez authored and Greg Kroah-Hartman committed Mar 11, 2011
1 parent 70e4e7a commit b16a550
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e6998a556b6773542b60e48b451f99574c05cbaa
refs/heads/master: cbe7075102239dfc0187c30ac0cd4b79eddd35c2
12 changes: 6 additions & 6 deletions trunk/drivers/staging/ath6kl/os/linux/ar6000_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -6402,21 +6402,21 @@ 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;
}

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;
}
Expand All @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/staging/ath6kl/os/linux/include/ar6000_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down

0 comments on commit b16a550

Please sign in to comment.