diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-08-11 02:14:15 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-08-11 02:14:15 +0000 |
commit | fe4ec9d81bb7f03754561ffeedfb15b5bfabeee4 (patch) | |
tree | 1e5154a8505c31c085c3bad0bbcbc6c2b3f8d73e /package/madwifi/patches/432-netdev_ops.patch | |
parent | b5700ad6856e6994dad93ab783e345eb96873cf1 (diff) | |
download | upstream-fe4ec9d81bb7f03754561ffeedfb15b5bfabeee4.tar.gz upstream-fe4ec9d81bb7f03754561ffeedfb15b5bfabeee4.tar.bz2 upstream-fe4ec9d81bb7f03754561ffeedfb15b5bfabeee4.zip |
madwifi: fix compile error on kernels without net_device api compatibility
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17219 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/patches/432-netdev_ops.patch')
-rw-r--r-- | package/madwifi/patches/432-netdev_ops.patch | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/package/madwifi/patches/432-netdev_ops.patch b/package/madwifi/patches/432-netdev_ops.patch index 6cb2c67827..c3f8ae6846 100644 --- a/package/madwifi/patches/432-netdev_ops.patch +++ b/package/madwifi/patches/432-netdev_ops.patch @@ -45,7 +45,15 @@ http://madwifi-project.org/changeset/4005 dev->tx_queue_len = ATH_TXBUF - ATH_TXBUF_MGT_RESERVED; #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24) netif_napi_add(dev, &sc->sc_napi, ath_rx_poll, 64); -@@ -12729,8 +12747,13 @@ ath_rcv_dev_event(struct notifier_block +@@ -1257,7 +1275,6 @@ ath_detach(struct net_device *dev) + ath_dynamic_sysctl_unregister(sc); + ATH_LOCK_DESTROY(sc); + ATH_HAL_LOCK_DESTROY(sc); +- dev->stop = NULL; /* prevent calling ath_stop again */ + unregister_netdev(dev); + return 0; + } +@@ -12729,8 +12746,13 @@ ath_rcv_dev_event(struct notifier_block struct net_device *dev = (struct net_device *)ptr; struct ath_softc *sc = (struct ath_softc *)netdev_priv(dev); |