STRUCT ATH_SPEC_SCAN(9)
๐ struct ath_spec_scan โ parameters for Atheros spectral scan ๐
okay bestie, so this is the struct ath_spec_scan page from the Kernel API Manual, and it is literally the blueprint for Atheros spectral scan vibes. the manual name is struct ath_spec_scan(9) and we are gonna get into it. ๐ฆ
โจ SYNOPSIS โจ
struct ath_spec_scan {
bool enabled;
bool short_repeat;
bool endless;
u8 count;
u8 period;
u8 fft_period;
};
๐ Members ๐
enabledโ turns spectral scan on or off, no cap. it is the main character switch.short_repeatโ controls whether the chip is in spectral scan mode for4 usec(when enabled) or204 usec(when disabled). tiny time window vs. big time window, pick your fighter. โญendlessโtrueif endless mode is the goal. otherwise, thecountvalue gets corrected to the next possible value. periodt.countโ the number of scan results requested. but heads up, some chip revisions give this field special meanings, and it is giving lore:AR92xx: highest bit set (>=128) means endless mode โ spectral scan won't be stopped until it is explicitly disabled. ๐AR9300and newer:0means endless mode.
periodโ time duration between successive spectral scan entry points, calculated asperiod*256*Tclk. also,Tclk = ath_common->clockrate. math era. ๐งฎfft_periodโ PHY passes FFT frames to MAC every(fft_period+1)*4uS. yes bestie, that is the formula, copy it exactly. ๐
๐ธ Note ๐ธ
Tclk = 40MHz or 44MHz depending upon operating mode. typically it's 44MHz in 2/5GHz on later chips, but there's a "fast clock" check for this in 5GHz. so lowkey always check your clock situation. ๐ฐ๏ธ
๐ซถ SEE ALSO ๐ซถ
- Kernel file
./drivers/net/wireless/ath/ath9k/hw.h struct ath_hw_radar_conf(9)struct ath_hw_private_ops(9)struct ath_hw_ops(9)
and that's the whole page, bestie. slay. ๐
shoutout to ./drivers/net/wireless/ath/ath9k for the source, October 2026 for the date, and the struct ath_spec_scan(9) manual for the version. mwah. ๐โจ
๐ฆ 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