cfg80211_calculate_bitrate(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

โœจ cfg80211_calculate_bitrate(9) โœจ

okay so real talk, this one lives in the Kernel API Manual and it's honestly kind of a lil workhorse ๐Ÿซถ like nobody's out here stanning it but everybody's using it, ykwim?


๐Ÿ’– NAME ๐Ÿ’–

cfg80211_calculate_bitrate โ€” calculate actual bitrate (in 100Kbps units)

bestie, that's the whole vibe: you hand it a rate, it hands you back the actual bitrate. no cap. ๐Ÿ”ฅ


๐ŸŒธ SYNOPSIS ๐ŸŒธ

u32 cfg80211_calculate_bitrate (struct rate_info *rate );

so like, it gives you back a u32, and it takes exactly one thing: a pointer to a struct rate_info ๐ŸŽ€


๐Ÿฆ‹ ARGUMENTS ๐Ÿฆ‹

  • rate โ€” the given rate_info that you want to calculate the bitrate from ๐Ÿ’… like, this is the input, this is the tea, this is what we're doing math on.

โญ RETURN โญ

it returns the calculated bitrate โœจ that's it, that's the whole answer โ€” the computed bitrate, back to you, in u32 form ๐Ÿ’œ


okay we're only partway through this saga โ€” more sections coming, don't go anywhere ๐Ÿงš

๐Ÿ’… SEE ALSO ๐Ÿ’…

okay bestie, this is the part where the manpage goes "and here's literally everyone else" ๐Ÿ˜ญ โ€” it's a whole friend group of cross-references, and every single one of them is invited to the party. No skipping, no "etc." โ€” we're listing all of them, periodt. Grab a snack ๐Ÿ“


๐Ÿฆ‹ the origin story

  • ./include/net/cfg80211.h โ€” that's the kernel file itself, the mothership. Also Introduction(9) and Device registration(9) โ€” start here if you're brand new, no cap ๐Ÿซถ

๐ŸŽ€ channels, rates & PHY vibes

  • enum ieee80211_channel_flags(9), struct ieee80211_channel(9) โ€” the channel lore
  • enum ieee80211_rate_flags(9), struct ieee80211_rate(9) โ€” rate flags and the rate struct itself โœจ
  • enum ieee80211_bss_type(9), enum ieee80211_privacy(9) โ€” BSS type and privacy, v important
  • struct ieee80211_he_obss_pd(9), struct cfg80211_he_bss_color(9) โ€” the HE-era extras, highkey niche but iconic ๐Ÿ’…

๐Ÿ’– caps, bands & iftypes

โš™๏ธ Actions and configuration โš™๏ธ

  • Actions and configuration(9) โ€” the whole section, go read it
  • struct vif_params(9), struct key_params(9) โ€” vif params and key params ๐Ÿ”‘
  • struct cfg80211_chan_def(9) โ€” the channel definition struct, you'll see it everywhere
  • struct cfg80211_tid_cfg(9), struct cfg80211_tid_config(9) โ€” TID cfg and TID config (yes, both)
  • struct cfg80211_fils_aad(9), struct cfg80211_set_hw_timestamp(9) โ€” FILS AAD and the hw timestamp setter

๐Ÿ’… chandef helpers, a whole squad

๐Ÿซถ survey, beacons & AP setup

  • enum survey_info_flags(9), struct survey_info(9) โ€” survey flags and survey info
  • struct cfg80211_crypto_settings(9) โ€” crypto settings, keep it secret keep it safe ๐Ÿ”
  • struct cfg80211_mbssid_config(9), struct cfg80211_mbssid_elems(9), struct cfg80211_rnr_elems(9) โ€” multi-BSSID config, its elems, and RNR elems
  • struct cfg80211_beacon_data(9), struct cfg80211_acl_data(9) โ€” beacon data and ACL data
  • struct cfg80211_fils_discovery(9), struct cfg80211_unsol_bcast_probe_resp(9) โ€” FILS discovery and the unsolicited broadcast probe response
  • struct cfg80211_s1g_short_beacon(9) โ€” short beacon energy ๐Ÿ
  • struct cfg80211_ap_settings(9), struct cfg80211_ap_update(9) โ€” AP settings and AP update
  • struct cfg80211_csa_settings(9), struct cfg80211_color_change_settings(9) โ€” CSA settings and color change settings ๐ŸŽจ
  • struct iface_combination_params(9) โ€” interface combination params

๐Ÿ“ stations & their stats

  • enum station_parameters_apply_mask(9), struct sta_txpwr(9) โ€” the apply mask enum and sta tx power
  • struct link_station_parameters(9), struct link_station_del_parameters(9) โ€” link station params, and the delete ones
  • struct cfg80211_ttlm_params(9) โ€” TTLM params, iykyk
  • struct station_parameters(9), struct station_del_parameters(9) โ€” station params and station del params
  • enum cfg80211_station_type(9), cfg80211_check_station_change(9) โ€” station type and the change checker
  • enum rate_info_flags(9), enum rate_info_bw(9), struct rate_info(9) โ€” rate info flags, bandwidth, and the struct
  • enum bss_param_flags(9), struct sta_bss_parameters(9) โ€” BSS param flags and sta BSS params
  • struct cfg80211_txq_stats(9), struct cfg80211_tid_stats(9) โ€” txq stats and TID stats ๐Ÿ“Š
  • struct link_station_info(9), struct station_info(9) โ€” link station info and the big station info
  • struct cfg80211_sar_sub_specs(9), struct cfg80211_sar_specs(9) โ€” SAR sub specs and SAR specs
  • struct cfg80211_sar_freq_ranges(9), struct cfg80211_sar_capa(9) โ€” SAR freq ranges and SAR capability
  • cfg80211_get_station(9) โ€” go get that station

๐Ÿงš mesh, OCB & bss params

  • enum monitor_flags(9), enum mpath_info_flags(9), struct mpath_info(9) โ€” monitor flags, mpath flags, mpath info
  • enum wiphy_bss_param_flags(9), struct bss_parameters(9) โ€” BSS param flags and BSS parameters
  • struct mesh_config(9), struct mesh_setup(9) โ€” mesh config and mesh setup ๐Ÿ•ธ๏ธ
  • struct ocb_setup(9) โ€” OCB setup, yes it's its own thing
  • struct ieee80211_txq_params(9) โ€” txq params

๐ŸŒˆ Scanning and BSS list handling ๐ŸŒˆ

  • Scanning and BSS list handling(9) โ€” the section itself, go off
  • struct cfg80211_ssid(9), struct cfg80211_scan_info(9) โ€” SSID and scan info
  • struct cfg80211_scan_6ghz_params(9), struct cfg80211_scan_request(9) โ€” the 6GHz scan params and the full scan request
  • struct cfg80211_match_set(9), struct cfg80211_sched_scan_plan(9) โ€” match set and sched scan plan
  • struct cfg80211_bss_select_adjust(9), struct cfg80211_sched_scan_request(9) โ€” BSS select adjust and the sched scan request
  • enum cfg80211_signal_type(9), struct cfg80211_inform_bss(9) โ€” signal type and inform BSS
  • struct cfg80211_bss_ies(9), struct cfg80211_bss(9) โ€” the IEs and the BSS itself ๐Ÿ‘‘
  • ieee80211_bss_get_elem(9), ieee80211_bss_get_ie(9) โ€” get elem / get IE, two flavors

๐Ÿ”ฅ connect, auth & assoc

  • struct cfg80211_auth_request(9), struct cfg80211_assoc_link(9) โ€” auth request and assoc link
  • struct cfg80211_ml_reconf_req(9), enum cfg80211_assoc_req_flags(9) โ€” ML reconf request and assoc req flags
  • struct cfg80211_assoc_request(9), struct cfg80211_deauth_request(9) โ€” assoc request, deauth request (the sad one) ๐Ÿ˜ญ
  • struct cfg80211_disassoc_request(9), struct cfg80211_ibss_params(9) โ€” disassoc request and IBSS params
  • struct cfg80211_bss_selection(9), struct cfg80211_connect_params(9) โ€” BSS selection and connect params
  • enum cfg80211_connect_params_changed(9) โ€” the "what changed" enum
  • enum wiphy_params_flags(9), struct cfg80211_pmksa(9) โ€” wiphy param flags and PMKSA

๐Ÿ‘‘ wowlan, coalesce & the sleepy stuff

  • struct cfg80211_pkt_pattern(9), struct cfg80211_wowlan_tcp(9) โ€” packet pattern and wowlan TCP
  • struct cfg80211_wowlan(9), struct cfg80211_coalesce_rules(9) โ€” wowlan and coalesce rules
  • struct cfg80211_coalesce(9) โ€” coalesce, the struct
  • struct cfg80211_wowlan_nd_match(9), struct cfg80211_wowlan_nd_info(9) โ€” wowlan net-detect match and info
  • struct cfg80211_wowlan_wakeup(9) โ€” the wakeup, good morning โ˜€๏ธ
  • struct cfg80211_gtk_rekey_data(9), struct cfg80211_update_ft_ies_params(9) โ€” GTK rekey data and update FT IEs params
  • struct cfg80211_mgmt_tx_params(9), struct cfg80211_dscp_exception(9) โ€” mgmt tx params and DSCP exception
  • struct cfg80211_dscp_range(9), struct cfg80211_qos_map(9) โ€” DSCP range and QoS map

๐ŸŒธ Neighbor Awareness Networking (NAN) ๐ŸŒธ

  • Neighbor Awareness Networking (NAN)(9) โ€” the section, NAN stans rise
  • struct cfg80211_nan_band_config(9), struct cfg80211_nan_conf(9) โ€” NAN band config and NAN conf
  • struct cfg80211_nan_channel(9), struct cfg80211_nan_local_sched(9) โ€” NAN channel and local schedule
  • struct cfg80211_nan_peer_map(9), struct cfg80211_nan_peer_sched(9) โ€” peer map and peer sched
  • enum cfg80211_nan_conf_changes(9), struct cfg80211_nan_func_filter(9) โ€” conf changes and func filter
  • struct cfg80211_nan_func(9) โ€” the NAN function itself โœจ

๐Ÿ’œ auth extras, PMK & PMSR

  • struct cfg80211_pmk_conf(9), struct cfg80211_external_auth_params(9) โ€” PMK conf and external auth params
  • struct cfg80211_ftm_responder_stats(9) โ€” FTM responder stats ๐Ÿ“ˆ
  • struct cfg80211_pmsr_ftm_result(9), struct cfg80211_pmsr_result(9) โ€” PMSR FTM result and PMSR result
  • struct cfg80211_pmsr_ftm_request_peer(9), struct cfg80211_pmsr_request_peer(9) โ€” FTM request peer and request peer
  • struct cfg80211_pmsr_request(9), struct cfg80211_update_owe_info(9) โ€” the PMSR request and update OWE info
  • struct mgmt_frame_regs(9) โ€” management frame registrations

๐ŸŽ€ cfg80211_ops & the wiphy universe

  • struct cfg80211_ops(9) โ€” the big ops struct, main character energy ๐Ÿ‘‘
  • enum wiphy_flags(9), struct ieee80211_iface_limit(9) โ€” wiphy flags and iface limit
  • struct ieee80211_iface_combination(9), enum wiphy_wowlan_support_flags(9) โ€” iface combination and wowlan support flags
  • struct wiphy_wowlan_support(9), struct wiphy_coalesce_support(9) โ€” wowlan support and coalesce support
  • enum wiphy_vendor_command_flags(9), enum wiphy_opmode_flag(9) โ€” vendor command flags and opmode flag
  • struct sta_opmode_info(9), struct wiphy_vendor_command(9) โ€” sta opmode info and vendor command
  • struct wiphy_iftype_ext_capab(9), cfg80211_get_iftype_ext_capa(9) โ€” iftype ext capab struct and its getter
  • struct cfg80211_pmsr_capabilities(9), struct wiphy_iftype_akm_suites(9) โ€” PMSR capabilities and iftype AKM suites
  • struct wiphy_radio_cfg(9), struct wiphy_radio_freq_range(9) โ€” radio cfg and radio freq range ๐Ÿ“ป
  • struct wiphy_radio(9), enum wiphy_nan_flags(9) โ€” the radio struct and NAN flags
  • struct wiphy_nan_capa(9), struct wiphy(9) โ€” NAN capability and, finally, struct wiphy

๐Ÿฆ‹ wiphy lifecycle & private data

โญ wiphy work & timers

๐Ÿ’€ wireless_dev energy

  • enum ieee80211_ap_reg_power(9) โ€” AP regulatory power enum
  • struct wireless_dev(9) โ€” the wdev struct itself, iconic
  • wdev_priv(9), wdev_chandef(9) โ€” wdev private data and its chandef

๐Ÿงš Utility functions ๐Ÿงš

๐ŸŒˆ Data path helpers ๐ŸŒˆ

๐Ÿ‘‘ Regulatory enforcement infrastructure ๐Ÿ‘‘

๐Ÿซถ scan results & BSS handling

๐Ÿ“ MLME traffic

๐ŸŽ€ RFkill integration ๐ŸŽ€

โœจ Vendor commands โœจ

๐Ÿงš Test mode ๐Ÿงš

๐Ÿ’… connect results & roaming

๐Ÿ”ฅ remain on channel & mgmt tx

โญ station notifications

๐ŸŒธ rx / tx status

๐Ÿ’œ CQM & the notification squad


and that's the whole friend group ๐Ÿ˜ฎโ€๐Ÿ’จ every single ref accounted for, not one skipped, we ate that ๐Ÿ’…โœจ

...and bestie, the rest of the crew is literally right there โ€” same kernel, same docs folder, same chaotic energy. Go say hi to the whole friend group ๐Ÿซถ:


โœจ that's a wrap, bestie โœจ this little masterpiece lives in ./include/net and it got its glow-up in October 2026 โ€” go touch some grass (or, like, some radiated 6 GHz channels), you absolute icon ๐Ÿ’…๐ŸŽ€๐Ÿ“

๐Ÿ“ฆ where this page comes from