cfg80211_get_unii(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ cfg80211_get_unii β€” kernel API manual energy ✨

okay so bestie, this one lives in the Kernel API Manual, section 9, and it's literally the glow-up guide for figuring out which U-NII band a frequency belongs to. no cap, it's giving "regulatory vibes only" πŸ’…


🌸 NAME 🌸

cfg80211_get_unii β€” get the U-NII band for the frequency πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int cfg80211_get_unii (int freq );

πŸ’œ ARGUMENTS πŸ’œ

  • freq β€” the frequency for which we want to get the UNII band. that's it, that's the whole input, she's lowkey simple like that 🫢

✨ DESCRIPTION ✨

Get a value specifying the U-NII band frequency belongs to. U-NII bands are defined by the FCC in C.F.R 47 part 15. πŸ“œ

like, the FCC said what the bands are, and this function is just the messenger, periodt. iykyk πŸ‘‘


πŸ”₯ RETURN πŸ”₯

  • -EINVAL if freq is invalid 😭 (bestie, invalid frequency = no band for you)
  • 0 for UNII-1
  • 1 for UNII-2A
  • 2 for UNII-2B
  • 3 for UNII-2C
  • 4 for UNII-3

so like, a cute little numbered menu of bands, no guessing required 🌈


🌟 SEE ALSO 🌟

Kernel file ./net/wireless/reg.h β€” go read her, she ate πŸ’…


⭐ real talk: everything above is from ./net/wireless, dated October 2026, and the page is cfg80211_get_unii(9) β€” so if you ever need to cite her, that's the receipt, bestie 🧚

and that's the whole page!! short, sweet, and absolutely iconic β€” go get those bands sorted πŸ’–πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from