wdev_to_ieee80211_vif(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… wdev_to_ieee80211_vif β€” Kernel API Manual πŸŽ€

okay so real talk, this one is a tiny little helper from the Kernel API Manual and it's genuinely so simple bestie, like three lines of lore and then a massive friend group in SEE ALSO. let's go ✨


🌸 NAME 🌸

wdev_to_ieee80211_vif β€” return a vif struct from a wdev

like. it takes the wdev. it gives you the vif. matcha. 🍡


πŸ¦‹ SYNOPSIS πŸ¦‹

struct ieee80211_vif * wdev_to_ieee80211_vif (struct wireless_dev *wdev
);

πŸ’œ ARGUMENTS πŸ’œ

  • wdev β€” the wdev to get the vif for. that's the whole argument. that's it. one (1) singular wdev. she's low maintenance πŸ’…

✨ DESCRIPTION ✨

so this is the function mac80211 drivers reach for when they're using the direct cfg80211 APIs β€” think vendor commands, iykyk β€” and what they get handed is a wdev. no cap, that's the whole use case. it's giving "middle of the group chat, someone tosses you a wdev, you need the vif."


πŸ‘‘ RETURN πŸ‘‘

you get back a pointer to the wdev, or NULL if the wdev you passed in isn't associated with a vif that the driver knows about β€” for example monitor or AP_VLAN interfaces. πŸ™ˆ

ngl bestie, NULL is not an error here, it's just the function telling you "girl this one isn't yours." always check before you dereference, fr fr πŸ’€

🌈 SEE ALSO 🌈

okay this is the part where the page just. lists everyone. the entire extended universe. the whole group chat, the whole family reunion, the whole roster πŸ‘‘

first up, the source of truth:

  • Kernel file ./include/net/mac80211.h

and then literally everyone else:

like. that's the whole cast. every single one showed up to the party and honestly? respect 🫢


and that's the page bestie!! 🧚 she's smol, she's iconic, she returns NULL sometimes and that's valid.

mwah πŸ’– β€” sourced from the kernel file ./include/net, dated October 2026, and yes the page is still called wdev_to_ieee80211_vif(9), we did not rename her, she's been through enough πŸŽ€

πŸ“¦ where this page comes from