cfg80211_new_sta(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cfg80211_new_sta πŸ’…

okay so real talk, this is a page from the Kernel API Manual and it's all about cfg80211_new_sta β€” the little function that tells userspace "hey bestie, there's a new station in town." no cap, that's literally the whole job. it's giving notification-with-extra-steps and honestly? we're obsessed.


✨ NAME ✨

cfg80211_new_sta β€” notify userspace about station

like, that's it. that's the whole mission statement. you got a station, userspace doesn't know about it yet, you fix that. 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

void cfg80211_new_sta (struct wireless_dev *wdev , const u8 *mac_addr ,
struct station_info *sinfo , gfp_t gfp );

look at her. four arguments, no return value, absolutely zero drama. she just does the thing and leaves. main character energy fr fr. πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • wdev β€” the wireless device. this is the struct wireless_dev * you're reporting the station on, so like… the whole reason any of this is happening. she's the context, the setting, the stage. 🌸
  • mac_addr β€” the station's address, as a const u8 *. yes it's a raw byte pointer, no it's not gonna hold your hand, yes you still have to pass the right thing. 😭
  • sinfo β€” the station information, a struct station_info *. this is the whole vibe check of the station wrapped up in one struct β€” everything userspace is about to learn about it. πŸ”₯
  • gfp β€” allocation flags, type gfp_t. you know the drill: tell the kernel how it's allowed to behave when it needs memory. pick your flags, be responsible, slay. ✨

ngl bestie, that's a lot of trust the kernel is putting in you to pass the right pointers here β€” there's no return value to check, so nothing's gonna warn you after the fact. πŸ‘€

more of this page is coming, so don't go anywhere β€” we're literally just getting started. πŸ’–

✨ SEE ALSO ✨

okay bestie, this SEE ALSO list is giving the entire friend group pulling up to the function πŸ’– every single (9) reference is here, in the same order the page serves it, no cap. grab a snack, we're going through the whole guest list πŸŽ€

...and like, the cross-reference list keeps going, because kernel docs literally never stop serving πŸ’… here's the rest of the besties:


okay that's genuinely the whole list, no cap, nothing skipped, we ate and left zero crumbs πŸ“βœ¨

fr fr though: this page lives in ./include/net, it's dated October 2026, and its full name is cfg80211_new_sta(9) β€” go read the related pages above if you wanna go deeper, bestie πŸ«ΆπŸ‘‘

that's the page!! now go forth and register your stations, you icon πŸ’…πŸŽ€

πŸ“¦ where this page comes from