From: Johannes Berg <johannes@sipsolutions.net>
To: wens@kernel.org, Alexander Wilhelm <alexander.wilhelm@westermo.com>
Cc: linux-wireless@vger.kernel.org, wireless-regdb@lists.infradead.org
Subject: Re: wireless-regdb: Wrong ETSI tranmit power without TPC
Date: Fri, 16 May 2025 10:26:30 +0200 [thread overview]
Message-ID: <e709c160b9a8eae55c5678fd222f1239657dfa29.camel@sipsolutions.net> (raw)
In-Reply-To: <CAGb2v676sXN_eC9s6_2a6k2ACzf3n5jBgY_id22ruoz+Zb-Jaw@mail.gmail.com>
On Fri, 2025-05-16 at 16:15 +0800, Chen-Yu Tsai wrote:
> The conversions don't always produce round numbers, and since we can't let
> the system exceed the _actual_ limit, the values can only be rounded down.
> For example, 500 mW converts to roughly 26.9897 dBm. We can't use 27 dBm,
> since if the system outputs at 26.999 dBm, it would be in violation of
> the rules.
While technically true, I'd think it's probably hard to even measure
that accurately, 27 dBm is 501.187 mW?
> Or, if we understand 3 dBm reduction to be halving the power,
That's fairly precise, a factor of 0.501.
> we could
> fix up any rules that "have their base limit in mW and were converted to
> dBm to apply the reduction" be rewritten in mW with the numbers halved.
> That would require someone to go through the entries though. But if
> the rules are already written in mW, and what you observe is the kernel
> rounding down the numbers, then perhaps the kernel may need to support
> both units.
I don't think _drivers_ (or firmware) would support both units, so
that'd just shift the rounding issue elsewhere?
Though I think in some places we use "mBm" instead of dBm? But then we
also just convert to dBm in many places so that'd likely not make it any
better.
johannes
next prev parent reply other threads:[~2025-05-16 8:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-06 13:13 wireless-regdb: Wrong ETSI tranmit power without TPC Alexander Wilhelm
2025-05-16 8:15 ` Chen-Yu Tsai
2025-05-16 8:26 ` Johannes Berg [this message]
2025-05-16 8:38 ` Johannes Berg
2025-05-16 8:39 ` Johannes Berg
2025-05-16 9:22 ` Alexander Wilhelm
2025-05-16 9:29 ` Johannes Berg
2025-05-16 9:14 ` Alexander Wilhelm
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=e709c160b9a8eae55c5678fd222f1239657dfa29.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=alexander.wilhelm@westermo.com \
--cc=linux-wireless@vger.kernel.org \
--cc=wens@kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox