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: "John W. Linville" <linville@tuxdriver.com>,
	linux-wireless@vger.kernel.org
Subject: Re: [PATCH 0/28] rt2x00:
Date: Wed, 28 Feb 2007 19:24:28 +0100	[thread overview]
Message-ID: <200702281924.28452.IvDoorn@gmail.com> (raw)
In-Reply-To: <1172682993.5015.52.camel@johannes.berg>

On Wednesday 28 February 2007 18:16, Johannes Berg wrote:
> On Wed, 2007-02-28 at 18:07 +0100, Ivo van Doorn wrote:
> 
> > That is where rt2x00lib is coming in. This is only a recent addition to rt2x00
> > so not everything has moved in correctly. So you can expect more to be
> > merged into rt2x00lib.
> 
> Yeah, I see that.
> 
> > Merging rt2400pci and rt2500pci doesn't sound like a good idea to me,
> > once rt2x00lib has been optimally used most duplicate code is out,
> 
> Well you'll still have a lot of the registration code etc. duplicated.

Personally I think the amount of duplicated code will not be that bad,
but I can make a better comparison when rt2x00lib is better used than currently
is the case.

> > and merging those 2 could make the implementation of hardware encryption
> > for rt2500pci harder. rt2400pci is the only Ralink chip that is not capable of
> > hardware encryption.
> 
> That I don't understand at all; if it's a 2400pci chip you just return
> early from the set_key() callback and thereby tell mac80211 to use sw
> crypto.
 
It goes a bit further than that, interrupt handling is done differently as well,
and still a lot of checks during register intialization have to be performed about
what to do when. Some functions, like channel selection, would have to be
implemented twice due to the number of checks for each indivudual RF chipset.

But to be honest, the last time I had looked into rt2400pci and rt2500pci merger
was in the early days of rt2x00 when there wasn't a Linux wireless stack yet. Not
even Intel had announced its stack yet. (rt2x00 started in 2004) so back then
I had to try to extract the stack from the Ralink drivers.

Personally I think that merging the 2 drivers would make the code too obscure
to be easily understandable after the implementation of hardware encryption.
But I could be wrong, as I haven't worked on the hardware encryption yet
(getting things working without HW encryption is hard enough). So I think it is best
to reinvestigate merging rt2400pci and rt2500pci, when both modules are
working independently and hardware encryption work is being done. That will give
the best comparison material for making a better decision.

Ivo

  reply	other threads:[~2007-02-28 18:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-28 14:07 [PATCH 0/28] rt2x00: Ivo van Doorn
2007-02-28 16:57 ` Johannes Berg
2007-02-28 17:07   ` Ivo van Doorn
2007-02-28 17:16     ` Johannes Berg
2007-02-28 18:24       ` Ivo van Doorn [this message]
2007-02-28 18:30         ` 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=200702281924.28452.IvDoorn@gmail.com \
    --to=ivdoorn@gmail.com \
    --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).