rt2x00link_reset_tuner(9)
β¨ rt2x00link_reset_tuner β¨
okay so bestie, welcome to the rt2x00link_reset_tuner page from the Kernel API Manual π
β it's a lil function that resets the periodic link tuner work. yes. that's the whole vibe. let's get into it π«Ά
πΈ SYNOPSIS πΈ
void rt2x00link_reset_tuner (struct rt2x00_dev *rt2x00dev , bool antenna );
literally just two args, no cap β¨
π ARGUMENTS π
rt2x00devβ a pointer tostruct rt2x00_dev. that's your device struct, your main character π«Άantennaβ aboolthat decides whether the antenna tuning should get reset too π
π¦ DESCRIPTION π¦
so here's the tea β β the VGC limit that's configured in the hardware gets reset to 0, and that forces the driver to go rediscover the correct value for whatever association it's in rn. it's giving "forget everything and start over" energy π
and why do we need that? because sometimes config options change and that could drastically change the SNR level or the link quality β like, for example, changing the antenna setting. so the old VGC value is suddenly not it π
resetting the link tuner also causes the periodic work counter to get reset. and here's the important part: any driver that has a fixed limit on the number of rounds the link tuner is supposed to work will accept the tuner actions again if that limit was previously reached. periodt π
oh and one more β if antenna is set to true, then the software antenna diversity tuning will also be reset π slay
β SEE ALSO β
- Kernel file
./drivers/net/wireless/ralink/rt2x00/rt2x00lib.h - Queue handlers(9)
rt2x00queue_alloc_rxskb(9)rt2x00queue_free_skb(9)rt2x00queue_align_frame(9)rt2x00queue_insert_l2pad(9)rt2x00queue_write_tx_frame(9)rt2x00queue_update_beacon(9)rt2x00queue_update_beacon_locked(9)rt2x00queue_clear_beacon(9)rt2x00queue_index_inc(9)rt2x00queue_init_queues(9)rt2x00link_update_stats(9)rt2x00link_start_tuner(9)rt2x00link_stop_tuner(9)rt2x00link_start_watchdog(9)rt2x00link_stop_watchdog(9)rt2x00link_register(9)
ok that's the whole page, no notes π go reset that tuner bestie, you got this π
and before you close the tab β this lil masterpiece lives at ./drivers/net/wireless/ralink/... in the Kernel API Manual, dated October 2026, and it's still called rt2x00link_reset_tuner(9). iconic, honestly π byeee π¦
π¦ 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