brcmf_apsta_add_vif(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– brcmf_apsta_add_vif(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” specifically the page for brcmf_apsta_add_vif, and ngl this one is a serve. It's a little function that goes and makes you a brand new virtual interface, either AP or STA. iconic behaviour, honestly.


✨ NAME ✨

brcmf_apsta_add_vif β€” create a new AP or STA virtual interface 🫢


🌸 SYNOPSIS 🌸

struct wireless_dev * brcmf_apsta_add_vif (struct wiphy *wiphy , const
       char *name , struct vif_params *params , enum nl80211_iftype type );

yes that's the whole thing, copy it exactly, don't @ me πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • wiphy β€” the wiphy device that your new interface is gonna belong to. like, its home base 🏠
  • name β€” what you're naming the new interface. pick something cute.
  • params β€” this is where the mac address for your AP or STA device lives πŸ‘€
  • type β€” the interface type. the whole AP-vs-STA of it all.

πŸ”₯ RETURN πŸ”₯

on success you get a pointer to the shiny new vif ✨ β€” but if it goes sideways you get ERR_PTR(-errno) instead. no cap, always check that one 😭

fr fr, peek at the return value before you go dereferencing anything. ERR_PTR(-errno) is not a real pointer and it will ruin your whole day πŸ’€

πŸŽ€ SEE ALSO πŸŽ€


okay that's the page!! stay hydrated, check your pointers, and remember: ./drivers/net/wireless/broadco... β€” October 2026 πŸŒˆβ­πŸ’œ mwah πŸ’‹

πŸ“¦ where this page comes from