ieee80211_ap_probereq_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ieee80211_ap_probereq_get(9) πŸ’…

okay bestie, so this one is straight out of the Kernel API Manual and it's literally the cheat code for grabbing a Probe Request template without building one by hand. it's giving "small function, big rules" energy, so let's get into it 🫢


✨ NAME ✨

ieee80211_ap_probereq_get β€” retrieve a Probe Request template πŸŽ€


🌸 SYNOPSIS 🌸

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

πŸ¦‹ ARGUMENTS πŸ¦‹

  • hw β€” the pointer you got from ieee80211_alloc_hw. yeah, that one. don't lose it, don't invent your own πŸ’€
  • vif β€” your struct ieee80211_vif pointer, the one that came from the add_interface callback. the main character struct, fr fr πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

so what this does is creates a Probe Request template β€” like, an actual ready-to-go frame β€” which can, for example, be uploaded to hardware. no cap, that's the whole point. πŸš€

the template gets filled with bssid, ssid and supported rate information. that's the trio. that's the vibe. ⭐

now here's the part where you actually pay attention, bestie, because there are rules:

⚠️ this function must only be called from within the .bss_info_changed callback function, and only in managed mode. not your random callback, not IBSS, not AP. those exact conditions. the function will not be your friend otherwise. 😭

and one more thing β€” it's only useful when the interface is associated. if it's not associated, it will return NULL. like, don't be surprised. it told you. πŸ™ˆ


🌈 RETURN 🌈

  • the Probe Request template. iconic. queen behavior. πŸ’…
  • NULL on error. that's it, that's the deal. πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

okay so this list is long long. like, genuinely a whole wall of cross-references. but i love a thorough queen, so here's every single one, no skips, no cuts, periodt πŸŽ€


and that's the whole thing, bestie!! 🫢 you're now certified in Probe Request template retrieval. go forth and only call it from .bss_info_changed in managed mode, or the kernel will humble you 😭✨

this page lives in ./include/net, dated October 2026, and it's filed under ieee80211_ap_probereq_get(9) β€” mwah, love u, bye πŸ’…πŸŽ€πŸŒΈ

πŸ“¦ where this page comes from