cfg80211_get_station(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cfg80211_get_station β€” a Kernel API Manual moment

ok so bestie, welcome to the cfg80211_get_station(9) page πŸ’– this is part of the Kernel API Manual, and bestie, it's giving "small function, big job" energy. Like yeah it's only four sections but every single one of them matters, no cap.


✨ NAME ✨

cfg80211_get_station β€” retrieve information about a given station 🌸

Like, that's the whole vibe. You point at a station, it gives you the deets. Obsessed.


✨ SYNOPSIS ✨

int cfg80211_get_station (struct net_device *dev , const u8 *mac_addr ,
       struct station_info *sinfo );

Look at that signature, it ate πŸŽ€ three arguments, one int coming back. Nothing extra, nothing missing. Iconic.


✨ ARGUMENTS ✨

  • dev β€” the device where the station is supposed to be connected to πŸ‘€ like, that's the net_device we're working with, and yes "supposed to" is doing a lot of heavy lifting there, keep that in mind bestie.
  • mac_addr β€” the mac address of the station of interest πŸ¦‹ you know, the one you're actually curious about. const u8 *, so like, don't go writing to it, it's not yours.
  • sinfo β€” pointer to the structure to fill with the information πŸ’… that's the struct station_info *, and it is literally the whole point of calling this function. It's the little empty vessel waiting to be filled with station lore.

✨ RETURN ✨

so here's the vibe check on what comes back πŸ”₯

  • 0 on success β€” and sinfo is filled with the available information ✨ slay, you got your data, go wild.
  • a negative error code otherwise β€” and here's the important part, bestie, don't skip this: the content of sinfo has to be considered undefined 😭 like genuinely do not touch it, do not read it, do not assume it's empty or zeroed or anything. It's undefined. Periodt.
🫢 fr fr though β€” if you get a negative error code back, that sinfo is not your friend. Treat it like it doesn't exist. That's the rule, and it's not a cute little suggestion, it's the contract.

πŸŽ€ SEE ALSO πŸŽ€

okay bestie, brace yourself β€” this is the link dump to end all link dumps. Every single thing below is a real page you can go read, and honestly? it's giving "the entire extended cinematic universe". grab a snack, we're going through all of it πŸ’…



that's the entire link dump, no skips, no "oh that one's probably not important". every single page is here because the kernel does not do "optional reading" fr fr β€” but like… if you actually read all of these, genuinely iconic of you πŸ‘‘

…and the reading list keeps going, bestie, because this corner of the kernel genuinely has like a hundred little friends and they all want a shoutout πŸ’… so here's the rest of the extended universe, one iconic cameo at a time:


okay that's the whole squad, every single one accounted for, not a single name dropped πŸ’–

and that's a wrap on cfg80211_get_station(9)! πŸŽ€source: the lovely humans over in ./include/net, dated October 2026 β€” go drink some water, then go read your man pages, bestie. slay, stay curious, and don't forget to free your NAN functions 🫢✨

πŸ“¦ where this page comes from