Re: Problem with TEW-USB WEP ?
Luca Macciò <[email protected]>
| Newsgroups | gmane.linux.drivers.atmel-wlan |
|---|---|
| Message-ID | <[email protected]> |
Hi Jörg, I've found my problem on at76c503.c for truncated 4 bits !!!
I've corrected after line 2824 in function *check_for_rx_frags(struct
at76c503 *dev)
where is a (length-4 ) when copy packet and than working OK !
I now joing to AP for send this mail !
Tomorrow I'm busy elsewhere but Thursday 10 I looking better for error in
code and send to you a complete report.
Thank you for collaboration !
if (fragnr == 0 && !(i802_11_hdr->frame_ctl & IEEE802_11_FCTL_MOREFRAGS)) {
/* unfragmented packet received */
if (length < rx_copybreak && (skb = dev_alloc_skb(length)) != NULL) {
/*
memcpy(skb_put(skb, length-4),
dev->rx_skb->data + AT76C503_RX_HDRLEN, length-4);
*/
memcpy(skb_put(skb, length),
dev->rx_skb->data + AT76C503_RX_HDRLEN, length);
} else {
skb_pull(skb, AT76C503_RX_HDRLEN);
// skb_trim(skb, length-4);
/* Use a new skb for the next receive */
dev->rx_skb = NULL;
}
_________________________________________________________________
Invia messaggi istantanei gratuitamente! http://www.msn.it/messenger/