public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
From: Sebastian Gottschall <s.gottschall@dd-wrt.com>
To: Alexander Wilhelm <alexander.wilhelm@westermo.com>
Cc: Jeff Johnson <jjohnson@kernel.org>,
	ath11k@lists.infradead.org, linux-wireless@vger.kernel.org
Subject: Re: Question about TX power
Date: Fri, 9 May 2025 15:49:55 +0200	[thread overview]
Message-ID: <592e4722-d7e1-4202-897f-e2a522074fe6@dd-wrt.com> (raw)
In-Reply-To: <aB3uKfu3frLyJ/2c@FUE-ALEWI-WINX>


Am 09.05.2025 um 13:59 schrieb Alexander Wilhelm:
> Am Fri, May 09, 2025 at 12:54:47PM +0200 schrieb Sebastian Gottschall:
>> Am 09.05.2025 um 10:43 schrieb Alexander Wilhelm:
>>> Hello devs,
>>>
>>> I'd like to understand how TX power setting works on ath11k devices. For example
>>> when I'm using channel 36 for ETSI based regulatory domain, I can set up to 23
>>> dBm. But then I get only 20 dBm as a result. On different channels and/or
>>> regulatory domains I get different reductions. I tried to follow the source
>>> code. As far as I understood is that 'ath11k_mac_txpower_recalc' sets the
>>> correct values and 'ath11k_mac_op_get_txpower' return the different one.
>>>
>>> My question is where this reduction offset is encoded. Is it in the module's
>>> firmware or is it part of the boardfile? Thank you in advance.
>>>
>>>
>>> Best regards
>>> Alexander Wilhelm
>> the boardfile contains chipset specific calibration data which also defines
>> the hardware power limits (more specific data also included in the on board
>> calibration flash of the device or if its a router, in flash memory of the
>> router itself. in addition it includes a regulatory database which is used
>> by the firmware for managing the total power. you have also to consider that
>> the 23dbm are specified without antenna gain.
>> so if the antenna gain is 3 dbm, you get 20 dbm in total. this antenna gain
>> may again be specified in the boardfile.
>> so you will not find your answers in any sourcecode. its all encoded in
>> binary data.
>>
>> Sebastian
>>
> Alright, thank you Sebastian. Since I'm not using any calibration data on my
> router/AP device, all data come from the boardfile. I've also understood that
> the power limit reduction is related to antenna gain. I'll ask the radio module
> manufacturer to create another boardfile for me that matches the required
> antenna gain for my router/AP device.
my answer might be not accurate here. which chipset we are talking about 
for ath11k?
>
> Best regards
> Alexander Wilhelm
>

  reply	other threads:[~2025-05-09 13:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-09  8:43 Question about TX power Alexander Wilhelm
2025-05-09 10:54 ` Sebastian Gottschall
2025-05-09 11:59   ` Alexander Wilhelm
2025-05-09 13:49     ` Sebastian Gottschall [this message]
2025-05-12  8:51       ` Alexander Wilhelm
2025-05-15 18:03         ` Sebastian Gottschall
2025-05-16  5:51           ` 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=592e4722-d7e1-4202-897f-e2a522074fe6@dd-wrt.com \
    --to=s.gottschall@dd-wrt.com \
    --cc=alexander.wilhelm@westermo.com \
    --cc=ath11k@lists.infradead.org \
    --cc=jjohnson@kernel.org \
    --cc=linux-wireless@vger.kernel.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