freq_reg_info(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… freq_reg_info(9) πŸ’…

okay so this is the freq_reg_info(9) page from the Kernel API Manual, and it’s giving β€œtiny function, very specific vibe” ✨. No cap, we’re about to get regulatory info for a frequency. πŸ¦‹


✨ NAME ✨

freq_reg_info β€” get regulatory information for the given frequency. periodt. πŸ’–


🌸 SYNOPSIS 🌸

const struct ieee80211_reg_rule * freq_reg_info (struct wiphy *wiphy ,
u32 center_freq );

πŸŽ€ ARGUMENTS πŸŽ€

  • wiphy β€” the wiphy for which we want to process this rule for. yes bestie, that’s the wireless-device situation we’re looking at. πŸ“‘
  • center_freq β€” Frequency in KHz for which we want regulatory information for. literally the frequency, in KHz, and we want the regulatory info for it. πŸ’…

πŸ’œ DESCRIPTION πŸ’œ

Use this function to get the regulatory rule for a specific frequency on a given wireless device. 🧚

If the device has a specific regulatory domain it wants to follow, we respect that β€” unless a country IE has been received and processed already. iykyk 🌈


πŸ”₯ RETURN πŸ”₯

What you get back is a valid pointer πŸ‘‘, or β€” when an error occurs, for example if no rule can be found β€” the return value is encoded using ERR_PTR. Use IS_ERR to check it and PTR_ERR to obtain the numeric return value. 🫢

The numeric return value will be -ERANGE if we determine the given center_freq does not even have a regulatory rule for a frequency range in the center_freq’s band. See freq_in_rule_band for our current definition of a band β€” this is purely subjective and right now it’s 802.11 specific. πŸ’€βœ¨

✨ SEE ALSO ✨

okay bestie, this is the part where the page dumps its entire contact list πŸ˜­πŸ’– and honestly? it's giving "everything in cfg80211 that lives near this one." every struct, enum, helper and group heading you could ever need to look up next. no cap, it's long β€” but it's all here, so breathe 🫢

okay that first cluster was the capability-and-band girlies πŸ‘‘ now we get into the action/configuration extended universe, and yes it's a whole saga πŸ’…

next up: survey stuff, AP/beacon stuff, station params, SAR, mesh, OCB β€” just a casual little everything bagel πŸ₯―✨

  • enum survey_info_flags(9)
  • struct survey_info(9)
  • struct cfg80211_crypto_settings(9)
  • struct cfg80211_mbssid_config(9)
  • struct cfg80211_mbssid_elems(9)
  • struct cfg80211_rnr_elems(9)
  • struct cfg80211_beacon_data(9)
  • struct cfg80211_acl_data(9)
  • struct cfg80211_fils_discovery(9)
  • struct cfg80211_unsol_bcast_probe_resp(9)
  • struct cfg80211_s1g_short_beacon(9)
  • struct cfg80211_ap_settings(9)
  • struct cfg80211_ap_update(9)
  • struct cfg80211_csa_settings(9)
  • struct cfg80211_color_change_settings(9)
  • struct iface_combination_params(9)
  • enum station_parameters_apply_mask(9)
  • struct sta_txpwr(9)
  • struct link_station_parameters(9)
  • struct link_station_del_parameters(9)
  • struct cfg80211_ttlm_params(9)
  • struct station_parameters(9)
  • struct station_del_parameters(9)
  • enum cfg80211_station_type(9)
  • cfg80211_check_station_change(9)
  • enum rate_info_flags(9)
  • enum rate_info_bw(9)
  • struct rate_info(9)
  • enum bss_param_flags(9)
  • struct sta_bss_parameters(9)
  • struct cfg80211_txq_stats(9)
  • struct cfg80211_tid_stats(9)
  • struct link_station_info(9)
  • struct station_info(9)
  • struct cfg80211_sar_sub_specs(9)
  • struct cfg80211_sar_specs(9)
  • struct cfg80211_sar_freq_ranges(9)
  • struct cfg80211_sar_capa(9)
  • cfg80211_get_station(9)
  • enum monitor_flags(9)
  • enum mpath_info_flags(9)
  • struct mpath_info(9)
  • enum wiphy_bss_param_flags(9)
  • struct bss_parameters(9)
  • struct mesh_config(9)
  • struct mesh_setup(9)
  • struct ocb_setup(9)
  • struct ieee80211_txq_params(9)

okay scanning and BSS list handling is like its own little fandom at this point πŸ”₯ and then connection, wowlan, coalesce, NAN, auth… the way this page just keeps going 😭 but we're not skipping a single one, bestie

  • Scanning and BSS list handling(9)
  • struct cfg80211_ssid(9)
  • struct cfg80211_scan_info(9)
  • struct cfg80211_scan_6ghz_params(9)
  • struct cfg80211_scan_request(9)
  • struct cfg80211_match_set(9)
  • struct cfg80211_sched_scan_plan(9)
  • struct cfg80211_bss_select_adjust(9)
  • struct cfg80211_sched_scan_request(9)
  • enum cfg80211_signal_type(9)
  • struct cfg80211_inform_bss(9)
  • struct cfg80211_bss_ies(9)
  • struct cfg80211_bss(9)
  • ieee80211_bss_get_elem(9)
  • ieee80211_bss_get_ie(9)
  • struct cfg80211_auth_request(9)
  • struct cfg80211_assoc_link(9)
  • struct cfg80211_ml_reconf_req(9)
  • enum cfg80211_assoc_req_flags(9)
  • struct cfg80211_assoc_request(9)
  • struct cfg80211_deauth_request(9)
  • struct cfg80211_disassoc_request(9)
  • struct cfg80211_ibss_params(9)
  • struct cfg80211_bss_selection(9)
  • struct cfg80211_connect_params(9)
  • enum cfg80211_connect_params_changed(9)
  • enum wiphy_params_flags(9)
  • struct cfg80211_pmksa(9)
  • struct cfg80211_pkt_pattern(9)
  • struct cfg80211_wowlan_tcp(9)
  • struct cfg80211_wowlan(9)
  • struct cfg80211_coalesce_rules(9)
  • struct cfg80211_coalesce(9)
  • struct cfg80211_wowlan_nd_match(9)
  • struct cfg80211_wowlan_nd_info(9)
  • struct cfg80211_wowlan_wakeup(9)
  • struct cfg80211_gtk_rekey_data(9)
  • struct cfg80211_update_ft_ies_params(9)
  • struct cfg80211_mgmt_tx_params(9)
  • struct cfg80211_dscp_exception(9)
  • struct cfg80211_dscp_range(9)
  • struct cfg80211_qos_map(9)
  • Neighbor Awareness Networking (NAN)(9)
  • struct cfg80211_nan_band_config(9)
  • struct cfg80211_nan_conf(9)
  • struct cfg80211_nan_channel(9)
  • struct cfg80211_nan_local_sched(9)
  • struct cfg80211_nan_peer_map(9)
  • struct cfg80211_nan_peer_sched(9)
  • enum cfg80211_nan_conf_changes(9)
  • struct cfg80211_nan_func_filter(9)
  • struct cfg80211_nan_func(9)
  • struct cfg80211_pmk_conf(9)
  • struct cfg80211_external_auth_params(9)

and here comes the FTM/PMSR + wiphy-ops + wireless-dev section β€” main character energy, honestly πŸ‘‘πŸ’…

utility functions! channel math! header length! data path helpers! the little functional icons of this whole page 🌸✨

regulatory girlies, scan-done/BSS-reporting besties, mlme notifications, rfkill β€” we're still going and we're still slaying πŸ§šπŸ’œ

final stretch, bestie, and it's giving vendor commands, test mode, connect/roam notifications and all the rx/tx status besties 😭🌟 not one skipped, not one renamed, periodt πŸ’–

the NAN squad, all in matching outfits πŸ’œ

auth + measurement + policy girlies, iconic behaviour ✨

bss housekeeping, like cleaning your room but for frames 🧹

MLO main character energy, no notes πŸ‘‘

more NAN, because she contains multitudes πŸŽ€

debugfs besties β€” one reads, one writes, balanced as all things should be πŸ¦‹

s1g representation!! we love to see it πŸ’š


okay that's literally the whole guest list bestie, go read them all, iykyk πŸ’…

this lil page lives over in ./include/net, it's the October 2026 drop, and it's filed under freq_reg_info(9) β€” screenshot it, memorise it, tell your friends 🫢✨

πŸ“¦ where this page comes from