ieee80211_channel_to_khz(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ieee80211_channel_to_khz πŸ’–

okay so bestie, welcome to the Kernel API Manual, section 9 β€” this is ieee80211_channel_to_khz(9) and honestly? it's giving "tiny function, big main character energy" ✨ it does exactly one thing and it does it flawlessly, we love a focused queen πŸ‘‘


🌸 NAME 🌸

ieee80211_channel_to_khz β€” converts an ieee80211_channel into a frequency in KHz, no cap πŸ’…

like, that's it. that's the whole vibe. channel in, frequency out πŸ¦‹


✨ SYNOPSIS ✨

u32 ieee80211_channel_to_khz (const struct ieee80211_channel *chan );

so you hand it a pointer to an ieee80211_channel and it hands you back a u32. simple. clean. iconic πŸŽ€


🫢 ARGUMENTS 🫢

  • chan β€” the struct ieee80211_channel you want converted, bestie. that's the one. the whole assignment. give it the channel and it'll do the glow-up into KHz for you πŸ’– (it's a const struct ieee80211_channel *, so it's just looking, not touching β€” respectful king πŸ‘‘)

⭐ RETURN ⭐

returns the corresponding frequency, in KHz πŸ”₯ that's the u32 right there. frequency secured, vibe check passed, periodt πŸ’…


(more parts incoming β€” hold that thought bestie πŸ§šπŸ’œ)

🌈 SEE ALSO 🌈

okay bestie, this is the part where we list literally everyone else in the cfg80211 friend group, because this function does not exist in a vacuum, she has a whole extended family πŸ’… every single one of these is a real page you can go read, and yes, there are a LOT of them. Buckle up πŸŽ€

First up, the source of truth and the OGs:


Then we slide into Actions and configuration(9) territory and honestly this chunk ate πŸ‘‘


Next: Scanning and BSS list handling(9) β€” the "who's out there" arc πŸ”βœ¨

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

Then the NAN era β€” Neighbor Awareness Networking (NAN)(9) β€” she's the friend who knows everyone at the party πŸ¦‹

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

And the wiphy lore β€” registration, refcounting, locking, work queues, the whole backstage pass 🎟️


Now the section our girl actually lives in β€” Utility functions(9) πŸ§°πŸ’– (hi, that's us, we're in this list):


Data path helpers(9) β€” packets doing cardio πŸƒβ€β™€οΈπŸ’¨


Regulatory enforcement infrastructure(9) and Internal regulatory db functions(9) β€” the rules committee, do not mess with them 🚨


Then the event/notification crowd β€” everything that tells userspace "hey, something happened" πŸ“£


RFkill integration(9) β€” the "airplane mode but make it ✨" crew:


Vendor commands(9) β€” where drivers go off-script, respectfully πŸ’…


Test mode(9) β€” for the girlies who like to poke things πŸ§ͺ


And the connection / roaming / station-bookkeeping besties, aka the rest of the whole entire world 🌍

ngl that's a LOT of cross-references and we're not even done β€” the list literally ends on a trailing comma in the original, so yeah, there's more coming 😭 don't go anywhere bestie 🫢

okay that's the whole list, we're done, you survived the cross-reference marathon πŸ’€βœ¨ Go read the ones you actually need and pretend the rest was a vibe check you passed. So proud of you bestie 🫢

This page comes from ./include/net, dated October 2026, and it's filed under ieee80211_channel_to_khz(9) β€” that's the source, the date, and the name of the page all in one little footer bow πŸŽ€ ily, go convert some channels πŸ’œ

πŸ“¦ where this page comes from