From: Vladimir Koutny <vlado@work.ksp.sk>
To: "John W. Linville" <linville@tuxdriver.com>
Cc: linux-wireless <linux-wireless@vger.kernel.org>,
bruno randolf <bruno@thinktube.com>,
Johannes Berg <johannes@sipsolutions.net>,
Jiri Benc <jbenc@suse.cz>
Subject: Re: [PATCH] mac80211: fix alternating-BSSID issue in IBSS
Date: Thu, 03 Jul 2008 15:50:51 +0200 [thread overview]
Message-ID: <486CD93B.90503@work.ksp.sk> (raw)
In-Reply-To: <20080702190059.GA31288@tuxdriver.com>
[-- Attachment #1: Type: text/plain, Size: 2151 bytes --]
John W. Linville wrote:
> On Tue, Jul 01, 2008 at 04:48:48PM +0200, Vladimir Koutny wrote:
>> Due to the fact that we (still) keep old BSS information, we can end
>> up switching between 2 or more BSSIDs when in IBSS (these are the
>> BSSIDs of networks with the same name we've seen before, even if they
>> are not around anymore). This switching happens in 30sec intervals
>> (IBSS merge attempt when no active STAs are around).
>>
>> This patch expires old BSS entries after IEEE80211_SCAN_RESULT_EXPIRE
>> seconds (the same time after it will not be reported in scan results)
>> when trying to merge.
>>
>> Signed-off-by: Vladimir Koutny <vlado@ksp.sk>
>
> This seems like a good thing to do, but the sta_bss_list is used in STA
> mode too. Perhaps we should find a time to run ieee80211_bss_expire
> in STA mode as well?
Yes, probably. Any suggestions for a suitable place? (I'm not that
familiar with the code..) It should probably be done on some timer (and
probably also right before we try to associate?)..
>> +static void ieee80211_bss_expire(struct net_device *dev, unsigned long exp_time)
>
> You probably want this positioned before (or
> after?) ieee80211_rx_bss_free, and change the name to match.
OK, moved and renamed to ieee80211_rx_bss_expire.
>> @@ -3662,8 +3662,10 @@ static int ieee80211_sta_find_ibss(struct net_device *dev,
>> spin_unlock_bh(&local->sta_bss_lock);
>>
>> #ifdef CONFIG_MAC80211_IBSS_DEBUG
>> - printk(KERN_DEBUG " sta_find_ibss: selected %s current "
>> - "%s\n", print_mac(mac, bssid), print_mac(mac2, ifsta->bssid));
>> + if (found)
>> + printk(KERN_DEBUG " sta_find_ibss: selected %s current "
>> + "%s\n", print_mac(mac, bssid),
>> + print_mac(mac2, ifsta->bssid));
>> #endif /* CONFIG_MAC80211_IBSS_DEBUG */
>> if (found && memcmp(ifsta->bssid, bssid, ETH_ALEN) != 0 &&
>> (bss = ieee80211_rx_bss_get(dev, bssid,
>
> Should the last hunk be a different patch?
Oops - I've found this out at the same time I was doing the rest and
I kept it in the same patch.. I'll split this.
Vladimir
>
> John
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 378 bytes --]
prev parent reply other threads:[~2008-07-03 13:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-01 14:48 [PATCH] mac80211: fix alternating-BSSID issue in IBSS Vladimir Koutny
2008-07-02 19:00 ` John W. Linville
2008-07-03 13:50 ` Vladimir Koutny [this message]
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=486CD93B.90503@work.ksp.sk \
--to=vlado@work.ksp.sk \
--cc=bruno@thinktube.com \
--cc=jbenc@suse.cz \
--cc=johannes@sipsolutions.net \
--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).