ath5k_hw_set...word_tx_desc(9)
π ath5k_hw_set...word_tx_desc(9) β like, the Kernel API Manual, bestie β¨
okay so picture this: it's a Kernel API Manual page, the title up top is ath5k_hw_set...word_tx_desc(9), and it's all about one very specific little function. stay with me, it's honestly iconic once you get it π«Ά
β¨ NAME β¨
ath5k_hw_setup_2word_tx_desc β Initialize a 2-word tx control descriptor. that's it, that's the whole vibe π
πΈ SYNOPSIS πΈ
int ath5k_hw_setup_2word_tx_desc (struct ath5k_hw *ah , struct
ath5k_desc *desc , unsigned int pkt_len , unsigned int hdr_len , int
padsize , enum ath5k_pkt_type type , unsigned int tx_power , unsigned
int tx_rate0 , unsigned int tx_tries0 , unsigned int key_index ,
unsigned int antenna_mode , unsigned int flags , unsigned int rtscts_rate ,
unsigned int rtscts_duration );
like, yes, that's a lot of parameters. she's high-maintenance but she's worth it π
π¦ ARGUMENTS π¦
ahβ Thestruct ath5k_hw. your main character struct, fr.descβ Thestruct ath5k_desc. the descriptor we're literally about to bless with data.pkt_lenβ Frame length in bytes. how big is the frame, bestie.hdr_lenβ Header length in bytes. β οΈ only used onAR5210, no cap.padsizeβ Any padding we've added to the frame length. yes, we padded it, and yes, we're telling you about it.typeβ One ofenum ath5k_pkt_type. pick your fighter.tx_powerβ Tx power in0.5dBsteps. half-dB precision, she's that girl.tx_rate0β HW idx for transmission rate. the hardware index, not a guess, okay?tx_tries0β Max number of retransmissions. how many times we're willing to try again (relatable π).key_indexβ Index on key table to use for encryption. πantenna_modeβ Which antenna to use (0for auto). honestly, letting it choose is such a mood.flagsβ One ofAR5K_TXDESC_*flags (seedesc.h). iykyk.rtscts_rateβ HW idx for RTS/CTS transmission rate.rtscts_durationβ What to put on duration field on the header of RTS/CTS.
π DESCRIPTION π
So this is an internal function β like, not for you to call from your little userspace app, it's backstage crew energy β and what it does is initialize a 2-Word TX control descriptor, which is the descriptor flavo(u)r found on AR5210 and AR5211 MACs chips. periodt. π
Returns0on success or-EINVALon false input. so like, check your inputs, bestie, or she WILL hand you an-EINVALand walk away πΆββοΈ
π SEE ALSO π
- Kernel file
./drivers/net/wireless/ath/ath5k/desc.c - Hardware descriptor functions(9)
ath5k_hw_setup_4word_tx_desc(9)ath5k_hw_setup_mrr_tx_desc(9)ath5k_hw_proc_2word_tx_status(9)ath5k_hw_proc_4word_tx_status(9)ath5k_hw_setup_rx_desc(9)ath5k_hw_proc_5210_rx_status(9)ath5k_hw_proc_5212_rx_status(9)ath5k_hw_init_desc_functions(9)
the whole friend group, together at last π«Άβ¨
and that's the page, bestie!! courtesy of ./drivers/net/wireless/ath/ath5k, dated October 2026, and yeah β this is ath5k_hw_set...word_tx_desc(9) signing off. slay, read the source, hydrate, bye ππΈβ
π¦ 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