linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Buesch <mb@bu3sch.de>
To: "Tomas Winkler" <tomasw@gmail.com>
Cc: "Johannes Berg" <johannes@sipsolutions.net>,
	"Zhu Yi" <yi.zhu@intel.com>,
	linville@tuxdriver.com, linux-wireless@vger.kernel.org,
	"Ester Kummer" <ester.kummer@intel.com>
Subject: Re: [PATCH 1/3] iwlwifi: adding channels to sysfs
Date: Fri, 13 Jun 2008 14:34:45 +0200	[thread overview]
Message-ID: <200806131434.46148.mb@bu3sch.de> (raw)
In-Reply-To: <1ba2fa240806130511i1686bee6m8701614a11a46aa6@mail.gmail.com>

On Friday 13 June 2008 14:11:36 Tomas Winkler wrote:
> On Fri, Jun 13, 2008 at 11:35 AM, Johannes Berg
> <johannes@sipsolutions.net> wrote:
> >
> >> >>  drivers/net/wireless/iwlwifi/iwl4965-base.c |   58 ++++++++++++++++++++++++++-
> >> >>  1 files changed, 56 insertions(+), 2 deletions(-)
> >> >>
> >> >> diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c
> >> >> index 81a1c22..c179b21 100644
> >> >> --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c
> >> >> +++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c
> >> >> @@ -4122,8 +4122,62 @@ static DEVICE_ATTR(power_level, S_IWUSR | S_IRUSR, show_power_level,
> >> >>  static ssize_t show_channels(struct device *d,
> >> >>                            struct device_attribute *attr, char *buf)
> >> >>  {
> >> >> -     /* all this shit doesn't belong into sysfs anyway */
> >> >> -     return 0;
> >> >
> >> > Hehe. Do you really have to? You can query this information with
> >> > nl80211. I don't know why you need all that sysfs stuff anyway.
> >>
> >> I'm not sure why Yi has cut off the log message but original was
> >>
> >> 'This patch returns channel list to sysfs. This is requirement
> >> for validation purposes'
> >>
> >> Our automation is build around sysfs and wext and I'm not going to
> >> rewrite it now.
> >
> > If you managed to get along without this for so long, why is it needed
> > in upstream now?
> 
> We didn't run without it, We  were developing HW 5000 on older kernel
> now I just merging it upstream. See my announcement  Try to imagine
> that there is world on totally different planet with different
> gravitation constant,
> 
> > Remember, sysfs is API. You don't get to change it gratuitously, so
> > neither should you add to it gratuitously. And we already _have_ API for
> > this particular thing which is not dependent on a particular
> > hardware/driver to boot!
> Agree. We've just returned what was there before
> I think you understand what legacy means after your try to replace
> wext. It will take time
> till we switch to new API. Unfortunately cannot fix everything in one day.


IMO a compromise could be to put this API under a default-off kconfig option
with a big fat warning that the API is supposed to be deleted and replaced
by cfg80211 soon. So this would only be temporary API for special purposes
that nobody should actually use. But if somebody needs to, he can do so and
has no loss of functionality for the time until the correct API is established.

-- 
Greetings Michael.

      parent reply	other threads:[~2008-06-13 12:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-13  7:44 [PATCH 0/3] iwlwifi driver 06/13 updates Zhu Yi
2008-06-13  7:44 ` [PATCH 1/3] iwlwifi: adding channels to sysfs Zhu Yi
2008-06-13  7:44   ` [PATCH 2/3] iwlwifi: remove 4965 prefix from iwl4965_ucode Zhu Yi
2008-06-13  7:44     ` [PATCH 3/3] iwlwifi: unify SW rf-kill flow Zhu Yi
2008-06-13  7:56   ` [PATCH 1/3] iwlwifi: adding channels to sysfs Johannes Berg
2008-06-13  8:28     ` Tomas Winkler
2008-06-13  8:35       ` Johannes Berg
2008-06-13 12:11         ` Tomas Winkler
2008-06-13 12:16           ` Johannes Berg
2008-06-13 12:38             ` Tomas Winkler
2008-06-13 12:34           ` Michael Buesch [this message]

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=200806131434.46148.mb@bu3sch.de \
    --to=mb@bu3sch.de \
    --cc=ester.kummer@intel.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=tomasw@gmail.com \
    --cc=yi.zhu@intel.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).