ath5k_hw_set_sleep_clock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’€ ath5k_hw_set_sleep_clock(9) πŸ’€

okay so you're in the Kernel API Manual, bestie, and today's main character is ath5k_hw_set_sleep_clock β€” the little function that decides whether your wifi card gets to nap or has to stay up. πŸ¦‹


✨ NAME ✨

ath5k_hw_set_sleep_clock β€” setting up sleep clock operation, that's the whole vibe πŸ’…


🌸 SYNOPSIS 🌸

void ath5k_hw_set_sleep_clock (struct ath5k_hw *ah , bool enable );

no cap, that's the entire signature. she's short, she's sweet, she returns void and she does not care πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • ah β€” the struct ath5k_hw. literally the hardware struct, the whole reason we're here, our girl πŸ™ˆ
  • enable β€” enable sleep clock operation. pass false to disable it instead. yes queen, binary choices 🫢

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the tea β˜• β€” if there's an external 32KHz crystal just chilling there, available and ready, this function uses it as the ref. clock instead of the 32/40MHz clock and the baseband clocks. it's giving "power saving era" ✨ because that's literally the point: save power during sleep.

and when you're done napping? it restores normal 32/40MHz operation. wake up bestie, we have frames to move 🌈


πŸ’€ NOTE πŸ’€

when operating on 32KHz, certain PHY registers β€” specifically 27 - 31 and 123 - 127 β€” require delay on access. do not come for those registers without waiting, fr fr 😭

πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./drivers/net/wireless/ath/ath5k/reset.c β€” Reset function and helpers(9) β€” that's the whole squad right there, go read it πŸ“


mwah πŸ’‹ this page lives in ./drivers/net/wireless/ath/ath5k, dated October 2026, and it's still ath5k_hw_set_sleep_clock(9) at heart. slay, go put that card to sleep responsibly πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from