linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Nicolas Cavallari <Nicolas.Cavallari@lri.fr>
Cc: "John W. Linville" <linville@tuxdriver.com>,
	linux-wireless@vger.kernel.org
Subject: Re: [PATCH] mac80211: Do not scan for IBSS merge with a fixed BSSID.
Date: Mon, 30 Jan 2012 06:51:48 -0800	[thread overview]
Message-ID: <1327935108.3630.1.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <4F265AB6.6010004@lri.fr>

On Mon, 2012-01-30 at 09:54 +0100, Nicolas Cavallari wrote:
> On 28/01/2012 05:39, Johannes Berg wrote:
> > On 1/26/2012 4:36 AM, Nicolas Cavallari wrote:
> > 
> >> -    if (ifibss->fixed_channel)
> >> +    if (ifibss->fixed_bssid)
> >>           return;
> >>
> >>       printk(KERN_DEBUG "%s: No active IBSS STAs - trying to scan for
> >> other "
> >>              "IBSS networks with same SSID (merge)\n", sdata->name);
> > 
> > Just from the looks of it, this doesn't seem right. If you're fixing the
> > BSSID, you're still asking for automatic channel selection and merging
> > with other peers using the same BSSID on different channels, so I
> > disagree with your commit message quite completely.
> 
> I didn't know that. In fact, from my understanding of the current
> source, if you fix the BSSID, you won't merge, period. And even if you
> don't fix the BSSID, if you found a BSS with the same BSSID but a
> different channel, you still won't merge.
> 
> And now, if you are alone and you fixed your channel, you won't try to
> merge with other BSS in the same channel.
> 
> If you believe that the condition should be "fixed_bssid &&
> fixed_channel", i can send another patch.


No, I don't think that makes sense either. I haven't looked at the
actual code right now (am travelling), but I think the logic should be:

fixed BSSID: try to find networks with that BSSID, if alone, on all
channels
fixed channel: merge with any network with the same SSID on the same
channel

fixed both: just stick to the current channel/BSSID (obviously)

johannes


  reply	other threads:[~2012-01-30 14:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-26 12:36 [PATCH] mac80211: Do not scan for IBSS merge with a fixed BSSID Nicolas Cavallari
2012-01-28  4:39 ` Johannes Berg
2012-01-30  8:54   ` Nicolas Cavallari
2012-01-30 14:51     ` Johannes Berg [this message]
2012-01-30  0:40 ` Johannes Berg

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=1327935108.3630.1.camel@jlt3.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=Nicolas.Cavallari@lri.fr \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    /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).