ieee80211_hdrlen(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ieee80211_hdrlen(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual entry for ieee80211_hdrlen(9) β€” yes the whole page is literally named after the function, iconic behavior honestly.


✨ NAME ✨

ieee80211_hdrlen β€” get header length in bytes from frame control πŸŽ€

like, that's the whole gig. you hand it a frame control field, it hands you back how many bytes the header eats up. no cap.


🌸 SYNOPSIS 🌸

unsigned int ieee80211_hdrlen(__le16 fc);

look at her. one argument. returns an unsigned int. clean, minimal, main character energy. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • fc β€” the frame control field, and it's gotta be in little-endian format (__le16, iykyk). that's the little 16-bit situation you're feeding in so she can figure out the header size for you 🫢

⭐ RETURN ⭐

the header length, in bytes. that's it. that's the return value. she's not giving you a struct, she's not giving you a pointer, she's giving you a number and you're gonna say thank you πŸ˜­πŸ’–


✨ SEE ALSO ✨

okay bestie, buckle UP πŸ’… because this section is genuinely unhinged β€” it's the whole wireless stack name-dropped in one giant list. like, the page said "u want context? here's ALL the context." no cap. every single one of these is a (9) page, so if u see (9) after it, that's ur reading list πŸŽ€

first up: where all of this actually lives πŸ“

  • Kernel file ./include/net/cfg80211.h
  • Introduction(9)
  • Device registration(9)

the bands / channels / rates starter pack πŸ¦‹ β€” like the data types u meet before anything makes sense:

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

then the sband-iftype helpers, which are lowkey the main character energy of this whole file 🌟


Actions and configuration(9) β€” yeah this one is a whole section, and it ate πŸ’€ buckle in fr fr:


Scanning and BSS list handling(9) β€” the "who's out there and what are they broadcasting" era πŸ”:

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

Neighbor Awareness Networking (NAN)(9) β€” yes it has its own ✨era✨:

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

and then these just... keep coming, unbothered 🫢

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

the wiphy life cycle arc πŸ’€ β€” birth, registration, locking, death, and the work-queue-forever era:


Utility functions(9) β€” the little gadgets that do the actual handy stuff πŸŽ€:

Data path helpers(9) β€” packet-shuffling besties, the ones u call when frames need converting 🌸:

Regulatory enforcement infrastructure(9) β€” the vibes police, but for spectrum 🚨:

Internal regulatory db functions(9) β€” internal!! so u KNOW it's a backstage pass 🎟️:

BSS reporting + MLME firehose, part one πŸ’–

RFkill integration(9) β€” the "please stop transmitting" trio πŸ“΄:

Vendor commands(9) β€” for the driver-specific extra credit era πŸ‘‘

Test mode(9) β€” the little danger-zone corner πŸ™ˆ:

connect / roam / disconnect announcements, because everyone needs to know ur business 😭

mgmt rx/tx status + control port, still going strong πŸ”₯


yeah. that's the list. that's genuinely the whole list πŸ’€ and it just keeps going into the next part, so don't u dare close the tab yet bestie 🫢

…and the list keeps going, because of course it does. These are all the little sibling pages in the same family, so go say hi to them when you're done here πŸ’–


That's the whole guest list, bestie. Sixty-four of them. Not me counting. Okay maybe me counting. πŸ’…

And that's a wrap on ieee80211_hdrlen(9) 🌈 live from ./include/net, stamped October 2026 β€” go forth and compute header lengths, you gorgeous main character πŸ¦‹πŸ’–βœ¨

πŸ“¦ where this page comes from