Search Linux Wireless

Re: [regdb] Add support to parse 2000mW tx power

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 26, 2014 at 11:38:06AM +0200, Johannes Berg wrote:
> On Mon, 2014-05-26 at 13:09 +0530, chaitanya.mgit@xxxxxxxxx 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@xxxxxxxxxxxxx			might be all we have.  Be ready.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux