From: Vladimir Koutny <vlado@work.ksp.sk>
To: "John W. Linville" <linville@tuxdriver.com>
Cc: Johannes Berg <johannes@sipsolutions.net>,
linux-wireless <linux-wireless@vger.kernel.org>,
Luis Carlos Cobo <luisca@cozybit.com>,
Javier Cardona <javier@cozybit.com>, Jiri Benc <jbenc@suse.cz>,
Michael Wu <flamingice@sourmilk.net>, Jouni Malinen <j@w1.fi>,
Bill Moss <bmoss@CLEMSON.EDU>, Daniel Drake <dsd@gentoo.org>,
Dan Williams <dcbw@redhat.com>, Tomas Winkler <tomasw@gmail.com>
Subject: Re: mac80211 MLME scanning - BSS list trouble
Date: Thu, 03 Apr 2008 17:57:33 +0200 [thread overview]
Message-ID: <47F4FE6D.2000307@work.ksp.sk> (raw)
In-Reply-To: <20080331200536.GA13799@tuxdriver.com>
[-- Attachment #1: Type: text/plain, Size: 1657 bytes --]
John W. Linville wrote:
> On Sun, Mar 30, 2008 at 10:33:19AM +0200, Johannes Berg wrote:
>
>> The first one is that there is no actual expiration of BSS structs. Each
>> BSS struct has a 'last_update' member that contains (in jiffies) the
>> time this item was last updated. This means that we accumulate BSS
>> information forever, but due to the 'last_update' only the last few
>> items will be returned to the user on asking for a scan result. This
>> obviously has problems since a rogue station could bombard us with fake
>> probe responses and cause us to build a huge BSS list which is never
>> again freed until the hardware is deregistered. This will need to be
>> fixed, of course.
>
> Assuming this was fixed, does the rest of this issue go away?
> It seems like it would.
I can just add another bug this is causing, this time for IBSS.
The scenario:
- you happen to have 2 IBSS entries for the same SSID/different BSSID (both
of them inactive at this time; this can happen e.g. with IBSS merge),
- you start new IBSS with the same SSID,
- there is no other IBSS station with this SSID around.
In this case, the stack will end up using those 2 BSSIDs alternately, in 30sec
intervals. The reason is that since there is no other active IBSS STA, it will
look at its BSS list and adopts the BSSID (and other params) of first matching
IBSS that is different to current one (or triggers a new scan, which will never
happen in this scenario; see ieee80211_sta_find_ibss).
This seems to be fine when BSS list expiration is fixed, though (with timeout
of less than 30s (IEEE80211_IBSS_MERGE_INTERVAL)).
Vlado
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 370 bytes --]
prev parent reply other threads:[~2008-04-03 15:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-30 8:33 mac80211 MLME scanning - BSS list trouble Johannes Berg
2008-03-31 13:57 ` Jiri Benc
2008-03-31 14:10 ` Tomas Winkler
2008-03-31 18:40 ` Johannes Berg
2008-03-31 15:04 ` Jouni Malinen
2008-04-01 13:16 ` Johannes Berg
2008-04-03 16:43 ` Jouni Malinen
2008-04-04 14:55 ` Johannes Berg
2008-03-31 20:05 ` John W. Linville
2008-04-01 12:25 ` Johannes Berg
2008-04-03 15:57 ` 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=47F4FE6D.2000307@work.ksp.sk \
--to=vlado@work.ksp.sk \
--cc=bmoss@CLEMSON.EDU \
--cc=dcbw@redhat.com \
--cc=dsd@gentoo.org \
--cc=flamingice@sourmilk.net \
--cc=j@w1.fi \
--cc=javier@cozybit.com \
--cc=jbenc@suse.cz \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=luisca@cozybit.com \
--cc=tomasw@gmail.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).