rsi_mac80211_set_antenna(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rsi_mac80211_set_antenna β€” a Kernel API Manual moment (section 9, bestie)

okay so picture this: you're deep in the kernel, you've got a wireless driver, and you need to tell it which antennas are doing the talking and which ones are doing the listening. that's literally this function. it's rsi_mac80211_set_antenna, and its whole entire job is to configure tx and rx antennas. no cap, that's it, that's the vibe. πŸ¦‹


✨ NAME ✨

rsi_mac80211_set_antenna β€” a function that's used to configure tx and rx antennas. she's giving antenna matchmaker, fr fr. πŸŽ€


🌸 SYNOPSIS 🌸

int rsi_mac80211_set_antenna (struct ieee80211_hw *hw , int radio_idx ,
u32 tx_ant , u32 rx_ant );

look at her. four whole parameters. iconic signature, no notes. πŸ‘‘


πŸ’– ARGUMENTS πŸ’–

  • hw β€” pointer to the ieee80211_hw structure. you know, the big one. the main character struct of the whole operation. 🫢
  • radio_idx β€” the radio index. which radio are we talking to? this one. πŸ”₯
  • tx_ant β€” bitmap for the tx antenna. tx = transmit, in case your brain is buffering rn. πŸ“‘
  • rx_ant β€” bitmap for the rx antenna. yes bestie, it's also a bitmap, and yes it's the receive one. πŸ’œ
ngl these are bitmaps, not just "antenna number one please" β€” so keep that in mind before you go passing in random integers like it's a drive-thru order. πŸ™ˆ

⭐ RETURN ⭐

0 on success. negative error code on failure. basically she'll give you a happy little zero or she'll hit you with the negative number and you'll know something went sideways. 😭


🌈 SEE ALSO 🌈

the source of truth herself lives right here in the kernel file:

./drivers/net/wireless/rsi/rsi_91x_mac80211.c

and the whole friend group, in order, because we don't leave anyone out:

like, that's the whole squad. go read them. iykyk. 🧚


and that's the page!! brought to you by the <./drivers/net/wireless/rsi> girlies, dated October 2026, living under the Kernel API Manual umbrella as rsi_mac80211_set_antenna(9). slay, goodbye, go configure some antennas bestie πŸ’…βœ¨πŸ“

πŸ“¦ where this page comes from