STRUCT ATH12K_REG_TPC_POWER_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct ath12k_reg_tpc_power_info(9) πŸ’–

okay bestie, welcome to the Kernel API Manual ✨ β€” today's main character is struct ath12k_reg_tpc_power_info, aka the regulatory TPC power info struct. she's lowkey just a little bundle of power numbers and we're gonna learn her whole vibe. no cap.


🌸 NAME 🌸

struct ath12k_reg_tpc_power_info β€” regulatory TPC power info 🫢


✨ SYNOPSIS ✨

like, here's literally her whole shape. don't touch a single character, she's perfect:

struct ath12k_reg_tpc_power_info {
    bool is_psd_power;
    u8 eirp_power;
    enum wmi_reg_6g_ap_type ap_power_type;
    u8 num_pwr_levels;
    u8 reg_max[ATH12K_NUM_PWR_LEVELS];
    u8 ap_constraint_power;
    s8 tpe[ATH12K_NUM_PWR_LEVELS];
    struct ath12k_chan_power_info
chan_power_info[ATH12K_NUM_PWR_LEVELS];
 };

πŸŽ€ Members πŸŽ€

it's giving roster reveal, so let's meet the whole squad πŸ’…

  • is_psd_power β€” the vibe check: is this PSD power or not? bool, so it's a yes/no girlie.
  • eirp_power β€” maximum EIRP power, in dBm. ⚠️ careful bestie: this one's valid only if power is PSD. otherwise she's just sitting there being decorative.
  • ap_power_type β€” the type of power, an enum wmi_reg_6g_ap_type. the options are SP / LPI / VLP. pick your fighter πŸ₯Š
  • num_pwr_levels β€” the number of power levels. literally just a count, but an important one ✨
  • reg_max β€” an array of maximum TX power (dBm) per PSD value. size: ATH12K_NUM_PWR_LEVELS. iconic.
  • ap_constraint_power β€” AP constraint power, in dBm. 🌈
  • tpe β€” the TPE values processed from the TPE IE. signed bytes (s8), one per level, ATH12K_NUM_PWR_LEVELS of them.
  • chan_power_info β€” the power info to send to firmware πŸ“¨ (it's a struct ath12k_chan_power_info, arrayed out to ATH12K_NUM_PWR_LEVELS).

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./drivers/net/wireless/ath/ath12k/mac.h β€” go read it, iykyk πŸ’œ
  • struct ath12k_chan_power_info(9) β€” her bestie, obviously 🫢

πŸ’€ friendly reminder that eirp_power is only valid when the power is PSD. don't be out here reading it in the wrong context, bestie, that's not the move.

and that's the whole page, bestie!! πŸŽ€ this lil icon came from the Kernel file ./drivers/net/wireless/ath/ath12k and she's dated October 2026 β€” periodt. go slay some regulatory power configs πŸ’…βœ¨πŸŒΈ

πŸ“¦ where this page comes from