linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gertjan van Wingerde <gwingerde@gmail.com>
To: Aleksandar Milivojevic <alex@milivojevic.org>
Cc: Helmut Schaa <helmut.schaa@googlemail.com>,
	"Luis R. Rodriguez" <lrodriguez@atheros.com>,
	Luis Rodriguez <Luis.Rodriguez@atheros.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	Wolfgang Kufner <wolfgang.kufner@gmail.com>,
	Luis Correia <buga@loide.net>,
	"users@rt2x00.serialmonkey.com" <users@rt2x00.serialmonkey.com>
Subject: Re: [rt2x00-users] Linksys WUSB600N v1 disconnecting from AP
Date: Mon, 10 Jan 2011 08:30:53 +0100	[thread overview]
Message-ID: <4D2AB5AD.10201@gmail.com> (raw)
In-Reply-To: <AANLkTimDW2i1iKHG50__2BOYyvyWiii2eWVOP2HjkxtR@mail.gmail.com>

On 01/10/11 08:12, Aleksandar Milivojevic wrote:
> On Sat, Jan 8, 2011 at 1:47 AM, Helmut Schaa
> <helmut.schaa@googlemail.com> wrote:
>> Am Samstag, 8. Januar 2011 schrieb Aleksandar Milivojevic:
>>> Running 'iw event -t' shows a lot of disassociation due to inactivity.
>>>  This happens even if there is regular flow of traffic (for example, I
>>> start ping to my AP and leave it running, or I leave Pandora streaming
>>> music in the browser).
>>>
>>> Below is example of output of 'iw event -t' (these lines repeat in the
>>> output at irregularl intervals):
>>>
>>> 1294464037.037450: wlan0 (phy #0): deauth 00:1c:10:ea:2a:cb ->
>>> 00:1e:52:79:e9:ff reason 4: Disassociated due to inactivity
>>> 1294464037.037538: wlan0 (phy #0): disconnected (local request)
>>
>> Aha, so it's not the AP disassociating you but it's your client disconnecting
>> on its own. Mind to provide the wpa_supplicant log for the same situation when
>> run with "-ddt"?
> 
> Normally, I use NetworkManager, so all of wpa_supplican is kind of
> hidden under the hood.  For this, I stopped NetworkManager, and
> created following simple wpa_supplicant config file:
> 
> # WPA-PSK/TKIP
> ctrl_interface=/var/run/wpa_supplicant
> network={
>   ssid="MySSID"
>   scan_ssid=1
>   key_mgmt=WPA-PSK
>   psk="MyGreatSecret"
> }
> 
> Run wpa_supplicant by hand as "wpa_supplicant
> -c/path/to/my/wpa_supplicant.conf -iwlan0 -ddt".  The log is rather
> big, however I guess interesting part (if there's anything interesting
> there) is at the point where connection got dropped.  In
> /var/log/debug, I found following logged by the kernel (same as in
> previous logs I posted):
> 
> Jan  9 22:37:17 toporko kernel: [ 3152.500035] ieee80211 phy0: wlan0:
> No probe response from AP 00:1e:52:79:e9:ff after 500ms,
> disconnecting.
> Jan  9 22:37:19 toporko kernel: [ 3154.138808] cfg80211: All devices
> are disconnected, going to restore regulatory settings
> 
> The output of wpa_supplicant was quiet until above "no probe response"
> was logged by the kernel (1294641437 timestamp corresponds to 22:37:17
> local time):
> 
> 1294641437.407476: RTM_NEWLINK: operstate=1 ifi_flags=0x1003 ([UP])
> 1294641437.407493: RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
> 1294641439.045890: RTM_NEWLINK: operstate=1 ifi_flags=0x1003 ([UP])
> 1294641439.045908: RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
> 1294641439.045913: Wireless event: cmd=0x8b15 len=20
> 1294641439.045916: Wireless event: new AP: 00:00:00:00:00:00
> 1294641439.045930: Setting scan request: 0 sec 100000 usec
> 1294641439.045938: Added BSSID 00:1e:52:79:e9:ff into blacklist
> 1294641439.045944: CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
> 1294641439.045947: wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0
> seq_len=0 key_len=0
> 1294641439.045966: wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0
> seq_len=0 key_len=0
> 1294641439.045976: wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0
> seq_len=0 key_len=0
> 1294641439.045984: wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0
> seq_len=0 key_len=0
> 1294641439.045993: wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0
> seq_len=0 key_len=0
> 1294641439.046001: State: COMPLETED -> DISCONNECTED
> 1294641439.046007: wpa_driver_wext_set_operstate: operstate 1->0 (DORMANT)
> 1294641439.046010: WEXT: Operstate: linkmode=-1, operstate=5
> 1294641439.046027: EAPOL: External notification - portEnabled=0
> 1294641439.046032: EAPOL: SUPP_PAE entering state DISCONNECTED
> 1294641439.046034: EAPOL: SUPP_BE entering state INITIALIZE
> 1294641439.046038: EAPOL: External notification - portValid=0
> 1294641439.046041: EAPOL: External notification - EAP success=0
> 1294641439.146109: State: DISCONNECTED -> SCANNING
> 1294641439.146128: Starting AP scan (broadcast SSID)
> 1294641439.148479: Scan requested (ret=0) - scan timeout 30 seconds
> 
> And the following lines look just like standard
> scan/authentication/association thing...  Not sure if anything of the
> above is of any use...

Am I correct in that you are using TKIP encryption on your wireless network?

Please note that there currently is a bug in rt2800usb/rt2800pci where TKIP
hardware encryption is not working at all, and we haven't been able to track
that bug down yet.

Can you try to switch your network to AES encryption, or load the rt2800usb
driver with nohwcrypt module parameter enabled, and check what happens?

--
Gertjan

      reply	other threads:[~2011-01-10  7:30 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AANLkTim0AM3=T=TMu79ZQi79+CKANamBcz620n2xm8bW@mail.gmail.com>
2011-01-04 18:46 ` [rt2x00-users] Linksys WUSB600N v1 disconnecting from AP Helmut Schaa
2011-01-04 19:01   ` Luis Correia
     [not found]     ` <AANLkTi=KFG-7GPw2=6VTZqEceEcJM6OdWoTQaN_83NqP@mail.gmail.com>
     [not found]       ` <AANLkTikREOFV+WGWgo9yh9bTrz346kF0muKE8gs5N+km@mail.gmail.com>
2011-01-04 21:53         ` Aleksandar Milivojevic
2011-01-04 22:31           ` Wolfgang Kufner
2011-01-05  6:57             ` Aleksandar Milivojevic
2011-01-05 10:32               ` Wolfgang Kufner
2011-01-06  4:11                 ` Aleksandar Milivojevic
2011-01-06  7:09                   ` Aleksandar Milivojevic
2011-01-06 16:31                     ` Aleksandar Milivojevic
2011-01-07  2:44                       ` Luis R. Rodriguez
2011-01-07 10:11                         ` Helmut Schaa
2011-01-07 19:46                           ` Aleksandar Milivojevic
2011-01-07 20:22                             ` Luis R. Rodriguez
2011-01-07 22:13                               ` Peter Stuge
2011-01-07 22:18                                 ` Luis R. Rodriguez
2011-01-07 23:00                                   ` Peter Stuge
2011-01-07 23:26                                 ` Jouni Malinen
2011-01-07 22:54                               ` Aleksandar Milivojevic
2011-01-08  6:14                               ` Aleksandar Milivojevic
2011-01-08  9:47                                 ` Helmut Schaa
2011-01-10  7:12                                   ` Aleksandar Milivojevic
2011-01-10  7:30                                     ` Gertjan van Wingerde [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D2AB5AD.10201@gmail.com \
    --to=gwingerde@gmail.com \
    --cc=Luis.Rodriguez@atheros.com \
    --cc=alex@milivojevic.org \
    --cc=buga@loide.net \
    --cc=helmut.schaa@googlemail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=lrodriguez@atheros.com \
    --cc=users@rt2x00.serialmonkey.com \
    --cc=wolfgang.kufner@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).