ieee80211_has_protected(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ieee80211_has_protected(9)

okay so bestie, we're in Kernel API Manual territory today and this one's a lil baby function but she's important. it's ieee80211_has_protected(9), and she does exactly one (1) thing. iconic behavior tbh πŸŽ€


✨ NAME ✨

ieee80211_has_protected β€” check if IEEE80211_FCTL_PROTECTED is set

like, that's it. that's the whole job. she looks at your frame control and tells you if the protected flag is living there rent-free or not 🫢


🌸 SYNOPSIS 🌸

bool ieee80211_has_protected (__le16 fc );

yes the spacing is exactly like that, don't come for me, i just report what the kernel says πŸ’€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • fc β€” frame control bytes in little-endian byteorder. little-endian is the vibe here, no cap. don't hand her big-endian bytes, she's not doing that today πŸ™ˆ

⭐ RETURN ⭐

returns whether or not the protected flag is set. that's a bool bestie β€” yes or no, set or not set, no in-between, no "it's complicated" πŸ’…


🧚 SEE ALSO 🧚

okay this list is long long, like she has a whole extended friend group, so buckle up. first up, the home base:

  • Kernel file ./include/linux/ieee80211.h

and now the whole group chat, alphabetically-adjacent as the kernel intended πŸ’–

like i said. extended friend group. she knows everyone at the function and everyone at the function knows her πŸ˜­πŸ‘‘


lowkey the whole function is a one-liner flag check, and honestly? she ate. no notes. go read the siblings, they're all in ./include/linux/ieee80211.h with her 🌈

and that's the page!! brought to you straight out of ./include/linux, dated October 2026 β€” mwah, ily, go check your flags bestie πŸ’œπŸŽ€

πŸ“¦ where this page comes from