diff options
author | Forest Bond <forest@alittletooquiet.net> | 2009-06-13 11:38:54 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 19:01:32 (GMT) |
commit | dd8db704adce547bd099096a6431aada124867a4 (patch) | |
tree | 4df37a1eedb4f1594db7009843b5e34da424f9c9 /drivers/staging/vt6656/hostap.c | |
parent | 1e28efa3eb3cdfe6a3be0499d309fb75250c1028 (diff) | |
download | linux-fsl-qoriq-dd8db704adce547bd099096a6431aada124867a4.tar.xz |
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.c | 7 |
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; |