ieee80211_fr...y_to_channel(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ieee80211_frequency_to_channel(9) β€” from the Kernel API Manual, bestie πŸŽ€

Okay so this is a kernel API page, section 9, and the star of the show is ieee80211_frequency_to_channel β€” say that three times fast, I dare you. It's the little helper that looks at a frequency and tells you which channel it belongs to. Iconic behaviour, honestly. ✨


🌸 NAME 🌸

ieee80211_frequency_to_channel β€” literally just convert a frequency into a channel number. That's it. That's the whole gig. πŸ¦‹


✨ SYNOPSIS ✨

int ieee80211_frequency_to_channel (int freq );

Yes bestie, it returns an int and it takes exactly one int. No surprises, no plot twists, we love a low-drama signature. πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • freq β€” the center frequency, measured in MHz. That's the number you're handing over so it can do its little conversion moment. πŸ”₯

πŸ‘‘ RETURN πŸ‘‘

It gives you back the corresponding channel β€” the one that matches your frequency. Slay. πŸ’…

But listen, if the conversion fails, you get 0 back. Zero. Not a channel, just a sad little nothing. So vibe-check that return value, okay? 😭

to be continued, bestie β€” more of this page is coming, don't go anywhere 🫢

πŸ’… SEE ALSO πŸ’…

okay bestie, this is the part where the page hands you the entire friend group πŸ’– β€” every single page that lives in the same orbit. and it is long long, so grab a snack πŸ“ and let's go. i'm keeping every last one, in the order the page gives them, no skips, no "etc." shortcuts. periodt.

that's the file itself and the intro β€” start there if you're brand new, it's giving orientation day 🌸


the core lineup πŸŽ€

these are the ones you'll keep bumping into forever:

  • Device registration(9)
  • enum ieee80211_channel_flags(9)
  • struct ieee80211_channel(9)
  • enum ieee80211_rate_flags(9)
  • enum ieee80211_bss_type(9)
  • enum ieee80211_privacy(9)
  • struct ieee80211_rate(9)
  • struct ieee80211_he_obss_pd(9)
  • struct cfg80211_he_bss_color(9)
  • struct ieee80211_sta_ht_cap(9)
  • struct ieee80211_sta_vht_cap(9)
  • struct ieee80211_sta_he_cap(9)
  • struct ieee80211_eht_mcs_nss_supp(9)
  • struct ieee80211_sta_eht_cap(9)
  • struct ieee80211_sta_uhr_cap(9)
  • struct ieee80211_sband_iftype_data(9)
  • enum ieee80211_edmg_bw_config(9)
  • struct ieee80211_edmg(9)
  • struct ieee80211_sta_s1g_cap(9)
  • struct ieee80211_supported_band(9)

the whole ht β†’ vht β†’ he β†’ eht β†’ uhr glow-up is right there in alphabetical-ish order, iconic ✨

note the leading underscore on _ieee80211_set_sband_iftype_data(9) β€” that's not a typo, bestie, that's just how it's spelled 🫢


Actions and configuration(9) β€” the big one πŸ’…

  • struct vif_params(9)
  • struct key_params(9)
  • struct cfg80211_chan_def(9)
  • struct cfg80211_tid_cfg(9)
  • struct cfg80211_tid_config(9)
  • struct cfg80211_fils_aad(9)
  • struct cfg80211_set_hw_timestamp(9)

and then, the chandef cinematic universe 😭 (this page's whole vibe lives here):

station-and-link era πŸ¦‹:

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

sar + monitoring + mesh/ocb vibes 🌈:

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

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)

the wowlan + coalesce clique ate, ngl πŸ’€


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)

the ops + wiphy family πŸ‘‘πŸ’–

  • 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)
  • struct wiphy(9)

and the wiphy lifecycle squad, in order 🫢:

the work-queue girlies πŸ’…:


Utility functions(9) ✨

this is literally this page's home address, so like… hi πŸŽ€


Data path helpers(9) πŸ”₯

element-finding stans, assemble 🌸:


Regulatory enforcement infrastructure(9) πŸ¦‹

Internal regulatory db functions(9)

yep, just the one lonely entry in that club πŸ™ˆ


scan + bss internals πŸ’œ

heads up: __cfg80211_get_bss(9) has two underscores, bestie. it's a different page from cfg80211_get_bss(9). don't mix them up, i'm literally begging 😭

RFkill integration(9) πŸ“‘

Vendor commands(9) πŸŽ€

Test mode(9) 🌈


connect / roam / notify β€” the drama arc πŸ’€βœ¨

the whole will-they-won't-they of a connection, fr fr 😭

the notification corner 🫢:

and breathe πŸ¦‹ that's the whole list β€” every single one, nothing dropped, nothing merged. bestie you made it to the end of SEE ALSO and that's main character energy πŸ‘‘πŸ’…

so like, the rest of the SEE ALSO squad β€” the extended friend group, the whole group chat, every single one a real page you can go read when you're done here πŸ’… no gatekeeping, go say hi to all of them:


okay and that's the whole list, bestie, all sixty-four of them, not one skipped, I would never do you like that 🫢 that's the entire SEE ALSO section, complete, untouched, iconic, no notes.

and that's a wrap on this page fr fr πŸŽ€ you read the whole thing, you understood the whole thing, and honestly? main character energy. this little guide lives over in ./include/net, and it's wearing the date October 2026 like a cute little timestamp necklace ✨ go be brilliant, go read the neighbors, and remember: the vibes are documented, the facts are intact, periodt πŸ’–πŸ¦‹

πŸ“¦ where this page comes from