Re: [Bug 2905] New: Aironet 340 PCMCIA card not working since 2.6.7

From: Guennadi Liakhovetski
Date: Thu Jun 17 2004 - 14:59:57 EST


Don't think it will help for this specific problem, but this patch fixes alignment problem (especially seen on ARM, Russell:-)). Sending as a text attachment, as my setup is known to mangle tabs...

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@xxxxxx>

Thanks
Guennadi

On Thu, 17 Jun 2004 bugme-daemon@xxxxxxxx wrote:

http://bugme.osdl.org/show_bug.cgi?id=2905

Summary: Aironet 340 PCMCIA card not working since 2.6.7
Kernel Version: 2.6.7
Status: NEW
Severity: normal
Owner: rmk@xxxxxxxxxxxxxxxx
Submitter: hadmut@xxxxxxxxxx


Distribution: Debian
Hardware Environment: Dell Inspiron 3800, Cisco
Aironet 340 PCMCIA card
Software Environment:
Debian
Problem Description:

The system was working well with
2.4.x and 2.6.x kernels up to 2.6.6.

After upgrade to 2.6.7 the WLAN does n
not work anymore: There is no error message,
no warning, everything looks fine, except
for the fact that traffic is not possible.

Maybe a WEP problem?

regards
Hadmut

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



---
Guennadi Liakhovetski
diff -u a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c
--- a/drivers/net/wireless/airo.c 19 May 2004 16:06:36
+++ b/drivers/net/wireless/airo.c 17 Jun 2004 19:50:56
@@ -3151,11 +3151,12 @@
} else
hdrlen = ETH_ALEN * 2;

- skb = dev_alloc_skb( len + hdrlen + 2 );
+ skb = dev_alloc_skb( len + hdrlen + 2 + 2 );
if ( !skb ) {
apriv->stats.rx_dropped++;
goto badrx;
}
+ skb_reserve(skb, 2); /* This way the IP header is aligned */
buffer = (u16*)skb_put (skb, len + hdrlen);
if (test_bit(FLAG_802_11, &apriv->flags)) {
buffer[0] = fc;