freq_in_rule_band(9)
π freq_in_rule_band(9) π
okay bestie so you found yourself in the Kernel API Manual and the page in question is freq_in_rule_band(9) β yes that's the whole name, it's giving very "function that knows things" energy and honestly? it does.
β¨ NAME β¨
freq_in_rule_band β literally just tells us if a frequency is in a frequency band π
β¨ SYNOPSIS β¨
bool freq_in_rule_band (const struct ieee80211_freq_range *freq_range ,
u32 freq_khz );
β¨ ARGUMENTS β¨
freq_rangeβ the frequency rule we want to query π like, this is the rule we're interrogatingfreq_khzβ the frequency we are inquiring about π«Ά the one we're holding up to the light going "do you belong here or not"
β¨ DESCRIPTION β¨
so what this does is let us know if a specific frequency rule is or is not relevant to a specific frequency's band. that's it, that's the whole vibe check π
now, bands are device specific and honestly kind of artificial definitions β we're talking the "2.4 GHz band", the "5 GHz band" and the "60GHz band" (yes, no space in that last one, that's how it's written, don't come for me π).
however β and this is the important part, bestie, don't skip it β it is safe for now to assume that a frequency rule should not be part of a frequency's band if the start freq or end freq are off by more than 2 GHz for the 2.4 and 5 GHz bands, and by more than 20 GHz for the 60 GHz band.
ngl this resolution can be lowered, and it should be considered as we add regulatory rule support for other "bands". so like. keep that in mind for later β¨
β¨ RETURN β¨
whether or not the frequency is in the range β a bool, iconic, no notes π
β¨ SEE ALSO β¨
- Kernel file
./net/wireless/reg.cWireless regulatory infrastructure(9) enum reg_request_treatment(9)regdom_intersect(9)reg_process_hint_core(9)reg_process_hint_user(9)reg_process_hint_driver(9)reg_process_hint_country_ie(9)
and that's the page!! πΈ this little legend lives over in ./net/wireless and the version/date stamp on it says October 2026 β so yeah, mark your calendar bestie, go off, read the source, slay ππ¦
mwah π
π¦ 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