2012-01-28 14:56:18

by trencan

[permalink] [raw]
Subject: connection interrupted for rt61pci in master mode


Hello,

I have RaLink RT2561/RT61 802.11g PCI wireless card and use it in master mode as AP. I have latest Mandriva 2011.0 distro with kernel 2.6.38.7-desktop-1mnb2. Driver for wifi card is rt61pci. If I connect via wifi from another PC then after some small time I get connection interrupted and I must disconnect and reconnect again. I tried latest compat-wireless-3.3-rc1-2 and also latest hostapd-0.7.3, but still same issue. In previous Mandriva version 2010.2 I had kernel 2.6.33.7-desktop-2mnb, hostapd-0.6.7 and it worked perfectly. Hostapd uses driver=nl80211, mode=g, channel=11. There are no errors in messages. I know it is not issue of the client machine, since same behavior I have if I connect to AP with HTC smartphone. Is it any known bug of rt61pci driver or hostapd?

Thanks.

Regards.


2012-01-31 07:49:47

by Helmut Schaa

[permalink] [raw]
Subject: Re: connection interrupted for rt61pci in master mode

On Mon, Jan 30, 2012 at 7:18 PM, <[email protected]> wrote:
> I made the test again, got connection interrupted on client, but folder
> "/sys/kernel/debug/ieee80211/phy0/" was empty on server, no rt2800pci
> inside. Do I make anything wrongly?

Hmm, rt2x00 needs to be build with debug/debugfs support:

CONFIG_RT2X00_LIB_DEBUGFS
CONFIG_RT2X00_DEBUG

Helmut

2012-01-29 20:34:14

by Helmut Schaa

[permalink] [raw]
Subject: Re: connection interrupted for rt61pci in master mode

Am Samstag, 28. Januar 2012, 15:45:44 schrieb [email protected]:
> I have RaLink RT2561/RT61 802.11g PCI wireless card and use it in master
> mode as AP. I have latest Mandriva 2011.0 distro with kernel
> 2.6.38.7-desktop-1mnb2. Driver for wifi card is rt61pci. If I connect
> via wifi from another PC then after some small time I get connection
> interrupted and I must disconnect and reconnect again. I tried latest
> compat-wireless-3.3-rc1-2 and also latest hostapd-0.7.3, but still
> same issue. In previous Mandriva version 2010.2 I had kernel
> 2.6.33.7-desktop-2mnb, hostapd-0.6.7 and it worked perfectly.
> Hostapd uses driver=nl80211, mode=g, channel=11. There are no errors
> in messages. I know it is not issue of the client machine, since same
> behavior I have if I connect to AP with HTC smartphone. Is it any
> known bug of rt61pci driver or hostapd?

Not known (to me) yet but might be a bug in rt61pci. Could you please
provide the output of
cat /sys/kernel/debug/ieee80211/phy0/rt2800pci/queues/*
?

Thanks,
Helmut

2012-01-31 20:28:04

by trencan

[permalink] [raw]
Subject: Re: connection interrupted for rt61pci in master mode


Hello,

I set CONFIG_RT2X00_LIB_DEBUGFS=y and CONFIG_RT2X00_DEBUG=y in config.mk. Then I saw 3 files in "/sys/kernel/debug/ieee80211/phy0/rt61pci/queue/"
-r--r--r-- 1 root root 0 Jan 31 20:32 crypto
-r-------- 1 root root 0 Jan 31 20:32 dump
-r-------- 1 root root 0 Jan 31 20:32 queue

One of them "dump" was still continuosly growing. I stopped catting after connection interrupted occured. Do you need all them three? Should I send it only to your email? Packed dump file has 820kB. Queue and Crypto are of small sizes.

Thanks.

Michal


______________________________________________________________
> Od: "Helmut Schaa" <[email protected]>
> Komu: <[email protected]>
> Datum: 31.01.2012 08:49
> Předmět: Re: connection interrupted for rt61pci in master mode
>
> CC: [email protected]
>On Mon, Jan 30, 2012 at 7:18 PM, <[email protected]> wrote:
>> I made the test again, got connection interrupted on client, but folder
>> "/sys/kernel/debug/ieee80211/phy0/" was empty on server, no rt2800pci
>> inside. Do I make anything wrongly?
>
>Hmm, rt2x00 needs to be build with debug/debugfs support:
>
>CONFIG_RT2X00_LIB_DEBUGFS
>CONFIG_RT2X00_DEBUG
>
>Helmut
>

2012-01-30 18:18:22

by trencan

[permalink] [raw]
Subject: Re: connection interrupted for rt61pci in master mode


Hello,

I made the test again, got connection interrupted on client, but folder "/sys/kernel/debug/ieee80211/phy0/" was empty on server, no rt2800pci inside. Do I make anything wrongly?

Thanks.
Michal


______________________________________________________________
> Od: "Helmut Schaa" <[email protected]>
> Komu: <[email protected]>
> Datum: 29.01.2012 21:15
> Předmět: Re: connection interrupted for rt61pci in master mode
>
> CC: [email protected]
>Am Samstag, 28. Januar 2012, 15:45:44 schrieb [email protected]:
>> I have RaLink RT2561/RT61 802.11g PCI wireless card and use it in master
>> mode as AP. I have latest Mandriva 2011.0 distro with kernel
>> 2.6.38.7-desktop-1mnb2. Driver for wifi card is rt61pci. If I connect
>> via wifi from another PC then after some small time I get connection
>> interrupted and I must disconnect and reconnect again. I tried latest
>> compat-wireless-3.3-rc1-2 and also latest hostapd-0.7.3, but still
>> same issue. In previous Mandriva version 2010.2 I had kernel
>> 2.6.33.7-desktop-2mnb, hostapd-0.6.7 and it worked perfectly.
>> Hostapd uses driver=nl80211, mode=g, channel=11. There are no errors
>> in messages. I know it is not issue of the client machine, since same
>> behavior I have if I connect to AP with HTC smartphone. Is it any
>> known bug of rt61pci driver or hostapd?
>
>Not known (to me) yet but might be a bug in rt61pci. Could you please
>provide the output of
> cat /sys/kernel/debug/ieee80211/phy0/rt2800pci/queues/*
>?
>
>Thanks,
>Helmut
>

2012-02-07 20:48:04

by trencan

[permalink] [raw]
Subject: Re: connection interrupted for rt61pci in master mode


I tried maxcpus=0 and verified that really only one cpu core is used but didn't help (so not smp problem). I realized that sometimes when I see connection interrupted, then after few seconds it recovers and network is again functional. 802.11n is disabled. One more thing, when i do "ifup wlan0" I get following output:
NETLINK: Packet too small or truncated! 56!=16!=996
is it OK?

Regards.
Michal

______________________________________________________________
> Od: "Andreas Hartmann" <[email protected]>
> Komu: Helmut Schaa <[email protected]>
> Datum: 07.02.2012 08:37
> Předmět: Re: connection interrupted for rt61pci in master mode
>
> CC: "linux-wireless" <[email protected]>
>Hello Helmut,
>
>could it be potentially a problem with smp or does the fix you provided
>for rt2860 based wlan devices applies too for rt61pci?
>
>I'm thinking about that, because I saw the same problems here some time
>ago. And probably I can see it too with rt2800usb [1].
>
>
>@Michal:
>Just to verify (or falsify) this hypothesis: Could you please reboot the
>machine with the additional kernel option maxcpus=0 (you can enter it in
>the grub console) to just use cpu 0 (please verify with "cat
>/proc/cpuinfo"). If the problem disappears, it's most probably smp related.
>
>Another question: you didn't activate 802.11n. Is this correct?
>
>
>Regards,
>Andreas
>
>[email protected] schrieb:
>>
>> Machine has "Intel Core i5-2500K" with 4 cores without Hyper-Threading.
>>
>> Regards.
>> Michal
>
>
>Regards,
>Andreas
>
>
>[1]
>http://rt2x00.serialmonkey.com/pipermail/users_rt2x00.serialmonkey.com/2012-February/004556.html
>

2012-02-07 05:59:33

by Andreas Hartmann

[permalink] [raw]
Subject: Re: connection interrupted for rt61pci in master mode

[email protected] schrieb:
>
> Hello,
>
> I have RaLink RT2561/RT61 802.11g PCI wireless card and use it in
> master mode as AP. I have latest Mandriva 2011.0 distro with kernel
> 2.6.38.7-desktop-1mnb2. Driver for wifi card is rt61pci. If I connect
> via wifi from another PC then after some small time I get connection
> interrupted and I must disconnect and reconnect again. I tried latest
> compat-wireless-3.3-rc1-2 and also latest hostapd-0.7.3, but still
> same issue. In previous Mandriva version 2010.2 I had kernel
> 2.6.33.7-desktop-2mnb, hostapd-0.6.7 and it worked perfectly. Hostapd
> uses driver=nl80211, mode=g, channel=11.

What about the machine rt61pci runs on? Does the machine have one single
core cpu or is it a multi core / processor machine (smp)?


Regards,
Andreas

2012-02-07 07:37:18

by Andreas Hartmann

[permalink] [raw]
Subject: Re: connection interrupted for rt61pci in master mode

Hello Helmut,

could it be potentially a problem with smp or does the fix you provided
for rt2860 based wlan devices applies too for rt61pci?

I'm thinking about that, because I saw the same problems here some time
ago. And probably I can see it too with rt2800usb [1].


@Michal:
Just to verify (or falsify) this hypothesis: Could you please reboot the
machine with the additional kernel option maxcpus=0 (you can enter it in
the grub console) to just use cpu 0 (please verify with "cat
/proc/cpuinfo"). If the problem disappears, it's most probably smp related.

Another question: you didn't activate 802.11n. Is this correct?


Regards,
Andreas

[email protected] schrieb:
>
> Machine has "Intel Core i5-2500K" with 4 cores without Hyper-Threading.
>
> Regards.
> Michal


Regards,
Andreas


[1]
http://rt2x00.serialmonkey.com/pipermail/users_rt2x00.serialmonkey.com/2012-February/004556.html

2012-02-08 07:00:07

by Andreas Hartmann

[permalink] [raw]
Subject: Re: connection interrupted for rt61pci in master mode

Hello Michal,

[email protected] schrieb:
>
> I tried maxcpus=0 and verified that really only one cpu core is used
> but didn't help (so not smp problem).

Thank you for examining! At least a smp related problem should be
eliminated now!


Kind regards,
Andreas

2012-02-07 06:14:46

by trencan

[permalink] [raw]
Subject: Re: connection interrupted for rt61pci in master mode


Machine has "Intel Core i5-2500K" with 4 cores without Hyper-Threading.

Regards.
Michal

______________________________________________________________
> Od: "Andreas Hartmann" <[email protected]>
> Komu: <[email protected]>
> Datum: 07.02.2012 07:07
> Předmět: Re: connection interrupted for rt61pci in master mode
>
>[email protected] schrieb:
>>
>> Hello,
>>
>> I have RaLink RT2561/RT61 802.11g PCI wireless card and use it in
>> master mode as AP. I have latest Mandriva 2011.0 distro with kernel
>> 2.6.38.7-desktop-1mnb2. Driver for wifi card is rt61pci. If I connect
>> via wifi from another PC then after some small time I get connection
>> interrupted and I must disconnect and reconnect again. I tried latest
>> compat-wireless-3.3-rc1-2 and also latest hostapd-0.7.3, but still
>> same issue. In previous Mandriva version 2010.2 I had kernel
>> 2.6.33.7-desktop-2mnb, hostapd-0.6.7 and it worked perfectly. Hostapd
>> uses driver=nl80211, mode=g, channel=11.
>
>What about the machine rt61pci runs on? Does the machine have one single
>core cpu or is it a multi core / processor machine (smp)?
>
>
>Regards,
>Andreas
>

2012-02-02 08:04:51

by Helmut Schaa

[permalink] [raw]
Subject: Re: connection interrupted for rt61pci in master mode

On Wed, Feb 1, 2012 at 9:00 AM, Helmut Schaa
<[email protected]> wrote:
> On Tue, Jan 31, 2012 at 9:21 PM, ?<[email protected]> wrote:
>> One of them "dump" was still continuosly growing. I stopped catting after connection interrupted occured. Do you need all them three? Should I send it only to your email? Packed dump file has 820kB. Queue and Crypto are of small sizes.
>
> I'd only like to see the content of "queue" when the problem happens.

Was the output you've send me from the time the problem occured?
At least the queues are not stuck somehow, so must be something else ...

Helmut

2012-02-01 08:00:32

by Helmut Schaa

[permalink] [raw]
Subject: Re: connection interrupted for rt61pci in master mode

On Tue, Jan 31, 2012 at 9:21 PM, <[email protected]> wrote:
> One of them "dump" was still continuosly growing. I stopped catting after connection interrupted occured. Do you need all them three? Should I send it only to your email? Packed dump file has 820kB. Queue and Crypto are of small sizes.

I'd only like to see the content of "queue" when the problem happens.
Helmut

2012-02-06 19:18:04

by trencan

[permalink] [raw]
Subject: Re: connection interrupted for rt61pci in master mode

Hello,

I send another queue file, is there seen root cause of connection interrupted?

Thanks.

Michal

______________________________________________________________
> Od: "Helmut Schaa" <[email protected]>
> Komu: <[email protected]>
> Datum: 02.02.2012 09:04
> Předmět: Re: connection interrupted for rt61pci in master mode
>
> CC: [email protected]
>On Wed, Feb 1, 2012 at 9:00 AM, Helmut Schaa
><[email protected]> wrote:
>> On Tue, Jan 31, 2012 at 9:21 PM,  <[email protected]> wrote:
>>> One of them "dump" was still continuosly growing. I stopped catting after connection interrupted occured. Do you need all them three? Should I send it only to your email? Packed dump file has 820kB. Queue and Crypto are of small sizes.
>>
>> I'd only like to see the content of "queue" when the problem happens.
>
>Was the output you've send me from the time the problem occured?
>At least the queues are not stuck somehow, so must be something else ...
>
>Helmut
>


Attachments:
queue.log (228.00 B)