ieee80211_pspoll_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ieee80211_pspoll_get(9) β€” from the Kernel API Manual, bestie πŸŽ€

okay so picture this: you're deep in the kernel, it's giving driver-dev main character energy, and you need a PS Poll template. That's literally what this lil function hands you. Let's get into it ✨


✨ NAME ✨

ieee80211_pspoll_get β€” retrieve a PS Poll template πŸ¦‹


🌸 SYNOPSIS 🌸

struct sk_buff * ieee80211_pspoll_get (struct ieee80211_hw *hw , struct
ieee80211_vif *vif );

Like, that's the whole vibe. Two args in, one sk_buff * out πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • hw β€” a pointer you got from ieee80211_alloc_hw. Yep, that one. The hardware handle, the whole reason you're here 🫢
  • vif β€” a struct ieee80211_vif pointer, the kind you get handed in the add_interface callback. It's giving "the interface in question" ⭐

πŸ’œ DESCRIPTION πŸ’œ

So what it does: it creates a PS Poll, a template, which can (for example!) be uploaded to hardware. That's the flex πŸ”₯

Here's the part you cannot skip tho β€” the template must be updated after association so that the correct AID, BSSID and MAC address is used. Not me stressing about stale templates 😭 Like bestie, if you don't refresh it post-association you're gonna be sending the wrong identity out there. No cap.


πŸ’€ NOTE πŸ’€

Heads up! The caller (or the hardware) is responsible for setting the IEEE80211_FCTL_PM bit. That's not on this function. That's on you, queen πŸ‘‘ Don't forget it.

🌈 RETURN 🌈

Returns the PS Poll template. And on error? NULL. That's it, that's the whole story πŸ™ˆ


🧚 SEE ALSO 🧚

okay this section is long, like an absolute icon of a cross-reference list. Grab a snack πŸ“ β€” everything in the exact same order:


So yeah, that's the whole page β€” short, sweet, and lowkey iconic. This drop lives in ./include/net and it's dated October 2026, so write that down bestie πŸ—“οΈ And version-wise? This is ieee80211_pspoll_get(9), the one and only. Slay, go build something βœ¨πŸ’…πŸ¦‹

πŸ“¦ where this page comes from