Linux wireless drivers development
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: David Lamparter <lists@diac24.net>
Cc: linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: more nl80211/iw tool code comments
Date: Sat, 16 Jun 2007 14:17:36 +0200	[thread overview]
Message-ID: <1181996257.9058.33.camel@johannes.berg> (raw)
In-Reply-To: <20070614142925.GA24414@charon.n2.diac24.net>

[-- Attachment #1: Type: text/plain, Size: 1987 bytes --]

Hi David,

> The entire iw tool is really just a hack btw...

doesn't look too bad to me, unlike my python tool... :)

> > iw phy set      [ phy ] DEVICE [ CHANSPEC ] [ name NEWNAME ]
> > 
> > and we discussed on IRC that it might make sense to have the same for
> > nl80211. On the surface, that makes sense, however, it does add a
> > complication in that we need to either specify that you cannot combine
> > some attributes (which doesn't really make sense), 
> Hmm, I can't come up with any example other than using some 11n attribute
> with a 11abg phymode... care to hit me with a hint?

I was thinking of the name vs. phy parameters.

> 	if (err < 0 && modified && net_ratelimit())
> 		printk(KERN_WARNING "A link change request failed with "
> 		       "some changes comitted already. Interface %s may "
> 		       "have been left with an inconsistent configuration, "
> 		       "please check.\n", dev->name);
> 
> So, if rtnetlink doesn't bother too much about "transaction safety" either,
> why should we?

Heh, dunno, I just like to think that one thing posted to the kernel is
done atomically. We can drop that requirement and document it, but that
won't be easy since we'd have to document exactly what is done
atomically.

> If an app wants to know what failed, it can still send SET
> requests broken down into pieces, so they will know which piece failed.
> Obviously they need to leave some stuff grouped (e.g. PHYMODE and CHANNEL),
> but I don't think it's useful to force them do so by breaking stuff into
> multiple commands...
> 
> (There is no difference really between
> 	CMD_SET_PHY name=myphy
> 	CMD_SET_PHY phymode=a channel=1
> and
> 	CMD_SET_PHYNAME name=myphy
> 	CMD_SET_CHANNEL phymode=a channel=1
> but the former allows, if we don't care, to just batch it.)

True. I guess we can leave it as-is and see if we run into problems with
some software or something and if we do document it better ;)

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

  reply	other threads:[~2007-06-16 12:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-13 18:23 more nl80211/iw tool code comments Johannes Berg
2007-06-14 14:29 ` David Lamparter
2007-06-16 12:17   ` Johannes Berg [this message]
2007-06-18  9:42   ` phy mode, channel -> freq mapping (was RE: more nl80211/iw tool code comments) Sandesh Goel
2007-06-18 11:01     ` Johannes Berg
2007-06-18 12:25       ` Tomas Winkler
2007-06-19  4:50         ` Sandesh Goel
2007-06-19  8:59     ` Jiri Benc

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=1181996257.9058.33.camel@johannes.berg \
    --to=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=lists@diac24.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