From: Adam Wozniak <awozniak@irobot.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Christian Lamparter <chunkeey@googlemail.com>,
Derek Smithies <derek@indranet.co.nz>,
linux-wireless@vger.kernel.org, nbd@openwrt.org
Subject: Re: compat-wireless and minstrel
Date: Mon, 16 Nov 2009 09:25:58 -0800 [thread overview]
Message-ID: <4B018B26.2070008@irobot.com> (raw)
In-Reply-To: <1258191039.6167.40.camel@johannes.local>
If we have only three stations in an ad-hoc network, where all three can
hear the other two, only one of them should be beaconing, correct? If
this is true, it's not clear to me how the non beaconing stations will
update their rate information about each other based on the beacon. It
seems like, in the case we're "absent other information", we also need
to send a probe request, OR we need to get the bitrate information from
the next probe request we receive from them (neither of which we seem to
be doing).
Johannes Berg wrote:
> On Fri, 2009-11-13 at 14:35 -0800, Adam Wozniak wrote:
>
>
>> I've traced it down to this bit in rx.c in prepare_for_handlers():
>>
>> case NL80211_IFTYPE_ADHOC:
>> [ stuff deleted ]
>> } else if (!rx->sta) {
>> int rate_idx;
>> if (rx->status->flag & RX_FLAG_HT)
>> rate_idx = 0; /* TODO: HT rates */
>> else
>> rate_idx = rx->status->rate_idx;
>>
>> rx->sta = ieee80211_ibss_add_sta(sdata, bssid,
>> hdr->addr2,
>> BIT(rate_idx));
>> }
>> break;
>>
>> I don't think this is right. I know the issue is here, because if I
>> change to "BIT(rate_idx) | 0xfff" the problem corrects. Either we need
>> to (a) set it properly here or (b) make sure something else happens
>> before or after. I'm not sure we have enough context here to do (a).
>>
>
> Hmm. This BIT(..) was basically here to ensure we have at least a single
> good rate absent other information. If we do not receive a probe or
> beacon frame from that peer at least once, but add it to our IBSS only
> due to a single received data frame, we add the bitrate that this frame
> was transmitted at so we have one rate that we know it can transmit (and
> presumably also receive).
>
> What should happen is that once it starts beaconing we pick up a beacon
> and extend our set of known good rates.
>
> johannes
>
next prev parent reply other threads:[~2009-11-16 17:25 UTC|newest]
Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-04 1:13 compat-wireless and minstrel Adam Wozniak
2009-11-04 15:53 ` Christian Lamparter
2009-11-04 15:57 ` Luis R. Rodriguez
2009-11-04 21:01 ` Derek Smithies
2009-11-04 21:42 ` Christian Lamparter
2009-11-04 21:46 ` Adam Wozniak
2009-11-04 21:50 ` Luis R. Rodriguez
2009-11-04 21:53 ` Adam Wozniak
2009-11-04 21:55 ` Luis R. Rodriguez
2009-11-04 22:18 ` Christian Lamparter
2009-11-04 22:20 ` Luis R. Rodriguez
2009-11-04 22:31 ` Christian Lamparter
2009-11-04 22:34 ` Luis R. Rodriguez
2009-11-10 22:59 ` Adam Wozniak
2009-11-11 0:55 ` Derek Smithies
2009-11-11 1:08 ` Adam Wozniak
2009-11-11 2:09 ` Derek Smithies
2009-11-12 19:43 ` Adam Wozniak
2009-11-12 20:03 ` Christian Lamparter
2009-11-12 22:38 ` Adam Wozniak
2009-11-12 22:41 ` Adam Wozniak
2009-11-13 7:29 ` Johannes Berg
2009-11-13 22:35 ` Adam Wozniak
2009-11-14 9:30 ` Johannes Berg
2009-11-16 17:25 ` Adam Wozniak [this message]
2009-11-16 17:27 ` Johannes Berg
2009-11-16 17:57 ` Adam Wozniak
2009-11-16 18:07 ` Johannes Berg
2009-11-16 21:02 ` Adhoc networking, was " Derek Smithies
2009-11-16 22:39 ` Adam Wozniak
2009-11-16 23:13 ` Derek Smithies
2009-11-16 23:39 ` Adam Wozniak
2009-11-16 23:43 ` Felix Fietkau
2009-11-17 0:20 ` Derek Smithies
2009-11-17 7:38 ` Johannes Berg
2009-11-17 17:39 ` Adam Wozniak
2009-11-23 20:21 ` Adam Wozniak
2009-11-23 23:27 ` Johannes Berg
2009-11-24 0:57 ` [PATCH 0/2] mac80211: IBSS rates Adam Wozniak
2009-11-24 17:05 ` [PATCH v2 " Adam Wozniak
2009-11-24 0:57 ` [PATCH 1/2] mac80211: supp_rates initialization and rate control notification Adam Wozniak
2009-11-24 1:16 ` Johannes Berg
2009-11-24 17:05 ` [PATCH v2 " Adam Wozniak
2009-11-24 17:13 ` Johannes Berg
2009-11-24 0:57 ` [PATCH 2/2] mac80211: minstrel try all rates Adam Wozniak
2009-11-24 1:11 ` Johannes Berg
2009-11-24 16:13 ` Adam Wozniak
2009-11-24 16:17 ` Adam Wozniak
2009-11-24 17:17 ` Adam Wozniak
2009-11-24 17:41 ` Johannes Berg
2009-11-24 17:55 ` Adam Wozniak
2009-11-24 17:58 ` Johannes Berg
2009-11-24 18:34 ` Adam Wozniak
2009-11-24 18:36 ` Johannes Berg
2009-11-24 18:43 ` Adam Wozniak
2009-11-24 19:00 ` Johannes Berg
2009-11-24 19:44 ` Adam Wozniak
2009-11-24 19:47 ` Johannes Berg
2009-11-24 19:58 ` Adam Wozniak
2009-11-24 17:05 ` [PATCH v2 " Adam Wozniak
2009-11-24 17:14 ` Johannes Berg
2009-11-12 23:35 ` compat-wireless and minstrel Christian Lamparter
2009-11-13 0:25 ` Adam Wozniak
2009-11-13 0:32 ` Adam Wozniak
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=4B018B26.2070008@irobot.com \
--to=awozniak@irobot.com \
--cc=chunkeey@googlemail.com \
--cc=derek@indranet.co.nz \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=nbd@openwrt.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).