rsi_mac80211_set_antenna(9)
π 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 theieee80211_hwstructure. 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:
rsi_is_cipher_wep(9)rsi_register_rates_channels(9)rsi_mac80211_detach(9)rsi_mac80211_rfkill_exit(9)rsi_indicate_tx_status(9)rsi_mac80211_tx(9)rsi_mac80211_start(9)rsi_mac80211_stop(9)rsi_mac80211_add_interface(9)rsi_mac80211_remove_interface(9)rsi_channel_change(9)rsi_config_power(9)rsi_mac80211_config(9)rsi_get_connected_channel(9)rsi_mac80211_bss_info_changed(9)rsi_mac80211_conf_filter(9)rsi_mac80211_conf_tx(9)rsi_hal_key_config(9)rsi_mac80211_set_key(9)rsi_mac80211_ampdu_action(9)rsi_mac80211_set_rts_threshold(9)rsi_mac80211_set_rate_mask(9)rsi_perform_cqm(9)rsi_fill_rx_status(9)rsi_indicate_pkt_to_os(9)rsi_mac80211_sta_add(9)rsi_mac80211_sta_remove(9)rsi_mac80211_get_antenna(9)rsi_mac80211_attach(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms