STRUCT ATH_SPEC_SCAN(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’– 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 for 4 usec (when enabled) or 204 usec (when disabled). tiny time window vs. big time window, pick your fighter. โญ
  • endless โ€” true if endless mode is the goal. otherwise, the count value 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. ๐Ÿ’€
    • AR9300 and newer: 0 means endless mode.
  • period โ€” time duration between successive spectral scan entry points, calculated as period*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