wifi: rtw89: constrain TX power according to Transmit Power Envelope

Calculate a TX power constraint based on content of ieee80211 Transmit
Power Envelope (TPE). Since HW control registers aren't designed as many
as all kinds of TPE fields, we strictly intersect all TPE inputs in driver.
Then, according to result, constrain TX power via TX power limit/limit_RU.

Besides, extend dbgfs txpwr_table to show info about 6 GHz regulatory.

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20240626023237.7901-1-pkshih@realtek.com
This commit is contained in:
Zong-Zhe Yang 2024-06-26 10:32:37 +08:00 • committed by Ping-Ke Shih
commit dcf920ff8c
6 changed files with 262 additions and 18 deletions