brcmf_apsta_add_vif(9)
π 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 π
- Kernel file:
./drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_mon_add_vif(9)brcmf_setup_ifmodes(9)
okay that's the page!! stay hydrated, check your pointers, and remember: ./drivers/net/wireless/broadco... β October 2026 πβπ mwah π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms