ieee80211_sta_current_bw(9)
π« ieee80211_sta_current_bw(9) π«
okay so bestie, welcome to the Kernel API Manual β yes that's the manual name, we're fancy now π β and today's main character is ieee80211_sta_current_bw, which is literally just "hey, how much bandwidth can this STA actually use right now?"
β¨ NAME β¨
ieee80211_sta_current_bw β get STA's current usable bandwidth π¦
πΈ SYNOPSIS πΈ
enum ieee80211_sta_rx_bandwidth ieee80211_sta_current_bw (struct
link_sta_info *link_sta , struct cfg80211_chan_def *chandef , enum
ieee80211_sta_bw_direction direction );
like, the vibe: you hand it a link STA, a chandef, and a direction, and it hands you back an enum ieee80211_sta_rx_bandwidth. iconique π
π ARGUMENTS π
link_staβ the (link) STA to get the bandwidth for π«Ά that's your girl right therechandefβ the chandef for the channel the STA is on π‘ gotta know where she's sittingdirectionβ the direction (to or from STA) π yes bestie, direction matters, it's giving nuance
π₯ RETURN π₯
the maximum bandwidth that the station can/may (currently) use in the given direction β¨
like β key word currently β it's the max she's allowed right now, not some forever-promise, ngl π
π SEE ALSO π
- Kernel file
./net/mac80211/sta_info.cSTA information lifetime rules(9) sta_info_free(9)ieee80211_sta_bw_capability(9)ieee80211_sta_usable_bw(9)
go read those too, they're literally the friend group of this function π§π
lowkey a reminder bestie: all the real technical tea lives in the sections above β I'm just here for the vibes, not to invent new behavior π
and that's the whole page, periodt π this little beauty lives in ./net/mac80211 and it's dated October 2026 β catch you in the next release, mwah πβπ
π¦ 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