summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6656/hostap.c
diff options
context:
space:
mode:
authorForest Bond <forest@alittletooquiet.net>2009-06-13 07:38:54 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-15 12:01:32 -0700
commitdd8db704adce547bd099096a6431aada124867a4 (patch)
tree4df37a1eedb4f1594db7009843b5e34da424f9c9 /drivers/staging/vt6656/hostap.c
parent1e28efa3eb3cdfe6a3be0499d309fb75250c1028 (diff)
downloadop-kernel-dev-dd8db704adce547bd099096a6431aada124867a4.zip
op-kernel-dev-dd8db704adce547bd099096a6431aada124867a4.tar.gz
Staging: vt6656: use net_device_ops for management functions
vt6656: use net_device_ops for management functions 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.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/staging/vt6656/hostap.c b/drivers/staging/vt6656/hostap.c
index b6ca36a..223604d 100644
--- a/drivers/staging/vt6656/hostap.c
+++ b/drivers/staging/vt6656/hostap.c
@@ -117,7 +117,12 @@ static int hostap_enable_hostapd(PSDevice pDevice, int rtnl_locked)
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;
+
+ const struct net_device_ops apdev_netdev_ops = {
+ .ndo_start_xmit = pDevice->tx_80211,
+ };
+ pDevice->apdev->netdev_ops = &apdev_netdev_ops;
+
pDevice->apdev->type = ARPHRD_IEEE80211;
pDevice->apdev->base_addr = dev->base_addr;
OpenPOWER on IntegriCloud