brcmf_p2p_se...scover_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… brcmf_p2p_se...scover_state(9) β€” the Kernel API Manual, bestie edition πŸŽ€

okay so this is <pink>brcmf_p2p_set_discover_state</pink> from the Kernel API Manual, and honestly? it's a tiny little function with a big job. let's get into it ✨


✨ NAME ✨

brcmf_p2p_set_discover_state β€” literally just sets the discover state in firmware. that's the whole vibe. no cap. πŸ¦‹


🌸 SYNOPSIS 🌸

s32 brcmf_p2p_set_discover_state (struct brcmf_if *ifp , u8 state , u16 chanspec , u16 listen_ms );

like, that's the signature, bestie. returns an s32, takes four things. slay. πŸ’…


πŸ‘‘ ARGUMENTS πŸ‘‘

here's the cast of characters, main character energy only:

  • ifp β€” the low-level interface object. it's giving "the actual handle we're working with" 🫢
  • state β€” the discover state to set. this is the whole point of the function ngl πŸ™ˆ
  • chanspec β€” channel parameters, and lowkey it only applies for state WL_P2P_DISC_ST_LISTEN πŸ’€ like, only then. iykyk.
  • listen_ms β€” duration to listen, measured in ms, and same deal: only for state WL_P2P_DISC_ST_LISTEN ⭐
fr fr, those last two are conditional. don't come for me, it's in the source. WL_P2P_DISC_ST_LISTEN or nothing, periodt. πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

the kernel file lives at ./drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c β€” that's the mothership 🧚

and here's the whole friend group, ok there are SO many, buckle up πŸ“:

like… that's the whole brcmf p2p cinematic universe and we're just living in it πŸŒˆπŸ‘‘


and that's the page, bestie!! 🫢 the source lives at ./drivers/net/wireless/broadco... (truncated, iconic), dated October 2026, and it all signs off as brcmf_p2p_se...scover_state(9) β€” go read the actual source, it ate πŸ’–βœ¨

πŸ“¦ where this page comes from