public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Bug 2905] New: Aironet 340 PCMCIA card not working since 2.6.7
@ 2004-06-17 17:53 bugme-daemon
  2004-06-17 19:58 ` Guennadi Liakhovetski
  0 siblings, 1 reply; 11+ messages in thread
From: bugme-daemon @ 2004-06-17 17:53 UTC (permalink / raw)
  To: rmk

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@arm.linux.org.uk
         Submitter: hadmut@danisch.de


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.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Bug 2905] New: Aironet 340 PCMCIA card not working since 2.6.7
  2004-06-17 17:53 [Bug 2905] New: Aironet 340 PCMCIA card not working since 2.6.7 bugme-daemon
@ 2004-06-17 19:58 ` Guennadi Liakhovetski
  2004-06-17 22:42   ` Jesper Juhl
  2004-06-23 12:24   ` Russell King
  0 siblings, 2 replies; 11+ messages in thread
From: Guennadi Liakhovetski @ 2004-06-17 19:58 UTC (permalink / raw)
  To: linux-kernel; +Cc: rmk

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1477 bytes --]

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@gmx.de>

Thanks
Guennadi

On Thu, 17 Jun 2004 bugme-daemon@osdl.org 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@arm.linux.org.uk
>         Submitter: hadmut@danisch.de
>
>
> 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@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>
>

---
Guennadi Liakhovetski

[-- Attachment #2: Type: TEXT/PLAIN, Size: 609 bytes --]

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;

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Bug 2905] New: Aironet 340 PCMCIA card not working since 2.6.7
  2004-06-17 19:58 ` Guennadi Liakhovetski
@ 2004-06-17 22:42   ` Jesper Juhl
  2004-06-18 15:39     ` Horst von Brand
  2004-06-18 18:17     ` Guennadi Liakhovetski
  2004-06-23 12:24   ` Russell King
  1 sibling, 2 replies; 11+ messages in thread
From: Jesper Juhl @ 2004-06-17 22:42 UTC (permalink / raw)
  To: Guennadi Liakhovetski; +Cc: linux-kernel, rmk


> -			skb = dev_alloc_skb( len + hdrlen + 2 );
> +			skb = dev_alloc_skb( len + hdrlen + 2 + 2 );

nitpicking, but why not
	skb = dev_alloc_skb( len + hdrlen + 4 );
?


--
Jesper Juhl <juhl-lkml@dif.dk>


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Bug 2905] New: Aironet 340 PCMCIA card not working since 2.6.7
  2004-06-17 22:42   ` Jesper Juhl
@ 2004-06-18 15:39     ` Horst von Brand
  2004-06-18 18:17     ` Guennadi Liakhovetski
  1 sibling, 0 replies; 11+ messages in thread
From: Horst von Brand @ 2004-06-18 15:39 UTC (permalink / raw)
  To: Jesper Juhl; +Cc: Guennadi Liakhovetski, linux-kernel, rmk

Jesper Juhl <juhl-lkml@dif.dk> said:
> Guennadi Liakhovetski <g.liakhovetski@gmx.de> said:
> > -			skb = dev_alloc_skb( len + hdrlen + 2 );
> > +			skb = dev_alloc_skb( len + hdrlen + 2 + 2 );
> 
> nitpicking, but why not
> 	skb = dev_alloc_skb( len + hdrlen + 4 );
> ?

- It makes no difference (C forces constant expresions to be computed at
  compile time)
- It _does_ matter if the 2 + 2 is clearer than 4
-- 
Dr. Horst H. von Brand                   User #22616 counter.li.org
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Bug 2905] New: Aironet 340 PCMCIA card not working since 2.6.7
  2004-06-17 22:42   ` Jesper Juhl
  2004-06-18 15:39     ` Horst von Brand
@ 2004-06-18 18:17     ` Guennadi Liakhovetski
  1 sibling, 0 replies; 11+ messages in thread
From: Guennadi Liakhovetski @ 2004-06-18 18:17 UTC (permalink / raw)
  To: Jesper Juhl; +Cc: linux-kernel, rmk

On Fri, 18 Jun 2004, Jesper Juhl wrote:

>
>> -			skb = dev_alloc_skb( len + hdrlen + 2 );
>> +			skb = dev_alloc_skb( len + hdrlen + 2 + 2 );
>
> nitpicking, but why not
> 	skb = dev_alloc_skb( len + hdrlen + 4 );
> ?

Well, I just didn't have my pocket calculator at hand at that moment, so, 
I decided to let the compiler compute it for me:-) It's just short for

#define SKB_ALIGN 2
 	skb = dev_alloc_skb( len + hdrlen + 2 + SKB_ALIGN );
 	skb_reserve(skb, SKB_ALIGN);

Guennadi
---
Guennadi Liakhovetski


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Bug 2905] New: Aironet 340 PCMCIA card not working since 2.6.7
  2004-06-17 19:58 ` Guennadi Liakhovetski
  2004-06-17 22:42   ` Jesper Juhl
@ 2004-06-23 12:24   ` Russell King
  2004-06-23 19:54     ` Guennadi Liakhovetski
  1 sibling, 1 reply; 11+ messages in thread
From: Russell King @ 2004-06-23 12:24 UTC (permalink / raw)
  To: Guennadi Liakhovetski; +Cc: linux-kernel

On Thu, Jun 17, 2004 at 09:58:32PM +0200, Guennadi Liakhovetski wrote:
> 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@gmx.de>

Can you forward this to Jeff Garzik please?

Thanks.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 PCMCIA      - http://pcmcia.arm.linux.org.uk/
                 2.6 Serial core

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Bug 2905] New: Aironet 340 PCMCIA card not working since 2.6.7
  2004-06-23 12:24   ` Russell King
@ 2004-06-23 19:54     ` Guennadi Liakhovetski
  2004-07-13 22:13       ` Guennadi Liakhovetski
  2004-07-14 19:07       ` Jeff Garzik
  0 siblings, 2 replies; 11+ messages in thread
From: Guennadi Liakhovetski @ 2004-06-23 19:54 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Russell King, linux-kernel

[-- Attachment #1: Type: TEXT/PLAIN, Size: 722 bytes --]

On Wed, 23 Jun 2004, Russell King wrote:

> On Thu, Jun 17, 2004 at 09:58:32PM +0200, Guennadi Liakhovetski wrote:
>> 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@gmx.de>
>
> Can you forward this to Jeff Garzik please?

Jeff, please, apply to 2.6. It should also go into 2.4, it is quite 
trivial and is actually a bugfix. Don't know if it will aply to 
2.4, if not, and if you prefer me to do it rather than do it yourself, I 
could rediff it against 2.4 too.

Thanks
Guennadi
---
Guennadi Liakhovetski

[-- Attachment #2: Type: TEXT/PLAIN, Size: 609 bytes --]

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;

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Bug 2905] New: Aironet 340 PCMCIA card not working since 2.6.7
  2004-06-23 19:54     ` Guennadi Liakhovetski
@ 2004-07-13 22:13       ` Guennadi Liakhovetski
  2004-07-14 19:07       ` Jeff Garzik
  1 sibling, 0 replies; 11+ messages in thread
From: Guennadi Liakhovetski @ 2004-07-13 22:13 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Russell King, linux-kernel

On Wed, 23 Jun 2004, Guennadi Liakhovetski wrote:

> On Wed, 23 Jun 2004, Russell King wrote:
>
>> On Thu, Jun 17, 2004 at 09:58:32PM +0200, Guennadi Liakhovetski wrote:
>>> 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@gmx.de>
>> 
>> Can you forward this to Jeff Garzik please?
>
> Jeff, please, apply to 2.6. It should also go into 2.4, it is quite trivial 
> and is actually a bugfix. Don't know if it will aply to 2.4, if not, and if 
> you prefer me to do it rather than do it yourself, I could rediff it against 
> 2.4 too.

Jeff

It's not yet in 2.6.7, didn't see it in  2.6.8-rc1 announcement either, 
didn't check the code though. Have I missed it, or is it still not 
applied? Are you considering applying it to a later version?

Thanks
Guennadi
---
Guennadi Liakhovetski


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Bug 2905] New: Aironet 340 PCMCIA card not working since 2.6.7
  2004-06-23 19:54     ` Guennadi Liakhovetski
  2004-07-13 22:13       ` Guennadi Liakhovetski
@ 2004-07-14 19:07       ` Jeff Garzik
  2004-07-14 21:08         ` Guennadi Liakhovetski
  1 sibling, 1 reply; 11+ messages in thread
From: Jeff Garzik @ 2004-07-14 19:07 UTC (permalink / raw)
  To: Guennadi Liakhovetski; +Cc: Russell King, linux-kernel

applied


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Bug 2905] New: Aironet 340 PCMCIA card not working since 2.6.7
  2004-07-14 19:07       ` Jeff Garzik
@ 2004-07-14 21:08         ` Guennadi Liakhovetski
  2004-07-14 21:24           ` Jeff Garzik
  0 siblings, 1 reply; 11+ messages in thread
From: Guennadi Liakhovetski @ 2004-07-14 21:08 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Russell King, linux-kernel

On Wed, 14 Jul 2004, Jeff Garzik wrote:

> applied

Thanks. To 2.6 only or to 2.4 too? Or shall I send a separate patch for 
2.4?

Guennadi
---
Guennadi Liakhovetski


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Bug 2905] New: Aironet 340 PCMCIA card not working since 2.6.7
  2004-07-14 21:08         ` Guennadi Liakhovetski
@ 2004-07-14 21:24           ` Jeff Garzik
  0 siblings, 0 replies; 11+ messages in thread
From: Jeff Garzik @ 2004-07-14 21:24 UTC (permalink / raw)
  To: Guennadi Liakhovetski; +Cc: Russell King, linux-kernel

Guennadi Liakhovetski wrote:
> On Wed, 14 Jul 2004, Jeff Garzik wrote:
> 
>> applied
> 
> 
> Thanks. To 2.6 only or to 2.4 too? Or shall I send a separate patch for 
> 2.4?


Please send a separate patch for 2.4.x.

Also, please note your patch was base64-encoded, and thus broke my 
patch-apply scripts.

	Jeff



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-07-14 21:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-17 17:53 [Bug 2905] New: Aironet 340 PCMCIA card not working since 2.6.7 bugme-daemon
2004-06-17 19:58 ` Guennadi Liakhovetski
2004-06-17 22:42   ` Jesper Juhl
2004-06-18 15:39     ` Horst von Brand
2004-06-18 18:17     ` Guennadi Liakhovetski
2004-06-23 12:24   ` Russell King
2004-06-23 19:54     ` Guennadi Liakhovetski
2004-07-13 22:13       ` Guennadi Liakhovetski
2004-07-14 19:07       ` Jeff Garzik
2004-07-14 21:08         ` Guennadi Liakhovetski
2004-07-14 21:24           ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox