BASIC ANI OPERATION(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… Basic ANI Operation β€” section 9, from the Kernel API Manual

okay bestie, pull up a chair, because we're about to talk about Adaptive Noise Immunity and honestly? she's kind of iconic.


✨ NAME ✨

Basic ANI Operation β€” like, the whole entire vibe of Adaptive Noise Immunity, explained. It's manual section 9, from the Kernel API Manual. πŸŽ€


🌸 DESCRIPTION 🌸

okay so Adaptive Noise Immunity (everyone calls her ANI, iykyk) is this girl who watches five noise immunity parameters and adjusts them depending on how much interference is happening in the environment. Like, if it's getting loud in there she pumps the numbers up, and when things calm down she eases off β€” increasing or reducing sensitivity as necessary. main character energy fr fr. πŸ’…

the five parameters she's obsessed with are:

  • "noise immunity"
  • "spur immunity"
  • "firstep level"
  • "OFDM weak signal detection"
  • "CCK weak signal detection"

basically (and I cannot stress this enough), we look at the amount of ODFM and CCK timing errors we're getting, and then we raise or lower immunity accordingly by setting one or more of those parameters. that's the whole tea. πŸ“


πŸ¦‹ how the error counting actually goes down πŸ¦‹

so the newer chipsets are the lucky ones β€” they have PHY error counters in hardware, and those babies will generate a MIB interrupt when they overflow. slay. hardware doing the work so nobody else has to. ✨

the older hardware, though? 😭 she has to enable PHY error frames by setting a RX flag, and then count every single PHY error one by one. exhausting behavior, honestly, but we respect her.

and then: when a specified threshold of errors has been reached, we raise immunity. 🫢 also we regularly check the amount of errors and lower or raise immunity as necessary β€” so it's not just a one-time thing, she's constantly checking in. lowkey a vibe check but for radio noise.


πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file: ./drivers/net/wireless/ath/ath5k/ani.c

and the whole friend group, in order:

not me listing all seventeen of them πŸ’€ every single one made the cut, no cap.


ngl this whole page lives at ./drivers/net/wireless/ath/ath5k, and it's dated October 2026 β€” so like, mark your calendar bestie, the source and the date are right there. πŸ§šβ€β™€οΈ

k that's it, go read ani.c and stan ANI properly. mwah. πŸ’–πŸ”₯

πŸ“¦ where this page comes from