public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Holger Schurig <hs4233@mail.mn-solutions.de>
Cc: linux-wireless@vger.kernel.org
Subject: Re: Questions about cfg80211's cfg80211_connect_params->crypto settings
Date: Mon, 26 Oct 2009 14:03:53 +0100	[thread overview]
Message-ID: <1256562233.12462.3.camel@johannes.local> (raw)
In-Reply-To: <200910261359.13658.hs4233@mail.mn-solutions.de>

[-- Attachment #1: Type: text/plain, Size: 1523 bytes --]

On Mon, 2009-10-26 at 13:59 +0100, Holger Schurig wrote:

> lbs_cfg_connect:
>     if (sme->bssid set)  {
>         # I need a full cfg80211_bss entry, because I can only
>         # associate to a specific bss via CMD_802_11_ASSOCIATE
> 	# and I need
> 	#   bss->capability
> 	#   bss->bssid
> 	#   bss->get_ie(WLAN_EID_SSID)
> 	#   bss->channel
> 	#   bss->rates
>         bss = cfg80211_get_bss()

You need sme->privacy here.

> However, this current setup makes "iw abc connect SSID" 
> non-working with libertas. It would work with libertas if I 
> would use the .auth/.assoc API, because then net/wireless/sme.c 
> would scan for me. But in the .connect API case, it doesn't do 
> this.
> 
> But information I get in the .connect() call aren't sufficuent 
> for the Libertas firmware interface, I need more data, which I 
> can get from a cfg80211_bss entry.
> 
> One possiblity is that net/wireless/sme.c get's more general and 
> does scan in the .connect() case, too.
> 
> Or I could substitute the "error_out" with a local scan, and then 
> select the "best" AP from the bss list. I fear however that such 
> a selection function might already be somewhere inside 
> net/wireless/*.c, I'll need to search for that.

There isn't really. It _might_ be possible to further abstract this out,
but that means we need to _first_ be able to advertise device roaming
capabilities so that we _don't_ select a specific BSS for devices that
want to handle roaming like iwm.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

  reply	other threads:[~2009-10-26 13:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-26  8:47 Questions about cfg80211's cfg80211_connect_params->crypto settings Holger Schurig
2009-10-26  9:22 ` Johannes Berg
2009-10-26 12:11   ` Holger Schurig
2009-10-26 12:22     ` Johannes Berg
2009-10-26 12:59       ` Holger Schurig
2009-10-26 13:03         ` Johannes Berg [this message]
2009-10-26 19:57 ` Dan Williams

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=1256562233.12462.3.camel@johannes.local \
    --to=johannes@sipsolutions.net \
    --cc=hs4233@mail.mn-solutions.de \
    --cc=linux-wireless@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