Linux wireless drivers development
 help / color / mirror / Atom feed
From: Dan Williams <dcbw@redhat.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Holger Schurig <hs4233@mail.mn-solutions.de>,
	linux-wireless@vger.kernel.org,
	"John W. Linville" <linville@tuxdriver.com>,
	"Luis R. Rodriguez" <lrodriguez@atheros.com>
Subject: Re: [PATCH] wireless: consolidate on a single escape_essid implementation
Date: Thu, 25 Sep 2008 12:57:43 -0400	[thread overview]
Message-ID: <1222361863.14444.18.camel@localhost.localdomain> (raw)
In-Reply-To: <1222332205.10563.26.camel@johannes.berg>

On Thu, 2008-09-25 at 10:43 +0200, Johannes Berg wrote:
> On Thu, 2008-09-25 at 08:34 +0200, Holger Schurig wrote:
> > > the libertas, ipw2100, and ipw2200 drivers don't use cfg80211
> > > (at least for now).
> > 
> > Yeah, Dan once spoke about using cfg80211 for libertas, but at 
> > that time I didn't saw the point.
> > 
> > Hmm, I actually don't see the point now :-)
> 
> Well, you'll want to take advantage of the regulatory code and the
> scanning stuff I'm working on...

Yes.  I want common regulatory code, if nothing else then common
functions for:

channel <-> frequency conversion
common regulatory domains and their restrictions
common BSS structure for scan results
common scan result translation handlers

Two options for scan result handling:

--------------------------------------------------------------------------
1) common GIWSCAN processing function that takes a callback.  This
callback would be executed until it returns FALSE to signify no further
scan results.  Callback prototype:

bool scan_res_hook(struct common_bss *bss, void *user_data);

'bss' would simply be a _single_ common bss structure allocated at the
start of iteration, and zeroed each time before calling the hook.  The
scan hook then fills that common BSS structure with information from its
own internal scan list.  The GIWSCAN processor then handles translation
into the actual WEXT event stream or nl80211 formats.

--------------------------------------------------------------------------
2) common GIWSCAN processing function that takes a list of common BSS
structures that the driver stores internally.  The common BSS structure
would have a "void *driver_data" pointer in which the driver could keep
driver-specific data items, but the driver would be responsible for
setting all available information in the common BSS structure when the
firmware provides scan results.  lib80211 provides common allocation,
deallocation, bss entry aging, ref/unref, and free-list fetching.


This would remove a good chunk of code from airo, atmel, and libertas at
least, which are the drivers that I've converted to this sort of scan
results handling system in the past.  Most of the old ieee80211's BSS
structure stuff was applicable, but it had too many Intel-specific bits
in it too (like the SECLEVEL stuff).

Thoughts?

Dan



  reply	other threads:[~2008-09-25 16:58 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-24 22:15 [PATCH] wireless: consolidate on a single escape_essid implementation John W. Linville
2008-09-24 23:24 ` Luis R. Rodriguez
2008-09-24 23:32   ` John W. Linville
2008-09-25  0:21     ` Luis R. Rodriguez
2008-09-25  0:39       ` John W. Linville
2008-09-25  1:52         ` Luis R. Rodriguez
2008-09-25  6:34     ` Holger Schurig
2008-09-25  8:43       ` Johannes Berg
2008-09-25 16:57         ` Dan Williams [this message]
2008-09-26 11:08           ` Johannes Berg
2008-09-26 14:51             ` Johannes Berg
2008-09-26 14:57           ` Johannes Berg
2008-09-25 23:03   ` Dave
2008-09-25  4:46 ` Johannes Berg
2008-09-25  4:49   ` Johannes Berg
2008-09-25 16:47     ` Dan Williams
2008-09-25 16:48   ` Dan Williams
2008-09-25 21:00 ` Dave
2008-10-01  2:15 ` [PATCH 0/5] wireless: single escape_essid implementation and related cleanups John W. Linville
2008-10-01  2:15   ` [PATCH 1/5] wireless: consolidate on a single escape_essid implementation John W. Linville
2008-10-01  2:15     ` [PATCH 2/5] wireless: remove NETWORK_EMPTY_ESSID flag John W. Linville
2008-10-01  2:15       ` [PATCH 3/5] wireless: escape_ssid should handle non-printables John W. Linville
2008-10-01  2:15         ` [PATCH 4/5] wireless: use individual buffers for printing ssid values John W. Linville
2008-10-01  2:15           ` [PATCH 5/5] wireless: avoid some net/ieee80211.h vs. linux/ieee80211.h conflicts John W. Linville
2008-10-01  9:25   ` [PATCH 0/5] wireless: single escape_essid implementation and related cleanups Johannes Berg
2008-10-02 19:10   ` Dan Williams

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=1222361863.14444.18.camel@localhost.localdomain \
    --to=dcbw@redhat.com \
    --cc=hs4233@mail.mn-solutions.de \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=lrodriguez@atheros.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