netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gertjan van Wingerde <gwingerde@kpnplanet.nl>
To: netdev@vger.kernel.org
Cc: Jiri Benc <jbenc@suse.cz>, jkmaline@cc.hut.fi, linville@tuxdriver.com
Subject: [PATCH] d80211: Take lowlevel driver's channel change time into account during scanning.
Date: Sat, 01 Jul 2006 22:40:38 +0200	[thread overview]
Message-ID: <44A6DDC6.1040005@kpnplanet.nl> (raw)

Make the dscape stack take the driver-supplied channel change time into 
account when actively scanning for networks.
This particularly has been a problem in the rt2x00 driver, where 
configuration changes are done via a work-queue, and
the subsequent channel changes failed due to the dscape stack scheduling 
a channel update while the previous one had not
been performed yet, resulting in failed scans.

Signed-off-by: Gertjan van Wingerde <gwingerde@kpnplanet.nl>

diff --git a/net/d80211/ieee80211_sta.c b/net/d80211/ieee80211_sta.c
index 37d40aa..9f8653d 100644
--- a/net/d80211/ieee80211_sta.c
+++ b/net/d80211/ieee80211_sta.c
@@ -2503,7 +2503,8 @@ #endif
                        break;
                }

-               local->scan_timer.expires = jiffies + IEEE80211_PROBE_DELAY;
+               local->scan_timer.expires = jiffies + IEEE80211_PROBE_DELAY +
+                             usecs_to_jiffies(local->hw->channel_change_time);
                local->scan_state = SCAN_SEND_PROBE;
                break;
        case SCAN_SEND_PROBE:





             reply	other threads:[~2006-07-01 20:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-01 20:40 Gertjan van Wingerde [this message]
2006-07-03 11:58 ` [PATCH] d80211: Take lowlevel driver's channel change time into account during scanning Jiri Benc

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=44A6DDC6.1040005@kpnplanet.nl \
    --to=gwingerde@kpnplanet.nl \
    --cc=jbenc@suse.cz \
    --cc=jkmaline@cc.hut.fi \
    --cc=linville@tuxdriver.com \
    --cc=netdev@vger.kernel.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 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).