wiphy_read_of_freq_limits(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay so this is wiphy_read_of_freq_limits(9) from the Kernel API Manual β€” literally the helper that reads frequency limits from device tree. πŸ’–

✨ SYNOPSIS ✨

void wiphy_read_of_freq_limits (struct wiphy *wiphy );

🌸 ARGUMENTS 🌸

  • wiphy β€” the wireless device you're getting those extra limits for, bestie. 🫢

πŸ’… DESCRIPTION πŸ’…

okay so some devices can have extra limitations specified in DT, and that's the whole vibe here. It can be useful for chipsets that normally support more bands but are limited because of board design (e.g. by antennas or an external power amplifier). πŸ”₯

This function reads info from DT and uses it to modify channels β€” specifically, it disables the unavailable ones. It's usually a bad idea to use it in drivers with shared channel data, because DT limitations are device specific. You should make sure to call it only if the channels in wiphy are copied and can be modified without affecting other devices. 😭

Since this function accesses the device node, it has to be called after set_wiphy_dev. It also modifies channels, so they have to be set first. If you're using this helper, call it before wiphy_register. periodt. πŸ‘‘

✨ SEE ALSO ✨

ok bestie, this is the part where the manpage is like "here's literally everything else in the entire universe that touches this" β€” and yeah it's a LOT 😭 but lowkey that's a good thing, because it means you've got receipts for days. Everything below is exactly as it appears in the index, section (9) and all, so you can go read whichever one you actually need. No skimming required, but like… maybe grab a snack first πŸ“

that first batch is all the band/iftype/capability girlies β€” very "which radio can do what" energy, iykyk πŸ’…

look at all those chandef functions omg β€” channel definition helpers are having a whole main character moment here, and honestly? deserved 🌸

  • 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)

this stretch is giving "every struct you'll ever touch when you're actually configuring a thing" energy β€” AP settings, station params, mesh stuff, all of it πŸŽ€

  • 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)

scanning, connecting, wowlan, QoS β€” the whole "how do I even find and join a network" arc, iconic honestly πŸ¦‹

  • 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)
  • struct cfg80211_ftm_responder_stats(9)
  • struct cfg80211_pmsr_ftm_result(9)
  • struct cfg80211_pmsr_result(9)
  • struct cfg80211_pmsr_ftm_request_peer(9)
  • struct cfg80211_pmsr_request_peer(9)
  • struct cfg80211_pmsr_request(9)
  • struct cfg80211_update_owe_info(9)
  • struct mgmt_frame_regs(9)
  • struct cfg80211_ops(9)
  • enum wiphy_flags(9)
  • struct ieee80211_iface_limit(9)
  • struct ieee80211_iface_combination(9)
  • enum wiphy_wowlan_support_flags(9)
  • struct wiphy_wowlan_support(9)
  • struct wiphy_coalesce_support(9)
  • enum wiphy_vendor_command_flags(9)
  • enum wiphy_opmode_flag(9)
  • struct sta_opmode_info(9)
  • struct wiphy_vendor_command(9)
  • struct wiphy_iftype_ext_capab(9)
  • cfg80211_get_iftype_ext_capa(9)
  • struct cfg80211_pmsr_capabilities(9)
  • struct wiphy_iftype_akm_suites(9)
  • struct wiphy_radio_cfg(9)
  • struct wiphy_radio_freq_range(9)
  • struct wiphy_radio(9)
  • enum wiphy_nan_flags(9)
  • struct wiphy_nan_capa(9)

NAN girls stand up!! πŸ“‘ and yes struct cfg80211_ops(9) is in there, the big one, the boss level

the wiphy lifecycle + locking + workqueue section, aka the "how do I not crash" starter pack πŸ˜­πŸ’€

utility functions!! the "channel 36 is what frequency again" helpers, truly the people's heroes πŸ’–

element-finding girls, we love you 🧚 (there's a lot of find_ie variants and every single one is staying in this list, periodt)

regulatory stuff: the "why can't I transmit on this channel in this country" lore 🌍

the BSS bookkeeping + MLME notification crowd, very "tell the stack what just happened" 🫢

rfkill (the airplane-mode button bestie), vendor commands, and test mode β€” yes, test mode is still a whole documented thing, we don't judge πŸ™ˆ

and that's the last batch β€” connect/disconnect, mgmt tx/rx, CQM notifications, radar/CAC events, and struct cfg80211_beaconing_check_config(9) closing us out πŸŽ€

fr fr though: every single one of these is a real reference from the original page, nothing trimmed, nothing merged β€” so if you need the deep lore on any name up there, go open that (9) page next πŸ’œ

…and the list keeps going, bestie, because this is the part of the page where the docs just point at everyone else in the friend group. No cap, here's the rest of the <rainbow>SEE ALSO</rainbow> crew β€” tap each one, they all matter πŸ’–

the regulatory / beaconing girlies πŸ¦‹

the channel-definition translators ✨

the ops-and-registration crowd πŸŽ€

the fast-transition era πŸ’…

the IE-splitting, fragmenting icons πŸ”₯

the sleepy-time and critical-protocol besties 😭

the combination-checking kings πŸ‘‘

the shutdown squad πŸ’€

the feature-flag duo 🌸

NAN nation (there's a whole arc, fr fr) 🫢

auth, PMSR, and iftype lore ⭐

the BSS + colour-change cinematic universe 🌈

6 GHz + MLO main character energy 🧚

more NAN, because of course πŸ’œ

the debugfs locked-door besties πŸ”

S1G, the deep-lore subsection πŸ™ˆ

and the final one, saving the best for last πŸ’–


okay that's genuinely the whole list, i counted, we ate and left no crumbs πŸ“ if you're still here you're a real one β€” go forth and read those pages, iykyk.

no cap, every single one of those cross-references is part of this page's <green>SEE ALSO</green>. nothing skipped, nothing merged, nothing invented. slay.

and that's a wrap on wiphy_read_of_freq_limits(9), bestie πŸŽ€ this whole thing lives in ./include/net, stamped <purple>October 2026</purple> β€” so go be the main character of your own frequency limits, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from