cfg80211_get_chandef_type(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ cfg80211_get_chandef_type β€” Kernel API Manual ✨

okay so bestie, welcome to cfg80211_get_chandef_type(9), a kernel API manual page, and honestly it's a short one so we can totally get through it together πŸ’–


πŸŽ€ NAME πŸŽ€

cfg80211_get_chandef_type β€” return old channel type from chandef

like, it takes your fancy new-ish channel definition and gives you back the old channel type. a little throwback moment, we love an icon that respects its roots πŸ’…


✨ SYNOPSIS ✨

enum nl80211_channel_type cfg80211_get_chandef_type (const struct
cfg80211_chan_def *chandef );

that's the whole signature, no cap. takes one const struct cfg80211_chan_def * and hands you back an enum nl80211_channel_type. πŸ¦‹


🌸 ARGUMENTS 🌸

  • chandef β€” the channel definition. yeah that's it, that's the whole parameter list. she's lowkey a one-argument queen πŸ‘‘

⭐ RETURN ⭐

it returns the old channel type β€” NOHT, HT20, or HT40+/- β€” derived from whatever chandef you passed in fr fr.

⚠️ but listen, important vibe check: the chandef you give it must have a bandwidth that allows this conversion. if it doesn't, that's not a slay, that's a problem. 🫢

and that's where part 1 wraps… except no it doesn't, because there's more coming 🌈

...okay so the SEE ALSO section did not stop, she's still going, and honestly? iconic of her πŸ’… here's the whole rest of the squad, in order, nothing skipped, no cap:


and that's the whole page, bestie πŸŽ€ it lives in ./include/net, dated October 2026, and it's filed under cfg80211_get_chandef_type(9) β€” go forth and channel-define responsibly, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from