diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-07-18 01:04:40 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-07-18 01:04:40 +0000 |
commit | bde1cf619a85703b8ab6c82403d2e066cbe208ec (patch) | |
tree | 01ce12fc787057ce036580824b30ccfae9b58ad0 /package/madwifi/patches/432-netdev_ops.patch | |
parent | ecad504c39ee2d914d65c84b5ca1e4f7dd3d1c1d (diff) | |
download | mtk-20170518-bde1cf619a85703b8ab6c82403d2e066cbe208ec.zip mtk-20170518-bde1cf619a85703b8ab6c82403d2e066cbe208ec.tar.gz mtk-20170518-bde1cf619a85703b8ab6c82403d2e066cbe208ec.tar.bz2 |
madwifi: fix crash on 2.6.30
SVN-Revision: 16889
Diffstat (limited to 'package/madwifi/patches/432-netdev_ops.patch')
-rw-r--r-- | package/madwifi/patches/432-netdev_ops.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/package/madwifi/patches/432-netdev_ops.patch b/package/madwifi/patches/432-netdev_ops.patch index be36128..6cb2c67 100644 --- a/package/madwifi/patches/432-netdev_ops.patch +++ b/package/madwifi/patches/432-netdev_ops.patch @@ -156,3 +156,17 @@ http://madwifi-project.org/changeset/4005 #if IW_HANDLER_VERSION < 7 dev->get_wireless_stats = ieee80211_iw_getstats; #endif +--- a/net80211/ieee80211_input.c ++++ b/net80211/ieee80211_input.c +@@ -1185,7 +1185,11 @@ ieee80211_deliver_data(struct ieee80211_ + skb1->protocol = __constant_htons(ETH_P_802_2); + /* XXX insert vlan tag before queue it? */ + ni_tmp = SKB_CB(skb1)->ni; /* remember node so we can free it */ ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29) + ret = dev->hard_start_xmit(skb1, dev); ++#else ++ ret = dev->netdev_ops->ndo_start_xmit(skb1, dev); ++#endif + + if (ret == NETDEV_TX_BUSY) + ieee80211_dev_kfree_skb(&skb1); |