2011-04-26 22:25:29 +00:00
|
|
|
/*
|
|
|
|
* This file contains the handling of RX in wlan driver.
|
|
|
|
*/
|
2011-05-02 23:49:14 +00:00
|
|
|
|
|
|
|
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
|
|
|
|
2007-02-10 14:25:27 +00:00
|
|
|
#include <linux/etherdevice.h>
|
2011-06-06 10:43:46 +00:00
|
|
|
#include <linux/hardirq.h>
|
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
percpu.h is included by sched.h and module.h and thus ends up being
included when building most .c files. percpu.h includes slab.h which
in turn includes gfp.h making everything defined by the two files
universally available and complicating inclusion dependencies.
percpu.h -> slab.h dependency is about to be removed. Prepare for
this change by updating users of gfp and slab facilities include those
headers directly instead of assuming availability. As this conversion
needs to touch large number of source files, the following script is
used as the basis of conversion.
http://userweb.kernel.org/~tj/misc/slabh-sweep.py
The script does the followings.
* Scan files for gfp and slab usages and update includes such that
only the necessary includes are there. ie. if only gfp is used,
gfp.h, if slab is used, slab.h.
* When the script inserts a new include, it looks at the include
blocks and try to put the new include such that its order conforms
to its surrounding. It's put in the include block which contains
core kernel includes, in the same order that the rest are ordered -
alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
doesn't seem to be any matching order.
* If the script can't find a place to put a new include (mostly
because the file doesn't have fitting include block), it prints out
an error message indicating which .h file needs to be added to the
file.
The conversion was done in the following steps.
1. The initial automatic conversion of all .c files updated slightly
over 4000 files, deleting around 700 includes and adding ~480 gfp.h
and ~3000 slab.h inclusions. The script emitted errors for ~400
files.
2. Each error was manually checked. Some didn't need the inclusion,
some needed manual addition while adding it to implementation .h or
embedding .c file was more appropriate for others. This step added
inclusions to around 150 files.
3. The script was run again and the output was compared to the edits
from #2 to make sure no file was left behind.
4. Several build tests were done and a couple of problems were fixed.
e.g. lib/decompress_*.c used malloc/free() wrappers around slab
APIs requiring slab.h to be added manually.
5. The script was run on all .h files but without automatically
editing them as sprinkling gfp.h and slab.h inclusions around .h
files could easily lead to inclusion dependency hell. Most gfp.h
inclusion directives were ignored as stuff from gfp.h was usually
wildly available and often used in preprocessor macros. Each
slab.h inclusion directive was examined and added manually as
necessary.
6. percpu.h was updated not to include slab.h.
7. Build test were done on the following configurations and failures
were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my
distributed build env didn't work with gcov compiles) and a few
more options had to be turned off depending on archs to make things
build (like ipr on powerpc/64 which failed due to missing writeq).
* x86 and x86_64 UP and SMP allmodconfig and a custom test config.
* powerpc and powerpc64 SMP allmodconfig
* sparc and sparc64 SMP allmodconfig
* ia64 SMP allmodconfig
* s390 SMP allmodconfig
* alpha SMP allmodconfig
* um on x86_64 SMP allmodconfig
8. percpu.h modifications were reverted so that it could be applied as
a separate patch and serve as bisection point.
Given the fact that I had only a couple of failures from tests on step
6, I'm fairly confident about the coverage of this conversion patch.
If there is a breakage, it's likely to be something in one of the arch
headers which should be easily discoverable easily on most builds of
the specific arch.
Signed-off-by: Tejun Heo <tj@kernel.org>
Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
2010-03-24 08:04:11 +00:00
|
|
|
#include <linux/slab.h>
|
2007-02-10 14:25:27 +00:00
|
|
|
#include <linux/types.h>
|
2011-05-27 20:14:23 +00:00
|
|
|
#include <linux/export.h>
|
2010-06-14 16:31:26 +00:00
|
|
|
#include <net/cfg80211.h>
|
2007-02-10 14:25:27 +00:00
|
|
|
|
2010-06-14 16:31:26 +00:00
|
|
|
#include "defs.h"
|
2009-10-16 15:32:16 +00:00
|
|
|
#include "host.h"
|
2007-02-10 14:25:27 +00:00
|
|
|
#include "radiotap.h"
|
|
|
|
#include "decl.h"
|
|
|
|
#include "dev.h"
|
2011-07-21 19:43:17 +00:00
|
|
|
#include "mesh.h"
|
2007-02-10 14:25:27 +00:00
|
|
|
|
|
|
|
struct eth803hdr {
|
|
|
|
u8 dest_addr[6];
|
|
|
|
u8 src_addr[6];
|
|
|
|
u16 h803_len;
|
2010-06-02 18:10:09 +00:00
|
|
|
} __packed;
|
2007-02-10 14:25:27 +00:00
|
|
|
|
|
|
|
struct rfc1042hdr {
|
|
|
|
u8 llc_dsap;
|
|
|
|
u8 llc_ssap;
|
|
|
|
u8 llc_ctrl;
|
|
|
|
u8 snap_oui[3];
|
|
|
|
u16 snap_type;
|
2010-06-02 18:10:09 +00:00
|
|
|
} __packed;
|
2007-02-10 14:25:27 +00:00
|
|
|
|
|
|
|
struct rxpackethdr {
|
|
|
|
struct eth803hdr eth803_hdr;
|
|
|
|
struct rfc1042hdr rfc1042_hdr;
|
2010-06-02 18:10:09 +00:00
|
|
|
} __packed;
|
2007-02-10 14:25:27 +00:00
|
|
|
|
|
|
|
struct rx80211packethdr {
|
|
|
|
struct rxpd rx_pd;
|
|
|
|
void *eth80211_hdr;
|
2010-06-02 18:10:09 +00:00
|
|
|
} __packed;
|
2007-02-10 14:25:27 +00:00
|
|
|
|
2007-11-23 14:43:44 +00:00
|
|
|
static int process_rxed_802_11_packet(struct lbs_private *priv,
|
|
|
|
struct sk_buff *skb);
|
2007-02-10 14:25:27 +00:00
|
|
|
|
|
|
|
/**
|
2011-04-26 22:25:29 +00:00
|
|
|
* lbs_process_rxed_packet - processes received packet and forwards it
|
|
|
|
* to kernel/upper layer
|
2007-02-10 14:25:27 +00:00
|
|
|
*
|
2011-04-26 22:25:29 +00:00
|
|
|
* @priv: A pointer to &struct lbs_private
|
|
|
|
* @skb: A pointer to skb which includes the received packet
|
|
|
|
* returns: 0 or -1
|
2007-02-10 14:25:27 +00:00
|
|
|
*/
|
2007-11-23 14:43:44 +00:00
|
|
|
int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *skb)
|
2007-02-10 14:25:27 +00:00
|
|
|
{
|
|
|
|
int ret = 0;
|
2007-12-10 05:49:26 +00:00
|
|
|
struct net_device *dev = priv->dev;
|
2007-02-10 14:25:27 +00:00
|
|
|
struct rxpackethdr *p_rx_pkt;
|
|
|
|
struct rxpd *p_rx_pd;
|
|
|
|
int hdrchop;
|
|
|
|
struct ethhdr *p_ethhdr;
|
2010-11-21 02:38:58 +00:00
|
|
|
static const u8 rfc1042_eth_hdr[] = {
|
|
|
|
0xaa, 0xaa, 0x03, 0x00, 0x00, 0x00
|
|
|
|
};
|
2007-02-10 14:25:27 +00:00
|
|
|
|
2007-05-25 15:27:16 +00:00
|
|
|
lbs_deb_enter(LBS_DEB_RX);
|
2007-02-10 14:25:27 +00:00
|
|
|
|
2008-04-01 12:50:43 +00:00
|
|
|
BUG_ON(!skb);
|
|
|
|
|
2007-12-10 05:49:26 +00:00
|
|
|
skb->ip_summed = CHECKSUM_NONE;
|
|
|
|
|
2010-06-14 16:31:26 +00:00
|
|
|
if (priv->wdev->iftype == NL80211_IFTYPE_MONITOR)
|
2007-02-10 14:25:27 +00:00
|
|
|
return process_rxed_802_11_packet(priv, skb);
|
|
|
|
|
2009-04-06 22:50:56 +00:00
|
|
|
p_rx_pd = (struct rxpd *) skb->data;
|
|
|
|
p_rx_pkt = (struct rxpackethdr *) ((u8 *)p_rx_pd +
|
|
|
|
le32_to_cpu(p_rx_pd->pkt_ptr));
|
2009-11-25 12:10:15 +00:00
|
|
|
|
|
|
|
dev = lbs_mesh_set_dev(priv, dev, p_rx_pd);
|
2007-02-10 14:25:27 +00:00
|
|
|
|
2007-08-02 15:53:06 +00:00
|
|
|
lbs_deb_hex(LBS_DEB_RX, "RX Data: Before chop rxpd", skb->data,
|
2007-02-10 14:25:27 +00:00
|
|
|
min_t(unsigned int, skb->len, 100));
|
|
|
|
|
|
|
|
if (skb->len < (ETH_HLEN + 8 + sizeof(struct rxpd))) {
|
2007-05-25 15:27:16 +00:00
|
|
|
lbs_deb_rx("rx err: frame received with bad length\n");
|
2009-03-20 19:36:36 +00:00
|
|
|
dev->stats.rx_length_errors++;
|
2007-02-10 14:25:27 +00:00
|
|
|
ret = 0;
|
2009-04-07 19:41:17 +00:00
|
|
|
dev_kfree_skb(skb);
|
2007-02-10 14:25:27 +00:00
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
|
2009-04-06 22:50:56 +00:00
|
|
|
lbs_deb_rx("rx data: skb->len - pkt_ptr = %d-%zd = %zd\n",
|
2009-04-14 15:45:57 +00:00
|
|
|
skb->len, (size_t)le32_to_cpu(p_rx_pd->pkt_ptr),
|
|
|
|
skb->len - (size_t)le32_to_cpu(p_rx_pd->pkt_ptr));
|
2007-02-10 14:25:27 +00:00
|
|
|
|
2007-08-02 15:53:06 +00:00
|
|
|
lbs_deb_hex(LBS_DEB_RX, "RX Data: Dest", p_rx_pkt->eth803_hdr.dest_addr,
|
2007-02-10 14:25:27 +00:00
|
|
|
sizeof(p_rx_pkt->eth803_hdr.dest_addr));
|
2007-08-02 15:53:06 +00:00
|
|
|
lbs_deb_hex(LBS_DEB_RX, "RX Data: Src", p_rx_pkt->eth803_hdr.src_addr,
|
2007-02-10 14:25:27 +00:00
|
|
|
sizeof(p_rx_pkt->eth803_hdr.src_addr));
|
|
|
|
|
|
|
|
if (memcmp(&p_rx_pkt->rfc1042_hdr,
|
|
|
|
rfc1042_eth_hdr, sizeof(rfc1042_eth_hdr)) == 0) {
|
|
|
|
/*
|
|
|
|
* Replace the 803 header and rfc1042 header (llc/snap) with an
|
|
|
|
* EthernetII header, keep the src/dst and snap_type (ethertype)
|
|
|
|
*
|
|
|
|
* The firmware only passes up SNAP frames converting
|
|
|
|
* all RX Data from 802.11 to 802.2/LLC/SNAP frames.
|
|
|
|
*
|
|
|
|
* To create the Ethernet II, just move the src, dst address right
|
|
|
|
* before the snap_type.
|
|
|
|
*/
|
|
|
|
p_ethhdr = (struct ethhdr *)
|
2010-03-11 09:58:29 +00:00
|
|
|
((u8 *) &p_rx_pkt->eth803_hdr
|
2007-02-10 14:25:27 +00:00
|
|
|
+ sizeof(p_rx_pkt->eth803_hdr) + sizeof(p_rx_pkt->rfc1042_hdr)
|
|
|
|
- sizeof(p_rx_pkt->eth803_hdr.dest_addr)
|
|
|
|
- sizeof(p_rx_pkt->eth803_hdr.src_addr)
|
|
|
|
- sizeof(p_rx_pkt->rfc1042_hdr.snap_type));
|
|
|
|
|
|
|
|
memcpy(p_ethhdr->h_source, p_rx_pkt->eth803_hdr.src_addr,
|
|
|
|
sizeof(p_ethhdr->h_source));
|
|
|
|
memcpy(p_ethhdr->h_dest, p_rx_pkt->eth803_hdr.dest_addr,
|
|
|
|
sizeof(p_ethhdr->h_dest));
|
|
|
|
|
|
|
|
/* Chop off the rxpd + the excess memory from the 802.2/llc/snap header
|
|
|
|
* that was removed
|
|
|
|
*/
|
2009-04-06 22:50:56 +00:00
|
|
|
hdrchop = (u8 *)p_ethhdr - (u8 *)p_rx_pd;
|
2007-02-10 14:25:27 +00:00
|
|
|
} else {
|
2007-08-02 15:53:06 +00:00
|
|
|
lbs_deb_hex(LBS_DEB_RX, "RX Data: LLC/SNAP",
|
2010-03-11 09:58:29 +00:00
|
|
|
(u8 *) &p_rx_pkt->rfc1042_hdr,
|
2007-02-10 14:25:27 +00:00
|
|
|
sizeof(p_rx_pkt->rfc1042_hdr));
|
|
|
|
|
|
|
|
/* Chop off the rxpd */
|
2009-04-06 22:50:56 +00:00
|
|
|
hdrchop = (u8 *)&p_rx_pkt->eth803_hdr - (u8 *)p_rx_pd;
|
2007-02-10 14:25:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Chop off the leading header bytes so the skb points to the start of
|
|
|
|
* either the reconstructed EthII frame or the 802.2/llc/snap frame
|
|
|
|
*/
|
|
|
|
skb_pull(skb, hdrchop);
|
|
|
|
|
2010-06-14 16:31:26 +00:00
|
|
|
priv->cur_rate = lbs_fw_index_to_data_rate(p_rx_pd->rx_rate);
|
2007-02-10 14:25:27 +00:00
|
|
|
|
2007-05-25 15:27:16 +00:00
|
|
|
lbs_deb_rx("rx data: size of actual packet %d\n", skb->len);
|
2009-03-20 19:36:36 +00:00
|
|
|
dev->stats.rx_bytes += skb->len;
|
|
|
|
dev->stats.rx_packets++;
|
2007-02-10 14:25:27 +00:00
|
|
|
|
2007-12-10 05:49:26 +00:00
|
|
|
skb->protocol = eth_type_trans(skb, dev);
|
2008-01-16 14:48:44 +00:00
|
|
|
if (in_interrupt())
|
|
|
|
netif_rx(skb);
|
|
|
|
else
|
|
|
|
netif_rx_ni(skb);
|
2007-05-18 20:04:33 +00:00
|
|
|
|
2007-02-10 14:25:27 +00:00
|
|
|
ret = 0;
|
|
|
|
done:
|
2007-05-25 15:27:16 +00:00
|
|
|
lbs_deb_leave_args(LBS_DEB_RX, "ret %d", ret);
|
2007-02-10 14:25:27 +00:00
|
|
|
return ret;
|
|
|
|
}
|
2007-11-15 23:05:47 +00:00
|
|
|
EXPORT_SYMBOL_GPL(lbs_process_rxed_packet);
|
2007-02-10 14:25:27 +00:00
|
|
|
|
|
|
|
/**
|
2011-04-26 22:25:29 +00:00
|
|
|
* convert_mv_rate_to_radiotap - converts Tx/Rx rates from Marvell WLAN format
|
|
|
|
* (see Table 2 in Section 3.1) to IEEE80211_RADIOTAP_RATE units (500 Kb/s)
|
2007-02-10 14:25:27 +00:00
|
|
|
*
|
2011-04-26 22:25:29 +00:00
|
|
|
* @rate: Input rate
|
|
|
|
* returns: Output Rate (0 if invalid)
|
2007-02-10 14:25:27 +00:00
|
|
|
*/
|
|
|
|
static u8 convert_mv_rate_to_radiotap(u8 rate)
|
|
|
|
{
|
|
|
|
switch (rate) {
|
|
|
|
case 0: /* 1 Mbps */
|
|
|
|
return 2;
|
|
|
|
case 1: /* 2 Mbps */
|
|
|
|
return 4;
|
|
|
|
case 2: /* 5.5 Mbps */
|
|
|
|
return 11;
|
|
|
|
case 3: /* 11 Mbps */
|
|
|
|
return 22;
|
2007-08-02 17:16:55 +00:00
|
|
|
/* case 4: reserved */
|
|
|
|
case 5: /* 6 Mbps */
|
2007-02-10 14:25:27 +00:00
|
|
|
return 12;
|
2007-08-02 17:16:55 +00:00
|
|
|
case 6: /* 9 Mbps */
|
2007-02-10 14:25:27 +00:00
|
|
|
return 18;
|
2007-08-02 17:16:55 +00:00
|
|
|
case 7: /* 12 Mbps */
|
2007-02-10 14:25:27 +00:00
|
|
|
return 24;
|
2007-08-02 17:16:55 +00:00
|
|
|
case 8: /* 18 Mbps */
|
2007-02-10 14:25:27 +00:00
|
|
|
return 36;
|
2007-08-02 17:16:55 +00:00
|
|
|
case 9: /* 24 Mbps */
|
2007-02-10 14:25:27 +00:00
|
|
|
return 48;
|
2007-08-02 17:16:55 +00:00
|
|
|
case 10: /* 36 Mbps */
|
2007-02-10 14:25:27 +00:00
|
|
|
return 72;
|
2007-08-02 17:16:55 +00:00
|
|
|
case 11: /* 48 Mbps */
|
2007-02-10 14:25:27 +00:00
|
|
|
return 96;
|
2007-08-02 17:16:55 +00:00
|
|
|
case 12: /* 54 Mbps */
|
2007-02-10 14:25:27 +00:00
|
|
|
return 108;
|
|
|
|
}
|
2011-05-02 23:49:14 +00:00
|
|
|
pr_alert("Invalid Marvell WLAN rate %i\n", rate);
|
2007-02-10 14:25:27 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2011-04-26 22:25:29 +00:00
|
|
|
* process_rxed_802_11_packet - processes a received 802.11 packet and forwards
|
|
|
|
* it to kernel/upper layer
|
2007-02-10 14:25:27 +00:00
|
|
|
*
|
2011-04-26 22:25:29 +00:00
|
|
|
* @priv: A pointer to &struct lbs_private
|
|
|
|
* @skb: A pointer to skb which includes the received packet
|
|
|
|
* returns: 0 or -1
|
2007-02-10 14:25:27 +00:00
|
|
|
*/
|
2007-11-23 14:43:44 +00:00
|
|
|
static int process_rxed_802_11_packet(struct lbs_private *priv,
|
|
|
|
struct sk_buff *skb)
|
2007-02-10 14:25:27 +00:00
|
|
|
{
|
|
|
|
int ret = 0;
|
2009-03-20 19:36:36 +00:00
|
|
|
struct net_device *dev = priv->dev;
|
2007-02-10 14:25:27 +00:00
|
|
|
struct rx80211packethdr *p_rx_pkt;
|
|
|
|
struct rxpd *prxpd;
|
|
|
|
struct rx_radiotap_hdr radiotap_hdr;
|
|
|
|
struct rx_radiotap_hdr *pradiotap_hdr;
|
|
|
|
|
2007-05-25 15:27:16 +00:00
|
|
|
lbs_deb_enter(LBS_DEB_RX);
|
2007-02-10 14:25:27 +00:00
|
|
|
|
|
|
|
p_rx_pkt = (struct rx80211packethdr *) skb->data;
|
|
|
|
prxpd = &p_rx_pkt->rx_pd;
|
|
|
|
|
2010-03-11 09:58:29 +00:00
|
|
|
/* lbs_deb_hex(LBS_DEB_RX, "RX Data: Before chop rxpd", skb->data, min(skb->len, 100)); */
|
2007-02-10 14:25:27 +00:00
|
|
|
|
|
|
|
if (skb->len < (ETH_HLEN + 8 + sizeof(struct rxpd))) {
|
2007-12-10 05:17:28 +00:00
|
|
|
lbs_deb_rx("rx err: frame received with bad length\n");
|
2009-03-20 19:36:36 +00:00
|
|
|
dev->stats.rx_length_errors++;
|
2007-12-10 05:17:28 +00:00
|
|
|
ret = -EINVAL;
|
2008-10-27 06:09:27 +00:00
|
|
|
kfree_skb(skb);
|
2007-02-10 14:25:27 +00:00
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
|
2007-05-25 15:27:16 +00:00
|
|
|
lbs_deb_rx("rx data: skb->len-sizeof(RxPd) = %d-%zd = %zd\n",
|
2007-02-10 14:25:27 +00:00
|
|
|
skb->len, sizeof(struct rxpd), skb->len - sizeof(struct rxpd));
|
|
|
|
|
|
|
|
/* create the exported radio header */
|
|
|
|
|
2007-12-10 05:05:37 +00:00
|
|
|
/* radiotap header */
|
2010-05-27 18:41:20 +00:00
|
|
|
memset(&radiotap_hdr, 0, sizeof(radiotap_hdr));
|
|
|
|
/* XXX must check radiotap_hdr.hdr.it_pad for pad */
|
2007-12-10 05:05:37 +00:00
|
|
|
radiotap_hdr.hdr.it_len = cpu_to_le16 (sizeof(struct rx_radiotap_hdr));
|
|
|
|
radiotap_hdr.hdr.it_present = cpu_to_le32 (RX_RADIOTAP_PRESENT);
|
|
|
|
radiotap_hdr.rate = convert_mv_rate_to_radiotap(prxpd->rx_rate);
|
|
|
|
/* XXX must check no carryout */
|
|
|
|
radiotap_hdr.antsignal = prxpd->snr + prxpd->nf;
|
|
|
|
|
|
|
|
/* chop the rxpd */
|
|
|
|
skb_pull(skb, sizeof(struct rxpd));
|
|
|
|
|
|
|
|
/* add space for the new radio header */
|
|
|
|
if ((skb_headroom(skb) < sizeof(struct rx_radiotap_hdr)) &&
|
2007-12-10 05:17:28 +00:00
|
|
|
pskb_expand_head(skb, sizeof(struct rx_radiotap_hdr), 0, GFP_ATOMIC)) {
|
2011-05-02 23:49:15 +00:00
|
|
|
netdev_alert(dev, "%s: couldn't pskb_expand_head\n", __func__);
|
2007-12-10 05:17:28 +00:00
|
|
|
ret = -ENOMEM;
|
|
|
|
kfree_skb(skb);
|
|
|
|
goto done;
|
2007-02-10 14:25:27 +00:00
|
|
|
}
|
|
|
|
|
2007-12-10 05:05:37 +00:00
|
|
|
pradiotap_hdr = (void *)skb_push(skb, sizeof(struct rx_radiotap_hdr));
|
|
|
|
memcpy(pradiotap_hdr, &radiotap_hdr, sizeof(struct rx_radiotap_hdr));
|
|
|
|
|
2010-06-14 16:31:26 +00:00
|
|
|
priv->cur_rate = lbs_fw_index_to_data_rate(prxpd->rx_rate);
|
2007-02-10 14:25:27 +00:00
|
|
|
|
2007-05-25 15:27:16 +00:00
|
|
|
lbs_deb_rx("rx data: size of actual packet %d\n", skb->len);
|
2009-03-20 19:36:36 +00:00
|
|
|
dev->stats.rx_bytes += skb->len;
|
|
|
|
dev->stats.rx_packets++;
|
2007-02-10 14:25:27 +00:00
|
|
|
|
2010-06-14 16:31:26 +00:00
|
|
|
skb->protocol = eth_type_trans(skb, priv->dev);
|
|
|
|
|
|
|
|
if (in_interrupt())
|
|
|
|
netif_rx(skb);
|
|
|
|
else
|
|
|
|
netif_rx_ni(skb);
|
2007-05-18 20:04:33 +00:00
|
|
|
|
2007-02-10 14:25:27 +00:00
|
|
|
ret = 0;
|
|
|
|
|
2007-05-25 15:27:16 +00:00
|
|
|
done:
|
|
|
|
lbs_deb_leave_args(LBS_DEB_RX, "ret %d", ret);
|
|
|
|
return ret;
|
2007-02-10 14:25:27 +00:00
|
|
|
}
|