[wireless-regdb] [regdb] Add support to parse 2000mW tx power

Krishna Chaitanya chaitanya.mgit at gmail.com
Mon May 26 03:39:17 PDT 2014


On Mon, May 26, 2014 at 3:24 PM, Johannes Berg
<johannes at sipsolutions.net> wrote:
> On Mon, 2014-05-26 at 15:16 +0530, Krishna Chaitanya wrote:
>> On Mon, May 26, 2014 at 3:08 PM, Johannes Berg
>> <johannes at sipsolutions.net> wrote:
>> > On Mon, 2014-05-26 at 13:09 +0530, chaitanya.mgit at 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
>>
>> Agree.
>>
>> > power=30 isn't right for 2000mW...
>>
>> Sorry, typo. Its supposed to be 33.
>>
>> > Can't awk calculate the logarithm?
>> Does kernel support log arithmetic/Float operations.?
>
> This script runs at build time.
Ok, understood. I will send in V2 with the algo after some testing.



More information about the wireless-regdb mailing list