cfg80211_find_elem(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐ŸŽ€ NAME ๐ŸŽ€

okay bestie, this is cfg80211_find_elem(9) from the Kernel API Manual, and the whole vibe is: find information element in data. that's it. that's the mission. ๐Ÿ’…

โœจ SYNOPSIS โœจ

const struct element * cfg80211_find_elem (u8 eid , const u8 *ies , int
       len );

๐Ÿฆ‹ ARGUMENTS ๐Ÿฆ‹

  • eid โ€” element ID. the lil ID you're hunting for ๐Ÿ‘€
  • ies โ€” data consisting of IEs. yes, the pile of info elements.
  • len โ€” length of data. how much data you're letting it look at.

๐ŸŒˆ RETURN ๐ŸŒˆ

It returns NULL if the element ID could not be found, or if the element is invalid (claims to be longer than the given data), or if the byte array doesn't match. otherwise? you get the requested element struct back. slay. โœจ

๐Ÿ’œ NOTE ๐Ÿ’œ

there are no checks on the element length other than having to fit into the given data. that's the whole caveat, bestie โ€” don't go expecting extra length validation, because it's not here. ๐Ÿซถ

๐Ÿ’– SEE ALSO ๐Ÿ’–

okay so this is the "go look at literally everything else" section and bestieโ€ฆ it is long long. like, grab a snack ๐Ÿ“ and hydrate, because every single one of these is a real page and they all deserve their moment. no skipping, we're doing the whole tour ๐Ÿ’…

that whole block above is the capabilities-and-bands situation, and it's kind of iconic honestly ๐ŸŒˆ


next up, actions and configuration โ€” the "doing stuff" era of the list:

the channel-definition girlies stay booked and busy โœจ and the beacon/AP ones? also booked. slay.


station era, aka where the flags live:

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

mesh, OCB, SAR, mpathโ€ฆ we contain multitudes fr fr ๐Ÿ’€


and now the scanning + BSS list handling chapter, which is a whole mood:

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

lowkey the wowlan + coalesce entries are the "power nap" arc of the list ๐Ÿ˜ด and DSCP/QoS are the "actually we care about traffic" arc, both are valid ๐Ÿ’œ


NAN besties, rise:

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

struct cfg80211_ops(9) is the main character of that block, and yes i said what i said ๐Ÿ‘‘


wiphy era. this is the wiphy section of the wiphy section:

the lock/unlock and work-queue pairs are giving "responsible adult at the function" energy and honestly? we respect it ๐Ÿซก


utility functions, aka the little helpers that ate:

the channelโ†”frequency converters are the "translator friend" of the group chat, no cap ๐ŸŒธ


data path helpers, drop:

hiii ๐Ÿ‘‹ these are the find-the-element cousins of this very page, so yeah you're in the right neighborhood bestie ๐Ÿ’…


regulatory era (respect the rules):

regulatory stuff: not the flashiest, but the most important to not get in trouble ๐Ÿ’€


scan + BSS events + MLME, the plot thickens:

ref_bss / put_bss are the classic reference-counting duo โ€” keep them balanced or it's giving leak ๐Ÿ˜ญ


RFkill, vendor, test mode:

vendor + test mode: for when you need to do the special little thing โœจ iykyk


connect / roam / disconnect arc (emotional):

connected โ†’ roamed โ†’ disconnected, a whole three-act play ๐Ÿ˜ญ๐ŸŽญ


rx / tx / notifications finale:

and that's the list, bestie โ€” every last one accounted for ๐ŸŽ€ it's giving "completionist" and we are obsessed with her ๐Ÿ’–

okay bestie the SEE ALSO rollers keep coming and honestly? the kernel devs did not hold back ๐Ÿ˜ญ here's the rest of the list, every last one, no skips, fr fr:


and that's the whole list, every single one, no cap ๐ŸŒธ this page lives in ./include/net, dated October 2026, and it's the iconic cfg80211_find_elem(9) page โ€” ty for reading to the end bestie, u ate that ๐ŸŽ€โœจ๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from