il3945_get_antenna_flags(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… il3945_get_antenna_flags(9) β€” bestie edition

okay so this is a page from the Kernel API Manual (yes, the kernel has lore too, and this one's a whole era πŸ’€), and it's about one very specific little function: il3945_get_antenna_flags(9). It's giving "niche but important" and honestly? iconic. Let's get into it πŸŽ€


✨ NAME ✨

il3945_get_antenna_flags β€” get antenna flags for RXON command πŸ¦‹

Like, the function's whole job is rounding up the antenna flags so the RXON command knows what's up. That's it. That's the gig. πŸ’–


🌸 SYNOPSIS 🌸

__le32 il3945_get_antenna_flags (const struct il_priv *il );

Yep, that's the whole signature. __le32 in, __le32 out, one const struct il_priv *il in the middle. Clean, minimal, main character energy fr fr πŸ‘‘


🫢 ARGUMENTS 🫢

  • il β€” okay so this is the good one. The eeprom and antenna fields on this bad boy are used to determine the antenna flags. So like, il is literally the source of truth here. no cap. πŸ’…

πŸ”₯ DESCRIPTION πŸ”₯

So here's the tea β˜• β€” il->eeprom39 is what gets used to determine if the antenna AUX/MAIN are reversed. Like, the eeprom is snitching on the hardware configuration, iykyk.

Meanwhile, il3945_mod_params.antenna specifies the antenna diversity mode. And the modes are:

  • IL_ANTENNA_DIVERSITY β€” the NIC selects the best antenna by itself. independent queen, doesn't need us 🧚
  • IL_ANTENNA_MAIN β€” Force MAIN antenna. we're being bossy about it πŸ’…
  • IL_ANTENNA_AUX β€” Force AUX antenna. also bossy, different antenna 🌈

That's the whole vibe check. Three modes, one of them is "let the NIC cook", the other two are "no, we're picking, periodt."


πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./drivers/net/wireless/intel/iwlegacy/3945-mac.c β€” go read the source bestie, it's all there 🌸

lowkey a reminder that antenna flags are serious business β€” this is literally what feeds the RXON command, so don't sleep on it 😭

✨ that's the whole page ✨ β€” from the Kernel API Manual, sourced from ./drivers/net/wireless/intel/i... (yes the path got cut off in the original, we don't gatekeep, we just report πŸ“‹), dated October 2026, and filed under il3945_get_antenna_flags(9). mwah, go forth and set your antenna flags πŸ’‹πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from