cfg80211_get_unii(9)
β¨ 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 π₯
-EINVALiffreqis invalid π (bestie, invalid frequency = no band for you)0for UNII-11for UNII-2A2for UNII-2B3for UNII-2C4for 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 π
regulatory_hint_indoor(9)regulatory_netlink_notify(9)regulatory_hint_found_beacon(9)regulatory_hint_country_ie(9)regulatory_hint_disconnect(9)regulatory_indoor_allowed(9)regulatory_propagate_dfs_state(9)reg_dfs_domain_same(9)reg_reload_regdb(9)reg_check_channels(9)reg_leave_invalid_chans_wk(9)reg_leave_invalid_nan_wk(9)
β real talk: everything above is from./net/wireless, dated October 2026, and the page iscfg80211_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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms