All of lore.kernel.org
 help / color / mirror / Atom feed
From: "John W. Linville" <linville@tuxdriver.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: chaitanya.mgit@gmail.com, mcgrof@gmail.com,
	wireless-regdb@lists.infradead.org,
	linux-wireless@vger.kernel.org
Subject: Re: [regdb] Add support to parse 2000mW tx power
Date: Tue, 27 May 2014 11:23:57 -0400	[thread overview]
Message-ID: <20140527152357.GA5694@tuxdriver.com> (raw)
In-Reply-To: <1401097086.29704.0.camel@jlt4.sipsolutions.net>

On Mon, May 26, 2014 at 11:38:06AM +0200, Johannes Berg wrote:
> On Mon, 2014-05-26 at 13:09 +0530, chaitanya.mgit@gmail.com wrote:
> 
> > @@ -74,7 +74,7 @@ function parse_reg_rule()
> >  			power = 23
> >  		} else if (power == 500) {
> >  			power = 27
> > -		} else if (power == 1000) {
> > +		} else if ((power == 1000) || (power == 2000)) {
> >  			power = 30
> 
> This seems like a pretty sick thing to do to start with, and certainly
> power=30 isn't right for 2000mW...

Heh...it was like that in my original version!  

> Can't awk calculate the logarithm?

I probably didn't know how to compute it in awk.  I still don't OTOH...

John
-- 
John W. Linville		Someday the world will need a hero, and you
linville@tuxdriver.com			might be all we have.  Be ready.

WARNING: multiple messages have this Message-ID (diff)
From: "John W. Linville" <linville@tuxdriver.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: chaitanya.mgit@gmail.com, linux-wireless@vger.kernel.org,
	mcgrof@gmail.com, wireless-regdb@lists.infradead.org
Subject: Re: [wireless-regdb] [regdb] Add support to parse 2000mW tx power
Date: Tue, 27 May 2014 11:23:57 -0400	[thread overview]
Message-ID: <20140527152357.GA5694@tuxdriver.com> (raw)
In-Reply-To: <1401097086.29704.0.camel@jlt4.sipsolutions.net>

On Mon, May 26, 2014 at 11:38:06AM +0200, Johannes Berg wrote:
> On Mon, 2014-05-26 at 13:09 +0530, chaitanya.mgit@gmail.com wrote:
> 
> > @@ -74,7 +74,7 @@ function parse_reg_rule()
> >  			power = 23
> >  		} else if (power == 500) {
> >  			power = 27
> > -		} else if (power == 1000) {
> > +		} else if ((power == 1000) || (power == 2000)) {
> >  			power = 30
> 
> This seems like a pretty sick thing to do to start with, and certainly
> power=30 isn't right for 2000mW...

Heh...it was like that in my original version!  

> Can't awk calculate the logarithm?

I probably didn't know how to compute it in awk.  I still don't OTOH...

John
-- 
John W. Linville		Someday the world will need a hero, and you
linville@tuxdriver.com			might be all we have.  Be ready.

_______________________________________________
wireless-regdb mailing list
wireless-regdb@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/wireless-regdb


  parent reply	other threads:[~2014-05-27 15:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-26  7:39 [regdb] Add support to parse 2000mW tx power chaitanya.mgit
2014-05-26  7:39 ` [wireless-regdb] " chaitanya.mgit
2014-05-26  9:38 ` Johannes Berg
2014-05-26  9:38   ` [wireless-regdb] " Johannes Berg
2014-05-26  9:46   ` Krishna Chaitanya
2014-05-26  9:46     ` [wireless-regdb] " Krishna Chaitanya
2014-05-26  9:54     ` Johannes Berg
2014-05-26  9:54       ` [wireless-regdb] " Johannes Berg
2014-05-26 10:39       ` Krishna Chaitanya
2014-05-26 10:39         ` [wireless-regdb] " Krishna Chaitanya
2014-05-27 15:23   ` John W. Linville [this message]
2014-05-27 15:23     ` John W. Linville

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=20140527152357.GA5694@tuxdriver.com \
    --to=linville@tuxdriver.com \
    --cc=chaitanya.mgit@gmail.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mcgrof@gmail.com \
    --cc=wireless-regdb@lists.infradead.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.