rsi_set_antenna(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ rsi_set_antenna(9) β€” a Kernel API Manual moment πŸ¦‹

okay so bestie, listen. this one lives in the Kernel API Manual, section 9, and it's genuinely such a neat little function. no cap.


✨ NAME ✨

rsi_set_antenna β€” this function sends the antenna configuration request to the device. that's it. that's the whole job. she's focused, she's got main character energy, she ships the antenna config and she leaves πŸ’…


🌸 SYNOPSIS 🌸

int rsi_set_antenna (struct rsi_common *common , u8 antenna );

literally right there. two arguments, returns an int. iconic.


πŸŽ€ ARGUMENTS πŸŽ€

  • common β€” pointer to the driver private structure. yes queen, hand over your driver's whole inner world, she needs it 🫢
  • antenna β€” the bitmap for tx antenna selection. it's giving "which antennas are we transmitting on" and honestly? obsessed 🌈

⭐ RETURN ⭐

  • 0 on Success πŸ”₯
  • a negative error code on failure 😭

so like, vibe check the return value, bestie. 0 means slay, anything negative means something went sideways.


πŸ’œ SEE ALSO πŸ’œ

the kernel file we're living in, first of all:

  • ./drivers/net/wireless/rsi/rsi_91x_mgmt.c

and then the whole friend group, in order, no skips:

twenty-three besties and a source file. iykyk πŸ’€βœ¨


lowkey a reminder: rsi_set_antenna sends the antenna configuration request to the device β€” it does not promise you anything else, so read your return code like the queen you are πŸ‘‘

okay that's the page!! mwah πŸ’– this cutie came out of ./drivers/net/wireless/rsi, dated October 2026, and it's rsi_set_antenna(9) forever and always. go forth, select your antennas, and slay πŸ§šβ€β™€οΈπŸŽ€πŸ’…

πŸ“¦ where this page comes from