__sta_info_flush(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __sta_info_flush(9) β€” Kernel API Manual, bestie ✨

okay so this is a kernel API manual page, and today's main character is __sta_info_flush β€” the function that literally flushes matching STA entries out of the STA table. say bye πŸ‘‹ to the stations, bestie.


🌸 NAME 🌸

__sta_info_flush β€” flush matching STA entries from the STA table 🧹✨


πŸŽ€ SYNOPSIS πŸŽ€

int __sta_info_flush (struct ieee80211_sub_if_data *sdata , bool vlans ,
int link_id , struct sta_info *do_not_flush_sta );

it returns an int, she takes four arguments, and yes that's the whole vibe πŸ’…


✨ ARGUMENTS ✨

  • sdata β€” the sdata you want to remove all the stations from. that's the one, that's the target 🎯
  • vlans β€” a bool. if the interface you passed is an AP interface, she also flushes the VLANs. if it's not an AP interface, well… she doesn't πŸ’β€β™€οΈ
  • link_id β€” if it's given (>=0), only the STA entries using that link_id get removed. but if you pass -1, everything goes β€” all STA entries, removed, gone, periodt πŸ”₯
  • do_not_flush_sta β€” a station that shouldn't be flushed. protected icon behavior honestly 🫢 keep her safe

πŸ’– RETURN πŸ’–

the number of removed STA entries. that's the count of stations that got the boot πŸ‘‘πŸ”’


🌈 SEE ALSO 🌈

the kernel file is ./net/mac80211/sta_info.h, and she wants you to also check out these besties:

  • enum ieee80211_sta_info_flags(9)
  • struct tid_ampdu_tx(9)
  • struct tid_ampdu_rx(9)
  • struct sta_ampdu_mlme(9)
  • struct ieee80211_fast_tx(9)
  • struct ieee80211_fast_rx(9)
  • struct mesh_sta(9)
  • struct link_sta_info(9)
  • struct ieee80211_sta_removed_link_stats(9)
  • struct sta_info(9)
  • sta_info_flush(9)

ngl the double-underscore prefix means this is the internal one, and sta_info_flush(9) is right there in SEE ALSO if you want the other flavor πŸ‘€

anyway that's the page!! this one lives in ./net/mac80211, it's from the Kernel API Manual, dated October 2026 β€” mwah, go flush some stations responsibly πŸ’œπŸ¦‹β­

πŸ“¦ where this page comes from