ath5k_create_power_curve(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ath5k_create_power_curve(9) πŸ’…

okay bestie, this one lives in the Kernel API Manual, and it's genuinely such a fun little function. buckle up πŸŽ€


✨ NAME ✨

ath5k_create_power_curve β€” literally makes a Power to PDADC curve, or a Power to PCDAC curve. that's the whole vibe. no cap ✨


🌸 SYNOPSIS 🌸

void ath5k_create_power_curve (s16 pmin , s16 pmax , const s16 *pwr ,
       const u8 *vpd , u8 num_points , u8 *vpd_table , u8 type );

it returns void, so like… it's not gonna hand you anything back. it just does the thing and dips πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • pmin β€” the minimum power value, aka xmin. the floor, the bare minimum, the "i'm not getting out of bed for less than this" of power values.
  • pmax β€” the maximum power value, aka xmax. the ceiling. main character energy, at max volume πŸ”₯
  • pwr β€” an array of power steps. these are your x values, queen πŸ‘‘
  • vpd β€” an array of matching PCDAC/PDADC steps. these are your y values, and yes they gotta match pwr, it's giving paired set 🫢
  • num_points β€” how many points you actually showed up with. count 'em.
  • vpd_table β€” the array you fill up with the full PCDAC/PDADC values (y values). this is the output bestie, this is what gets written πŸ’–
  • type β€” one of enum ath5k_powertable_type (from eeprom.h). pick your flavor, there's a whole enum of them.

πŸ’œ DESCRIPTION πŸ’œ

so what it does: it interpolates the (pwr,vpd) points to create a Power to PDADC curve, or a Power to PCDAC curve. like connect-the-dots but for radio calibration ✨

each curve has power on the x axis (in 0.5dB units) and PCDAC/PDADC steps (offsets) on the y axis. power can go up to 31.5dB, and the max PCDAC/PDADC step for each curve is 64 β€” but here's the tea 🍡 β€” we can write more than one curve on hw, so we can actually go up to 128, which is the max step we can write on the final table. iconic. no notes. πŸ‘‘

and what actually gets written on hw? the y values. the PCDAC/PDADC steps. that's it, that's the whole job. πŸ’…

ngl this is one of those "sounds small, matters a lot" functions β€” it's the glow-up pass that turns your handful of calibration points into the full table 🧚

🌈 SEE ALSO 🌈

okay this list is LONG and honestly kinda iconic, so here's everybody, fr fr:

like… that's the whole friend group 😭🫢


ok that's the page!! this little cutie comes from ./drivers/net/wireless/ath/ath5k and it's dated October 2026 β€” so yeah, it's giving future icon πŸ’« slay, and see u in the next manpage bestie πŸ’–πŸŽ€βœ¨
πŸ“¦ where this page comes from