linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ivo van Doorn <ivdoorn@gmail.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Bryan Batten <BryanBatten@sbcglobal.net>,
	linville@tuxdriver.com,
	linux-wireless <linux-wireless@vger.kernel.org>,
	rt2400-devel@lists.sourceforge.net
Subject: Re: [Rt2400-devel] [PATCH] rt2x00: Fix NULL pointer error in	adhoc/master mode
Date: Sat, 5 Jul 2008 23:17:30 +0200	[thread overview]
Message-ID: <200807052317.31163.IvDoorn@gmail.com> (raw)
In-Reply-To: <1215286630.6848.24.camel@johannes.berg>

On Saturday 05 July 2008, Johannes Berg wrote:
> 
> > That problem is only in rt2400pci and rt2500pci who raise the beacon interrupt,
> > all other drivers have the template and auto sequence numbers.
> 
> Ok.
> 
> > But no sequence numbers for the beacons, I think that will definately cause
> > problems for those 2 drivers.
> > 
> > But the function ieee80211_include_sequence() is being called from within the
> > ieee80211_beacon_get() function. Only for the Mesh it doesn't seem to be called.
> 
> Well it's not called from where the IBSS beacon is set either, and the
> IBSS beacon isn't generated every time anyway. So I'm confused now. Do
> rt2{4,5}00pci not support IBSS?

Well it does claim support for it, but it has been enabled only since 2.6.26, so the number
of people who have tested it is very limited. And so far little to no success stories...

The main trick in rt2x00lib is that it doesn't care if it is an IBSS or AP beacon, it will always
use the update_beacon() callback function to write the beacon to the hardware. It doesn't
need to differentiate between the beacon types (as far as I know, master mode isn't implemented
in the legacy drivers, and the only claim about if it is possible cones from Asus who owns the
closed source driver with AP functionality).

So for the Ralink hardware it just needs a completely valid beacon which it can transmit,
only for rt2400pci/rt2500pci it requires that the sequence number is set due to lacking
hardware sequence counting.
After that those 2 will raise an interrupt every beacon interval to request a new beacon,
which rt2x00lib fulfills by calling ieee80211_beacon_get().

Ivo

  reply	other threads:[~2008-07-05 21:11 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-05 13:11 [PATCH] rt2x00: Fix NULL pointer error in adhoc/master mode Ivo van Doorn
2008-07-05 18:33 ` [Rt2400-devel] " Bryan Batten
2008-07-05 18:42   ` Ivo van Doorn
2008-07-05 18:43     ` Johannes Berg
2008-07-05 19:26       ` Ivo van Doorn
2008-07-05 19:22         ` Johannes Berg
2008-07-05 19:37           ` Ivo van Doorn
2008-07-05 19:37             ` Johannes Berg
2008-07-05 21:17               ` Ivo van Doorn [this message]
2008-07-05 20:25     ` Bryan Batten
2008-07-05 21:19       ` Ivo van Doorn
2008-07-09 17:59     ` Bryan Batten
2008-07-09 18:29       ` Ivo van Doorn
2008-07-09 18:33         ` Bryan Batten

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=200807052317.31163.IvDoorn@gmail.com \
    --to=ivdoorn@gmail.com \
    --cc=BryanBatten@sbcglobal.net \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=rt2400-devel@lists.sourceforge.net \
    /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).