summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6656/hostap.c
diff options
context:
space:
mode:
authorForest Bond2009-06-13 13:38:50 +0200
committerGreg Kroah-Hartman2009-09-15 21:01:32 +0200
commit1e28efa3eb3cdfe6a3be0499d309fb75250c1028 (patch)
tree238cd41a22a23da0d6ba13a082d24d96700a7cd7 /drivers/staging/vt6656/hostap.c
parentStaging: vt6656: main_usb.c: Drop obsolete fsuid/fsgid accesses. (diff)
downloadkernel-qcow2-linux-1e28efa3eb3cdfe6a3be0499d309fb75250c1028.tar.gz
kernel-qcow2-linux-1e28efa3eb3cdfe6a3be0499d309fb75250c1028.tar.xz
kernel-qcow2-linux-1e28efa3eb3cdfe6a3be0499d309fb75250c1028.zip
Staging: vt6656: Replace net_device->priv accesses with netdev_priv calls.
vt6656: Replace net_device->priv accesses with netdev_priv calls. Signed-off-by: Forest Bond <forest@alittletooquiet.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/vt6656/hostap.c')
-rw-r--r--drivers/staging/vt6656/hostap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/vt6656/hostap.c b/drivers/staging/vt6656/hostap.c
index 78312f8f4735..b6ca36afa1d7 100644
--- a/drivers/staging/vt6656/hostap.c
+++ b/drivers/staging/vt6656/hostap.c
@@ -103,6 +103,7 @@ static int msglevel =MSG_LEVEL_INFO;
static int hostap_enable_hostapd(PSDevice pDevice, int rtnl_locked)
{
+ PSDevice apdev_priv;
struct net_device *dev = pDevice->dev;
int ret;
@@ -113,7 +114,8 @@ static int hostap_enable_hostapd(PSDevice pDevice, int rtnl_locked)
return -ENOMEM;
memset(pDevice->apdev, 0, sizeof(struct net_device));
- pDevice->apdev->priv = pDevice;
+ apdev_priv = netdev_priv(pDevice->apdev);
+ *apdev_priv = *pDevice;
memcpy(pDevice->apdev->dev_addr, dev->dev_addr, ETH_ALEN);
pDevice->apdev->hard_start_xmit = pDevice->tx_80211;
pDevice->apdev->type = ARPHRD_IEEE80211;