linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luciano Coelho <luciano.coelho@nokia.com>
To: ext Johannes Berg <johannes@sipsolutions.net>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	"Valo Kalle (Nokia-D/Tampere)" <Kalle.Valo@nokia.com>,
	"Oikarinen Juuso (Nokia-D/Tampere)" <juuso.oikarinen@nokia.com>
Subject: Re: [RFC 1/3] mac80211: WIP - add operating BSSID to device configuration struct
Date: Sat, 24 Oct 2009 08:34:20 +0300	[thread overview]
Message-ID: <4AE291DC.3010505@nokia.com> (raw)
In-Reply-To: <1256201719.12174.19.camel@johannes.local>

ext Johannes Berg wrote:
> On Fri, 2009-10-16 at 15:27 +0300, Luciano Coelho wrote:
> 
>> @@ -2405,7 +2411,15 @@ int ieee80211_mgd_auth(struct ieee80211_sub_if_data *sdata,
>>  	 *	to sleep and then change channel etc.
>>  	 */
>>  	sdata->local->oper_channel = req->bss->channel;
>> -	ieee80211_hw_config(sdata->local, 0);
>> +
>> +	if (memcmp(sdata->local->hw.conf.oper_bssid,
>> +		   req->bss->bssid, ETH_ALEN)) {
>> +		config_changed |= IEEE80211_CONF_CHANGE_OPER_BSSID;
>> +		memcpy(sdata->local->hw.conf.oper_bssid,
>> +		       req->bss->bssid, ETH_ALEN);
>> +	}
>> +
>> +	ieee80211_hw_config(sdata->local, config_changed);
>>  
> 
> Is this really necessary before you can auth?

As we discussed on IRC, it is really needed.  We must always provide a BSSID 
when changing channels in preparation for an association.  For this reason (and 
others) the wl1271 with the current firmware does not support promiscuous mode 
or frame injections.

I'll ask TI next time we meet them, if there is any possibility to remove the 
need for the BSSID at this point, so things will be greatly simplified.  There 
is a very slight chance that this could be possible for wl1271, but for wl1251 I 
think there's no hope to change it anymore.  So in any case, we will need to 
support this on the stack if we want to have wl1251 to work correctly. :(

Also, I'm not 100% sure, but IIRC Kalle has mentioned that the at76c50x-usb card 
also needs this feature.


> If it is, you're going to have to do a lot more work and go all the way
> up to userspace so wpa_supplicant with -Dnl80211 knows about this too,
> and doesn't try to authenticate twice or do FT-OTA.

Thanks a lot for pointing this out.  I think I understand it better after our 
discussion on IRC.  I'll have to study more the authentication mechanism and 
figure out how to deal with multiple authentications, as you pointed out.

These are definitely details that I'll need to sort out.  But in principle, do 
you agree with the idea of passing the "operating" BSSID down to the driver in 
the hw_config op? And saving it as a hardware configuration parameter in 
local->hw.conf?

Once again, I really appreciate your help and the time you spend discussing and 
explaining these things in detail to me! :)

-- 
Cheers,
Luca.

  reply	other threads:[~2009-10-24  5:34 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-16 12:27 [RFC 0/3] mac80211 operating bssid concept implementation Luciano Coelho
2009-10-16 12:27 ` [RFC 1/3] mac80211: WIP - add operating BSSID to device configuration struct Luciano Coelho
2009-10-22  8:55   ` Johannes Berg
2009-10-24  5:34     ` Luciano Coelho [this message]
2009-10-26  8:37       ` Kalle Valo
2009-10-26  9:10         ` Luciano Coelho
2009-10-26  9:28           ` Kalle Valo
2009-10-26  9:52             ` Luciano Coelho
2009-10-26  8:19   ` Kalle Valo
2009-10-26  9:11     ` Luciano Coelho
2009-10-16 12:27 ` [RFC 2/3] wl1271: WIP - use operating BSSID for joining and disconnecting Luciano Coelho
2009-10-16 12:27 ` [RFC 3/3] wl1271: WIP - remove workaround for disconnection Luciano Coelho

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=4AE291DC.3010505@nokia.com \
    --to=luciano.coelho@nokia.com \
    --cc=Kalle.Valo@nokia.com \
    --cc=johannes@sipsolutions.net \
    --cc=juuso.oikarinen@nokia.com \
    --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;
as well as URLs for NNTP newsgroup(s).