ieee80211_fi...y_link_addrs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay so bestie, the vibe of this whole page is ieee80211_find_sta_by_link_addrs β€” literally it's the "find STA by link addresses" girlie ✨. That's it, that's the whole name section, we move.


✨ SYNOPSIS ✨

here's the signature, don't touch it, it's iconic exactly as it is:

struct ieee80211_sta * ieee80211_find_sta_by_link_addrs (struct
       ieee80211_hw *hw , const u8 *addr , const u8 *localaddr , unsigned int
       *link_id );

πŸŽ€ ARGUMENTS πŸŽ€

so like, four things go in, bestie, and they all matter:

  • hw β€” pointer as obtained from ieee80211_alloc_hw. yeah. that one. you already have it, don't act brand new 🫢
  • addr β€” the remote station's link address. like, THE station you're hunting for, its link addr, periodt.
  • localaddr β€” the local link address. lowkey you can pass NULL for any, but the manpage says avoid that πŸ™ˆ so, like, maybe don't.
  • link_id β€” pointer to obtain the link ID if the STA is found. may be NULL if the link ID is not needed. no thoughts head empty, just pass NULL, it's fine πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the actual bit: you obtain the STA by link address. that's the whole errand. must use RCU protection. must. like not optional, not "when you feel like it" β€” RCU protection or it's giving undefined chaos 😭 this is a caveat, bestie, respect the caveat.


⭐ RETURN ⭐

pointer to STA if found, otherwise NULL. that's the tea. found = pointer, not found = NULL, and you have to check it, please, for me πŸŽ€


🌈 SEE ALSO 🌈

okay so this is the part where the manpage just names the entire extended friend group, and I'm not skipping a single one because every single one of them is on the list ✨ the home base is the Kernel file ./include/net/mac80211.h, and then, in this order, no cap:

like I said β€” the whole group chat. nobody left on read πŸ’œ


and that's the page, bestie!! πŸ¦‹βœ¨ this one lives in ./include/net, dated October 2026, and it's from the Kernel API Manual β€” go forth and find your STA (with RCU protection, obviously) πŸ’–πŸŽ€

πŸ“¦ where this page comes from