ath5k_hw_set_sleep_clock(9)
π€ 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β thestruct ath5k_hw. literally the hardware struct, the whole reason we're here, our girl πenableβ enable sleep clock operation. passfalseto 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 π
ath5k_hw_register_timeout(9)ath5k_hw_htoclock(9)ath5k_hw_clocktoh(9)ath5k_hw_init_core_clock(9)ath5k_hw_nic_reset(9)ath5k_hw_wisoc_reset(9)ath5k_hw_set_power_mode(9)ath5k_hw_on_hold(9)ath5k_hw_nic_wakeup(9)ath5k_hw_tweak_initval_settings(9)ath5k_hw_commit_eeprom_settings(9)ath5k_hw_reset(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms