STRUCT ATH5K_GAIN(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct ath5k_gain(9) ✨

okay so bestie, welcome to the Kernel API Manual 🫢 β€” today's main character is struct ath5k_gain, and it's literally the RF Gain optimization engine state data πŸ’… like, no cap, that's the whole vibe.


πŸŽ€ NAME πŸŽ€

struct ath5k_gain β€” the RF Gain optimization engine state data ✨ that's it, that's the girl πŸ’β€β™€οΈ


🌸 SYNOPSIS 🌸

struct ath5k_gain {
    u8 g_step_idx;
    u8 g_current;
    u8 g_target;
    u8 g_low;
    u8 g_high;
    u8 g_f_corr;
    u8 g_state;
 };

look at her πŸ₯Ή seven little u8 fields, all cozy in one struct, and this is what we're talking about. copy it exactly, don't be weird about it πŸ™ˆ


πŸ’– Members πŸ’–

so here's the breakdown of every single member, because we do NOT skip anybody in this house πŸ‘‘

  • g_step_idx β€” Current step index β€” like, which step of the whole gain journey we're on rn πŸšΆβ€β™€οΈ
  • g_current β€” Current gain β€” the gain value she's got going on right now, periodt πŸ’…
  • g_target β€” Target gain β€” the gain we're manifesting ✨ literally the goal.
  • g_low β€” Low gain boundary β€” the floor, the boundary at the bottom, don't go below it 🚫
  • g_high β€” High gain boundary β€” the ceiling, the upper boundary, don't go above, iykyk πŸ”₯
  • g_f_corr β€” Gain_F correction β€” the correction factor, slay πŸ¦‹
  • g_state β€” One of enum ath5k_rfgain β€” yeah, it's one of those, not making this up πŸ’€

🌈 SEE ALSO 🌈

the whole friend group showed up, obsessed 😭 here's everyone:

Kernel file ./drivers/net/wireless/ath/ath5k/ath5k.h enum

  • ath5k_version(9)
  • enum ath5k_radio(9)
  • Atheros XR(9)
  • Atheros SuperAG(9)
  • enum ath5k_driver_mode(9)
  • enum ath5k_ant_mode(9)
  • enum ath5k_bw_mode(9)
  • struct ath5k_tx_status(9)
  • enum ath5k_tx_queue(9)
  • enum ath5k_tx_queue_subtype(9)
  • enum ath5k_tx_queue_id(9)
  • struct ath5k_txq(9)
  • struct ath5k_txq_info(9)
  • enum ath5k_pkt_type(9)
  • struct ath5k_rx_status(9)
  • enum ath5k_rfgain(9)
  • struct ath5k_athchan_2ghz(9)
  • enum ath5k_dmasize(9)
  • Rate codes(9)
  • enum ath5k_int(9)
  • enum ath5k_calibration_mask(9)
  • enum ath5k_power_mode(9)

okay that's the whole page, bestie, you ate that πŸ’–βœ¨

and for the cute sign-off: this little icon lives in ./drivers/net/wireless/ath/ath5k, dated October 2026, and it goes by struct ath5k_gain(9) πŸŽ€ go forth and gain-optimize, ily 🫢

πŸ“¦ where this page comes from