ENUM P2P_BSS_TYPE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– enum p2p_bss_type β€” a whole vibe check on BSS configs πŸ’–

okay so bestie, we're deep in the Kernel API Manual today and this one is literally all about the enum p2p_bss_type β€” aka the different types of BSS configurations. no cap, it's a tiny enum but it's carrying the whole P2P situation on its back. 🫢


✨ NAME ✨

enum p2p_bss_type β€” the different type of BSS configurations. that's it, that's the whole name section, she's concise and iconic. πŸ‘‘


🌸 SYNOPSIS 🌸

bestie, here's the whole enum laid out, and yes you need every single one of these, don't skip:

enum p2p_bss_type {
    P2PAPI_BSSCFG_PRIMARY ,
    P2PAPI_BSSCFG_DEVICE ,
    P2PAPI_BSSCFG_CONNECTION ,
    P2PAPI_BSSCFG_CONNECTION2 ,
    P2PAPI_BSSCFG_MAX

};

lowkey obsessed with how tidy that is. note the little spaces before the commas β€” that's how the original rolls, we don't touch it. πŸ’…


πŸŽ€ CONSTANTS πŸŽ€

okay this is the main character section, let's go one by one:

  • P2PAPI_BSSCFG_PRIMARY β€” maps to the driver's primary bsscfg. the OG. the blueprint. 🧚
  • P2PAPI_BSSCFG_DEVICE β€” maps to the driver's P2P device discovery bsscfg. this is the one out there finding friends, fr fr. πŸ”
  • P2PAPI_BSSCFG_CONNECTION β€” maps to the driver's 1st P2P connection bsscfg. first connection, first love, number one. πŸ’–
  • P2PAPI_BSSCFG_CONNECTION2 β€” maps to the driver's 2nd P2P connection bsscfg. second connection, she's not a copy, she's a sequel. πŸ¦‹
  • P2PAPI_BSSCFG_MAX β€” used for range checking. the bouncer at the club, checking your ID, making sure you're in range. periodt. πŸšͺ✨
ngl, this one's short but every single value matters β€” don't be out here inventing new ones, the enum is the enum. 😀

πŸ”₯ SEE ALSO πŸ”₯

go touch some grass in these files and structs, bestie, they're all connected:

  • Kernel file ./drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.h
  • struct p2p_bss(9)
  • enum brcmf_p2p_status(9)
  • struct afx_hdl(9)
  • struct brcmf_p2p_info(9)

the whole brcmfmac squad, iykyk. 🌈


πŸ’œ the sign-off πŸ’œ

that's the page, bestie! πŸŽ€ this lil beauty comes from ./drivers/net/wireless/broadco... and she's dated October 2026, living under the Kernel API Manual umbrella β€” the same enum p2p_bss_type(9) you started with, full circle, main character energy from start to finish. slay. πŸ’…βœ¨

πŸ“¦ where this page comes from