All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luis R. Rodriguez <lrodriguez@atheros.com>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] N mode
Date: Wed, 5 Aug 2009 13:53:12 -0700	[thread overview]
Message-ID: <20090805205312.GG4727@mosca> (raw)
In-Reply-To: <4A79E72B.7030207@gmail.com>

On Wed, Aug 05, 2009 at 01:10:19PM -0700, Dmitri Seletski wrote:
> Sorry, please cut out the emotional part.
> script seemed to help me a bit...

Dmitry, I don't have time to look at your logs right now, but
am hoping someone in our team will be soon.

But as far as your disconnects are concerned I'll note that
some others users were experiencing similar issues when using
wireless-testing, a few patches were added recently to address
some of these issues, namely:

commit 3810f40f71ccf690bc10152fb0706f7a4e9b8e87
Author: Maxim Levitsky <maximlevitsky@gmail.com>
Date:   Fri Jul 31 18:54:23 2009 +0300

    mac80211: Increase timeouts for station polling
    
    Do a probe request every 30 seconds, and wait for probe response,
    half a second This should lower the traffic that card sends, thus save
    power Wainting longer for response makes probe more robust against
    'slow' access points
    
    Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
    Acked-by: Johannes Berg <johannes@sipsolutions.net>
    Tested-by: Marcel Holtmann <marcel@holtmann.org>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>

commit 9004c35534fbdb452d2f544c8ae59dcadc486465
Author: Maxim Levitsky <maximlevitsky@gmail.com>
Date:   Fri Jul 31 18:54:12 2009 +0300

    mac80211: Retry probe request few times
    
    Retry 5 times  (chosen arbitary ), before assuming
    that station is out of range.
    
    Fixes frequent disassociations while connected to weak,
    and sometimes even strong access points.
    
    Signed-off-by: Maxim Levitky <maximlevitsky@gmail.com>
    Acked-by: Johannes Berg <johannes@sipsolutions.net>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>


Check git log net/mac80211/ and see if you see these there.

Also, there does seem to be a regression on wireless-testing
right now regarding re-association, I'll let you know more
about it the more I find but I believe Johannes is already
working on it, I am not really sure of the details or if
this can be affecting you right now.

Also, 'iw dev wlan0 connect foo' will work but expect to be
disconnected eventually due to noise or in your case due to
inactivity. Instead of scripting out a way to always connect
you can just use wpa_supplicant to help 'roam' so that it
keeps re-associating for you if disconnected. I tend to 
use 'iw dev wlan0 connect foo' only to test things, if I want
to ensure I always remain connected I use wpa_supplicant with
roaming enabled, I do this even with no encryption enabled.

mcgrof at tux ~ $ cat mosca.conf 
ctrl_interface=/var/run/wpa_supplicant
ap_scan=1
network={
	ssid="mosca"
	scan_ssid=1
	key_mgmt=NONE
}

sudo wpa_supplicant -D nl80211 -c mosca.conf -i wlan0

While at it you might as well get the latest supplicant from git:

git clone git://w1.fi/srv/git/hostap.git
cd hostap/wpa_supplicant
cp defconfig .config

Then edit .config and ensure you have these enabled:

# Driver interface for generic Linux wireless extensions
CONFIG_DRIVER_WEXT=y
# Driver interface for Linux drivers using the nl80211 kernel interface
CONFIG_DRIVER_NL80211=y

Build it and install it.

Keep in mind we need to address two issues here:

1) Your current disconnect issues
2) Your card not being able to complete association (was this the issue?)
   to your AP when 802.11n is enabled.

We should focus on both for sure but be sure to help try to isolate the
issues so we don't get them mixed up.

To help more with this it may help for you to put logs for both separetely,
from the kernel, 'iw event -t', and the wpa_supplicant logs with "-d" added
to increase verbosity.

Can you please create two directories and put logs into them for both of these
issues? The easier it is to separate the issues and review the logs the easier
it will be review your issues and help you resolve them.

Don't bother with tcpdump/wireshark dumps for now. Only provide them if
you are asked.

  Luis

  reply	other threads:[~2009-08-05 20:53 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-16 12:46 [ath9k-devel] N mode Dmitri Seletski
2009-05-16 21:23 ` Dmitri Seletski
2009-05-18 15:33   ` Luis R. Rodriguez
2009-05-18 20:56     ` Dmitri Seletski
2009-05-18 20:57       ` Dmitri Seletski
2009-05-18 21:14         ` Luis R. Rodriguez
2009-05-18 21:33           ` Dmitri Seletski
2009-05-18 22:45             ` Luis R. Rodriguez
2009-05-18 23:09               ` Dmitri Seletski
2009-05-18 23:29                 ` Luis R. Rodriguez
2009-05-18 23:34                   ` Dmitri Seletski
2009-05-18 23:59                     ` Luis R. Rodriguez
2009-05-19  0:10                       ` Luis R. Rodriguez
2009-05-19  0:24                         ` Luis R. Rodriguez
2009-05-19  0:33                         ` Dmitri Seletski
2009-05-19  0:41                           ` Luis R. Rodriguez
2009-05-19 18:55                             ` Dmitri Seletski
2009-05-26 21:42                               ` Luis R. Rodriguez
     [not found]                           ` <4A2E8611.6010401@gmail.com>
     [not found]                             ` <20090609214205.GD12776@tesla>
     [not found]                               ` <4A2EDB3B.9020503@gmail.com>
     [not found]                                 ` <20090609220733.GF12776@tesla>
     [not found]                                   ` <4A2EDF1E.4000707@gmail.com>
     [not found]                                     ` <4A3445CC.7010607@gmail.com>
     [not found]                                       ` <20090615160144.GB19674@tesla>
2009-06-15 17:47                                         ` Luis R. Rodriguez
2009-06-15 20:28                                           ` Dmitri Seletski
     [not found]                                             ` <4A36CFF9.6070506@gmail.com>
     [not found]                                               ` <20090616003715.GA5492@tesla>
2009-07-25  0:49                                                 ` Dmitri Seletski
2009-07-25 17:37                                                   ` Senthilkumar Balasubramanian
2009-07-25 18:54                                                     ` Dmitri Seletski
2009-07-27 20:04                                                     ` Dmitri Seletski
2009-08-05  3:43                                                     ` Dmitri Seletski
2009-08-05 15:34                                                       ` Luis R. Rodriguez
2009-08-05 15:54                                                         ` Dmitri Seletski
2009-08-05 16:34                                                           ` Dmitri Seletski
2009-08-05 17:11                                                             ` Luis R. Rodriguez
2009-08-05 19:51                                                               ` Dmitri Seletski
2009-08-05 20:10                                                                 ` Dmitri Seletski
2009-08-05 20:53                                                                   ` Luis R. Rodriguez [this message]
2009-08-05 20:57                                                                     ` Luis R. Rodriguez
2009-08-06 13:53                                                                     ` [ath9k-devel] N compile SUSE bnc
2009-08-06 19:42                                                                       ` Pavel Roskin
2009-09-15 11:28                                                                     ` [ath9k-devel] N mode Dmitri Seletski
2009-05-18 23:36                   ` Dmitri Seletski
2009-05-18 21:09       ` Luis R. Rodriguez
2009-05-18 21:17         ` Dmitri Seletski

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=20090805205312.GG4727@mosca \
    --to=lrodriguez@atheros.com \
    --cc=ath9k-devel@lists.ath9k.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.