ath5k_hw_wri...ate_duration(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

ath5k_hw_write_rate_duration β€” bestie, this one fills in the rate code to duration table ✨ (yes it's as niche as it sounds, and yes it's iconic)

So the manual name for this whole page is ath5k_hw_wri...ate_duration(9) (they truncated it in the title, not me, iykyk) πŸŽ€


✨ SYNOPSIS ✨

void ath5k_hw_write_rate_duration (struct ath5k_hw *ah );

That's it. That's the whole vibe. One function, no return value (void), one pointer coming in πŸ”₯


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ah β€” The struct ath5k_hw. That's the hardware struct, the whole main character of this file. Hand it over and we're good πŸ’…

🌸 DESCRIPTION 🌸

Okay so picture this: hardware just got reset, right? And we need to write the rate code to duration table. That's literally the job description. πŸ“

This function is a helper for ath5k_hw_pcu_init. Like, it does not fly solo β€” it's the supportive bestie of that call 🫢

And here's the tea: it seems all this is doing is setting an ACK timeout on the hardware, based on the current mode, for each rate. That's the read. β˜•

Now the fun part β€” the rates which are capable of short preamble (802.11b rates 2Mbps, 5.5Mbps, and 11Mbps) have a different rate code. So guess what? We write their value twice β€” one for long preamble and one for short. Two entries, same rate, different preamble energy πŸ’€βœ¨


😭 NOTE 😭

Band doesn't matter here!! Not even a little!! πŸŽ‰

If we set the values for OFDM it works on both a and g modes. So all we have to do is set values for all g rates that include all OFDM and CCK rates. Boom. Done. No cap. πŸ‘‘


πŸ’œ SEE ALSO πŸ’œ

Kernel file ./drivers/net/wireless/ath/ath5k/pcu.c β€” Protocol Control Unit (PCU) functions(9), ACK rates(9), and honestly the whole friend group:


Go read them too, bestie. The PCU lore is deep and we are obsessed 🧚

And that's the page!! Source lives at ./drivers/net/wireless/ath/ath5k, dated October 2026, and the manual itself is ath5k_hw_wri...ate_duration(9) 🌈 mwah, stay slaying, and remember to man responsibly πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from