Search Linux Wireless

[RFC 0/2] cfg80211: Retrieve missing BSS info after connect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>

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

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux