Search Linux Wireless

Re: [OpenWrt-Devel] [PATCH] rt28xx: Revert eccc068e8e84c8fe997115629925e0422a98e4de which causes txpower to be stuck at 0

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

 



On Sun, May 6, 2012 at 5:38 PM, Tobias Diedrich
<ranma+openwrt@xxxxxxxxxxxx> wrote:
> Revert eccc068e8e84c8fe997115629925e0422a98e4de which causes txpower
> to be stuck at 0.
>
> Recent OpenWRT has txpower stuck at 0 for at least rt28xx, and I
> found this commit as the root cause:
> http://git.kernel.org/?p=linux/kernel/git/linville/wireless-next.git;a=commitdiff;h=eccc068e8e84c8fe997115629925e0422a98e4de
>
> Before reverting this "iw phy phy0 info" would show "0.0 dBm" as
> maximum transmit power for all frequencies.
>
> After reverting this (and with regdomain set to CH) it is back to
> the expected 20 dBm.
>
>
> Signed-off-by: Tobias Diedrich <ranma+openwrt@xxxxxxxxxxxx>

Ok, the problem seems to come from the fact that rt2800 doesn't
register a per channel
max power to mac80211.

Luis, with rt2800 we are not really able to provide an accurate max tx power :(
so, can we restore the previous behavior in reg.c? Or maybe do something like

if (chan->max_reg_power)
  chan->max_power = min(chan->max_power, chan->max_reg_power);

Tobias, does that work for you as well?

Thanks,
Helmut
--
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