linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/2] cfg80211: Retrieve missing BSS info after connect
@ 2010-02-06 13:20 David Kilroy
  2010-02-06 13:20 ` [RFC 1/2] cfg80211: generic trigger scan and callback on completion David Kilroy
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: David Kilroy @ 2010-02-06 13:20 UTC (permalink / raw)
  To: linux-wireless; +Cc: holgerschurig, sameo, dcbw, David Kilroy

This patchset attempts to address the issue where a driver that uses
the cfg80211 connect operation connects to an AP before the scan result
for the AP is available. This triggers a WARN_ON in sme.c, and the
connection fails.

This is only an issue for drivers that do not pass beacons/probes to
cfg80211, except in response to an explicit scan. With typical
userspace the issue will only manifest if using iwconfig to connect, or
if using wpa_supplicant with ap_scan=2 (which you might do with a
hidden SSID).

The patches were originally written for the orinoco cfg80211 conversion
(currently stalled due to lack of time). It sounds like the libertas
cfg80211 drivers have the same problem, so I'm posting them in case
they're useful. There's a bit of cleanup to do, and there may be issues
with the setting of the channels to scan (orinoco can't scan by
channel) so if someone wants to pick these up, please do.

Testing
 - a version of this has been running with my orinoco changes for the
   last 3 or 4 months (in more or less daily use).
 - Untested against drivers that don't use ->connect

Signed-off-by: David Kilroy <kilroyd@googlemail.com>

---
David Kilroy (2):
  cfg80211: generic trigger scan and callback on completion
  cfg80211: scan for missing BSS on connect completion

 include/net/cfg80211.h |    3 +
 net/wireless/core.h    |    6 ++
 net/wireless/scan.c    |   41 ++++++++++++-
 net/wireless/sme.c     |  163 ++++++++++++++++++++++++++++++++++++++----------
 4 files changed, 178 insertions(+), 35 deletions(-)


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

end of thread, other threads:[~2010-02-06 18:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-06 13:20 [RFC 0/2] cfg80211: Retrieve missing BSS info after connect David Kilroy
2010-02-06 13:20 ` [RFC 1/2] cfg80211: generic trigger scan and callback on completion David Kilroy
2010-02-06 13:35   ` Johannes Berg
2010-02-06 13:20 ` [RFC 2/2] cfg80211: scan for missing BSS on connect completion David Kilroy
2010-02-06 13:38   ` Johannes Berg
2010-02-06 13:51 ` [RFC 0/2] cfg80211: Retrieve missing BSS info after connect Johannes Berg
2010-02-06 18:26   ` Dave
2010-02-06 18:59     ` Johannes Berg
2010-02-06 17:27 ` Holger Schurig
2010-02-06 17:52   ` Dave

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).