diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-11-17 03:54:33 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-11-17 03:54:33 +0000 |
commit | b27ba9665f13cafe973610dccc4a4193322f8ff3 (patch) | |
tree | 5ad00477caf932c45de10d4e6a317682ecd5d509 /package/broadcom-wl/src/kmod/linux_osl.c | |
parent | 22d0525a1ce97db26cb661929a418dca6bed8c32 (diff) | |
download | upstream-b27ba9665f13cafe973610dccc4a4193322f8ff3.tar.gz upstream-b27ba9665f13cafe973610dccc4a4193322f8ff3.tar.bz2 upstream-b27ba9665f13cafe973610dccc4a4193322f8ff3.zip |
upgrade to broadcom wl driver version 4.80.53.0 (from wrt350n release)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5546 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-wl/src/kmod/linux_osl.c')
-rw-r--r-- | package/broadcom-wl/src/kmod/linux_osl.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/package/broadcom-wl/src/kmod/linux_osl.c b/package/broadcom-wl/src/kmod/linux_osl.c index d702961032..24fd77daea 100644 --- a/package/broadcom-wl/src/kmod/linux_osl.c +++ b/package/broadcom-wl/src/kmod/linux_osl.c @@ -159,13 +159,18 @@ osl_pktget(osl_t *osh, uint len, bool send) return ((void*) skb); } +typedef void (*pktfree_cb_fn_t)(void *ctx, void *pkt, uint16 status); /* Free the driver packet. Free the tag if present */ void -osl_pktfree(osl_t *osh, void *p) +osl_pktfree(osl_t *osh, void *p, bool send) { struct sk_buff *skb, *nskb; + pktfree_cb_fn_t tx_fn = osh->pub.tx_fn; skb = (struct sk_buff*) p; + + if (send && tx_fn) + tx_fn(osh->pub.tx_ctx, p, 0); /* perversion: we use skb->next to chain multi-skb packets */ while (skb) { |