ieee80211_ch...to_frequency(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ieee80211_channel_to_frequency ✨

okay so this is the Kernel API Manual page for ieee80211_channel_to_frequency, and honestly? it's a little guy with one job and it does it slayfully. it takes a channel number and gives you back the frequency in MHz. that's it. that's the whole vibe. πŸŽ€


🌸 NAME 🌸

ieee80211_channel_to_frequency β€” convert channel number to frequency πŸ’…

like, literally what it says on the tin, bestie. channel number in, frequency out, no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

int ieee80211_channel_to_frequency (int chan , enum nl80211_band band );

here's the signature in all its glory β€” don't touch the spacing, it's iconic as-is ✨


πŸ’– ARGUMENTS πŸ’–

  • chan β€” the channel number. that's the thing you're converting, bestie. the main character of the operation πŸ‘‘
  • band β€” the band. and yes, you do have to pass it, it's not optional and it's not me being extra: the manpage is very clear that this is necessary due to channel number overlap 🫢 like, the same channel number can mean different things in different bands, so the function literally cannot do its job without knowing which band you're in. iykyk 🌈

⭐ RETURN ⭐

okay so what do you get back? ✨ The corresponding frequency (in MHz), or 0 if the conversion failed.

so like β€” real frequency number = we ate, we slayed, everything's iconic πŸ’…πŸ”₯. and 0 = the conversion did not go through, bestie, it's giving error 😭. keep an eye out for that zero, it's your tell that something went sideways.

fr fr check for the 0, don't just assume you got a real frequency. πŸ™ˆ

more parts coming, don't go anywhere πŸ§šπŸ’œ

✨ SEE ALSO ✨

Okay bestie, this is the part where the page name-drops literally everyone in the cfg80211 friend group 🫢. Nobody's making you read all of it β€” it's the "if you liked this function you'll love…" shelf, so vibe-check the ones that sound like your problem and go off πŸ’….

The mothership, the header where basically the whole cast lives: Kernel file ./include/net/cfg80211.h.

  • Introduction(9) β€” start here if you're brand new, it's giving orientation day πŸ’–
  • Device registration(9) β€” the whole "how does a device even get in here" arc

🌈 the band & channel core

  • enum ieee80211_channel_flags(9) β€” all the flags a channel can carry 🚩
  • struct ieee80211_channel(9) β€” the channel struct itself, main character energy
  • enum ieee80211_rate_flags(9) β€” rate flags, the other flag enum
  • enum ieee80211_bss_type(9) β€” BSS type, enum edition
  • enum ieee80211_privacy(9) β€” privacy, enum edition
  • struct ieee80211_rate(9) β€” a rate, structified
  • struct ieee80211_he_obss_pd(9) β€” HE OBSS PD, try saying that five times fast 😭
  • struct cfg80211_he_bss_color(9) β€” HE BSS color, the aesthetic of BSSes
  • struct ieee80211_sta_ht_cap(9) β€” HT caps for a station
  • struct ieee80211_sta_vht_cap(9) β€” VHT caps
  • struct ieee80211_sta_he_cap(9) β€” HE caps
  • struct ieee80211_eht_mcs_nss_supp(9) β€” EHT MCS/NSS support, a whole mouthful
  • struct ieee80211_sta_eht_cap(9) β€” EHT caps
  • struct ieee80211_sta_uhr_cap(9) β€” UHR caps, newest-era caps
  • struct ieee80211_sband_iftype_data(9) β€” sband iftype data, the structure
  • enum ieee80211_edmg_bw_config(9) β€” EDMG bandwidth config
  • struct ieee80211_edmg(9) β€” EDMG, structified
  • struct ieee80211_sta_s1g_cap(9) β€” S1G caps
  • struct ieee80211_supported_band(9) β€” your band's entire personality in one struct πŸ¦‹

🫢 the sband iftype helper clique

πŸŽ€ Actions and configuration(9)

Here's where the config side of the house starts, bestie:

πŸ’€ station everything

  • enum station_parameters_apply_mask(9) β€” station parameter apply mask enum
  • struct sta_txpwr(9) β€” station TX power
  • struct link_station_parameters(9) β€” link station parameters
  • struct link_station_del_parameters(9) β€” link station delete parameters
  • struct cfg80211_ttlm_params(9) β€” TTLM params
  • struct station_parameters(9) β€” station parameters, the big one
  • struct station_del_parameters(9) β€” station delete parameters
  • enum cfg80211_station_type(9) β€” station type enum
  • cfg80211_check_station_change(9) β€” check what changed about a station
  • enum rate_info_flags(9) β€” rate info flags
  • enum rate_info_bw(9) β€” rate info bandwidth
  • struct rate_info(9) β€” rate info
  • enum bss_param_flags(9) β€” BSS param flags
  • struct sta_bss_parameters(9) β€” station BSS parameters
  • struct cfg80211_txq_stats(9) β€” TXQ stats
  • struct cfg80211_tid_stats(9) β€” TID stats
  • struct link_station_info(9) β€” link station info
  • struct station_info(9) β€” station info, the final boss of station structs πŸ‘‘

🌸 SAR & looking up stations

  • struct cfg80211_sar_sub_specs(9) β€” SAR sub-specs
  • struct cfg80211_sar_specs(9) β€” SAR specs
  • struct cfg80211_sar_freq_ranges(9) β€” SAR frequency ranges
  • struct cfg80211_sar_capa(9) β€” SAR capabilities
  • cfg80211_get_station(9) β€” go get a station

πŸ¦‹ monitor, mesh & friends

  • enum monitor_flags(9) β€” monitor flag enum
  • enum mpath_info_flags(9) β€” mesh path info flags
  • struct mpath_info(9) β€” mesh path info
  • enum wiphy_bss_param_flags(9) β€” wiphy BSS param flags
  • struct bss_parameters(9) β€” BSS parameters
  • struct mesh_config(9) β€” mesh config
  • struct mesh_setup(9) β€” mesh setup
  • struct ocb_setup(9) β€” OCB setup
  • struct ieee80211_txq_params(9) β€” TXQ params

⭐ Scanning and BSS list handling(9)

  • struct cfg80211_ssid(9) β€” an SSID, wrapped
  • struct cfg80211_scan_info(9) β€” scan info
  • struct cfg80211_scan_6ghz_params(9) β€” 6 GHz scan params
  • struct cfg80211_scan_request(9) β€” scan request
  • struct cfg80211_match_set(9) β€” match set
  • struct cfg80211_sched_scan_plan(9) β€” scheduled scan plan
  • struct cfg80211_bss_select_adjust(9) β€” BSS select adjust
  • struct cfg80211_sched_scan_request(9) β€” scheduled scan request
  • enum cfg80211_signal_type(9) β€” signal type enum
  • struct cfg80211_inform_bss(9) β€” inform-BSS struct
  • struct cfg80211_bss_ies(9) β€” the BSS IEs
  • struct cfg80211_bss(9) β€” the BSS struct itself
  • ieee80211_bss_get_elem(9) β€” grab an element out of a BSS
  • ieee80211_bss_get_ie(9) β€” grab an IE out of a BSS
  • struct cfg80211_auth_request(9) β€” auth request
  • struct cfg80211_assoc_link(9) β€” assoc link
  • struct cfg80211_ml_reconf_req(9) β€” ML reconfig request
  • enum cfg80211_assoc_req_flags(9) β€” assoc request flags
  • struct cfg80211_assoc_request(9) β€” assoc request
  • struct cfg80211_deauth_request(9) β€” deauth request
  • struct cfg80211_disassoc_request(9) β€” disassoc request
  • struct cfg80211_ibss_params(9) β€” IBSS params
  • struct cfg80211_bss_selection(9) β€” BSS selection
  • struct cfg80211_connect_params(9) β€” connect params, the whole connection mood board
  • enum cfg80211_connect_params_changed(9) β€” which connect params changed
  • enum wiphy_params_flags(9) β€” wiphy param flags
  • struct cfg80211_pmksa(9) β€” PMKSA
  • struct cfg80211_pkt_pattern(9) β€” packet pattern
  • struct cfg80211_wowlan_tcp(9) β€” WoWLAN TCP
  • struct cfg80211_wowlan(9) β€” WoWLAN, the whole vibe
  • struct cfg80211_coalesce_rules(9) β€” coalesce rules
  • struct cfg80211_coalesce(9) β€” coalesce
  • struct cfg80211_wowlan_nd_match(9) β€” WoWLAN net-detect match
  • struct cfg80211_wowlan_nd_info(9) β€” WoWLAN net-detect info
  • struct cfg80211_wowlan_wakeup(9) β€” WoWLAN wakeup
  • struct cfg80211_gtk_rekey_data(9) β€” GTK rekey data
  • struct cfg80211_update_ft_ies_params(9) β€” FT IEs update params
  • struct cfg80211_mgmt_tx_params(9) β€” management TX params
  • struct cfg80211_dscp_exception(9) β€” DSCP exception
  • struct cfg80211_dscp_range(9) β€” DSCP range
  • struct cfg80211_qos_map(9) β€” QoS map

🧚 Neighbor Awareness Networking (NAN)(9)

  • struct cfg80211_nan_band_config(9) β€” NAN band config
  • struct cfg80211_nan_conf(9) β€” NAN conf
  • struct cfg80211_nan_channel(9) β€” NAN channel
  • struct cfg80211_nan_local_sched(9) β€” NAN local schedule
  • struct cfg80211_nan_peer_map(9) β€” NAN peer map
  • struct cfg80211_nan_peer_sched(9) β€” NAN peer schedule
  • enum cfg80211_nan_conf_changes(9) β€” NAN conf changes
  • struct cfg80211_nan_func_filter(9) β€” NAN function filter
  • struct cfg80211_nan_func(9) β€” NAN function

πŸ’œ PMK, auth & PMSR zone

  • struct cfg80211_pmk_conf(9) β€” PMK conf
  • struct cfg80211_external_auth_params(9) β€” external auth params
  • struct cfg80211_ftm_responder_stats(9) β€” FTM responder stats
  • struct cfg80211_pmsr_ftm_result(9) β€” PMSR FTM result
  • struct cfg80211_pmsr_result(9) β€” PMSR result
  • struct cfg80211_pmsr_ftm_request_peer(9) β€” PMSR FTM request peer
  • struct cfg80211_pmsr_request_peer(9) β€” PMSR request peer
  • struct cfg80211_pmsr_request(9) β€” PMSR request
  • struct cfg80211_update_owe_info(9) β€” update OWE info
  • struct mgmt_frame_regs(9) β€” management frame registrations
  • struct cfg80211_ops(9) β€” the ops table, driver side of everything, lowkey the most important struct here

πŸ”₯ wiphy structs & helpers

  • enum wiphy_flags(9) β€” wiphy flag enum
  • struct ieee80211_iface_limit(9) β€” interface limit
  • struct ieee80211_iface_combination(9) β€” interface combination
  • enum wiphy_wowlan_support_flags(9) β€” WoWLAN support flags
  • struct wiphy_wowlan_support(9) β€” WoWLAN support
  • struct wiphy_coalesce_support(9) β€” coalesce support
  • enum wiphy_vendor_command_flags(9) β€” vendor command flags
  • enum wiphy_opmode_flag(9) β€” opmode flag
  • struct sta_opmode_info(9) β€” station opmode info
  • struct wiphy_vendor_command(9) β€” vendor command
  • struct wiphy_iftype_ext_capab(9) β€” iftype extended capabilities
  • cfg80211_get_iftype_ext_capa(9) β€” get iftype ext capa
  • struct cfg80211_pmsr_capabilities(9) β€” PMSR capabilities
  • struct wiphy_iftype_akm_suites(9) β€” iftype AKM suites
  • struct wiphy_radio_cfg(9) β€” wiphy radio config
  • struct wiphy_radio_freq_range(9) β€” radio freq range
  • struct wiphy_radio(9) β€” a radio
  • enum wiphy_nan_flags(9) β€” NAN flags for wiphy
  • struct wiphy_nan_capa(9) β€” wiphy NAN capabilities
  • struct wiphy(9) β€” THE wiphy struct, absolute icon πŸ‘‘

πŸŽ€ wiphy lifecycle & work queues

✨ Utility functions(9)

🌸 Data path helpers(9)

🧚 Regulatory enforcement infrastructure(9)

πŸ’œ Internal regulatory db functions(9)

πŸ“ BSS & MLME notify zone

πŸ’… RFkill integration(9)

πŸŽ€ Vendor commands(9)

πŸ¦‹ Test mode(9)

🌈 connect / roam / notify greatest hits

…and the SEE ALSO list keeps going, bestie, because of course it does πŸ’… so here's the rest of the lineup, all copied exactly, no games:


okay that's genuinely the whole page, you made it, I'm so proud of you 🫢✨ go touch some grass (or, like, a wireless driver, whatever's closer) πŸ’–

Little sign-off moment for the record so we're keeping it 100: this one lives under ./include/net in the kernel tree, and the page is dated October 2026 β€” no cap, that's what it says πŸŽ€ slay and goodbye bestie πŸ‘‘

πŸ“¦ where this page comes from